What do you want to save?
Add Code snippet
New code examples
-
Java 2021-10-25 16:37:11
define an array of size n in java
int[] myIntArray = new int[3]; int[] myIntArray = {1, 2, 3}; int[] myIntArray = new int[]{1, 2, 3}; // Since Java 8. Doc of IntStream: https://docs.oracle.com/javase/8/docs/api/java/util/stream/IntStream.html int [] myIntArray = IntStream.range(0, 100).... Add solution -
Javascript 2021-10-19 08:58:04
merge sort js example
// Merge Sort Implentation (Recursive) function mergeSort (unsortedArray) { if (unsortedArray.length <= 1) { return unsortedArray; } const middle = Math.floor(unsortedArray.length / 2); const left = unsortedArray.slice(0, middle); co... Add solution -
Best helpers
Ranking is empty