DSA_1

Run Settings
LanguageJavaScript
Language Version
Run Command
const nemo= ['nemo'] const large = new Array(10).fill('nemo'); function findNemo(arr){ let t0 = performance.now() arr.forEach(e => { e == 'nemo' ?console.log('found nemo') : null }) console.log(performance.now()-t0) } findNemo(large)
const b = [1,2,3,4,5] const pairs = [] b.forEach(i => { b.forEach(j => { pairs.push([b[i],b[j]]) }) }) console.log(pairs)
Editor Settings
Theme
Key bindings
Full width
Lines