What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-03-27 17:35:03
javascript popup canvas
<div id="dialog_for_Loma_Linda_University" class="enhanceable_content dialog"><!.. Begin Dialog Box Content ..><strong>Loma Linda University </strong> uniquely integrates health, science, and Christian faith. Ou... Add solution -
Other 2022-03-27 17:30:32
merge sort algo
// @see https://www.youtube.com/watch?v=es2T6KY45cA&vl=en // @see https://www.cs.usfca.edu/~galles/visualization/ComparisonSort.html function merge(list, start, midpoint, end) { const left = list.slice(start, midpoint); const right = list.sli... Add solution -
-
TypeScript 2022-03-27 17:05:06
use of slice and splice add elements array
function frankenSplice(arr1, arr2, n) { // Create a copy of arr2. let combinedArrays = arr2.slice() // [4, 5, 6] // Insert all the elements of arr1 into arr2 beginning // at the index specified by n. We're using the spread /... Add solution -
Java 2022-03-27 16:45:39
TreeMap clear() method in java
import java.util.TreeMap; public class TreeMapClearMethodExample { public static void main(String[] args) { TreeMap<Integer, String> tm = new TreeMap<Integer, String>(); tm.put(8, "red"); tm.put(12, "blue... Add solution -
Java 2022-03-27 16:35:04
turning a sentence to an array java
String s = "This is a sample sentence."; String[] words = s.split("\\s+"); for (int i = 0; i < words.length; i++) { // You may want to check for a non-word character before blindly // performing a replacement // It may a... Add solution
Best helpers
Ranking is empty