@anonymous/

InformalUnhealthyBinarysearchtree

JavaScript

No description

fork
loading
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
function largestOfFour(arr) {

var maxNumber = [];

maxNumber = arr.map(function(n, i) {
  
  
  maxNumber = n.reduce(function(previous, current) {
    return Math.max(previous, current)
  });
  
});

console.log(maxNumber);

}


largestOfFour([[4, 5, 1, 3], [13, 27, 18, 26], [32, 35, 37, 39], [1000, 1001, 857, 1]]);
Native Browser JavaScript