This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| const ( | |
| ErrorCommunication int = iota - 1 | |
| StartCommunication | |
| ContinueCommunication | |
| EndCommunication | |
| SizeOfParts = 900 //since the header adds some space, we reduce the size of the file content | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| //SERVER | |
| import ( | |
| "encoding/json" | |
| "fmt" | |
| "log" | |
| "net" | |
| "strconv" | |
| "time" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //EjercicioPropuesto | |
| import { round } from "https://deno.land/x/math@v1.1.0/round.ts"; | |
| import { sqrt } from "https://deno.land/x/math@v1.1.0/sqrt.ts"; | |
| /** | |
| * Funcion que aplica un predicado en cada uno de los elementos | |
| * y tiene que cumplirse en todos para devolver true. | |
| * @param {Function} predicate predicado | |
| * @param {Array<Number>} arr arreglo | |
| * @returns Number |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <time.h> | |
| //GLOBAL VARIABLES | |
| char numAux; | |
| int n; | |
| int size; | |
| char *palindromo(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.*; | |
| public class Main { | |
| static Scanner read = new Scanner(System.in); | |
| public static void main(String[] args) { | |
| System.out.print("Enter the amount of change to get: "); | |
| int change = read.nextInt(); | |
| utilsBill algorithm = new utilsBill(new int[]{1,4,6}, change); | |
| algorithm.fillTables(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.Random; | |
| public class Main { | |
| public static void main(String[] args) { | |
| int [] arr1 = {13,-3,-25,20,-3,-16,-23,18,20,-7,12,-5,-22,15,-4,7}; | |
| kadane.max_sum(arr1); | |
| algorithm.init(arr1); | |
| int [] arr2 = algorithm.aleatoryArray(25); | |
| algorithm.init(arr2); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.Random; | |
| import java.util.Scanner; | |
| public class Main { | |
| public static void main(String[] args) { | |
| Scanner scanner = new Scanner(System.in); | |
| System.out.print("Insert the length of the matrix: "); | |
| int n = scanner.nextInt(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <time.h> | |
| #include <unistd.h> | |
| #include <math.h> | |
| #define VAL_MAX 500 | |
| #define SPACING 8 | |
| #define MAX_SHOWING 50 | |
| #define N_VALUES 8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <time.h> | |
| #include <unistd.h> | |
| #include <math.h> | |
| #define VAL_MAX 500 | |
| #define SPACING 8 | |
| #define MAX_SHOWING 50 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <time.h> | |
| #include <unistd.h> | |
| #include <math.h> | |
| #define VAL_MAX 500 | |
| #define SPACING 8 | |
| #define MAX_SHOWING 50 |
NewerOlder