




Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
Just because JSON.stringify(obj1) === JSON.stringify(obj2), doesn't necessarily mean obj1 === obj2.
You could iterate over all previously passed inputs to check if there has been a match. However, that will be very slow.
Javascript Maps are a could way to associate arbitrary data.
Make a tree structure of Maps. The depth of the tree should match the number of input parameters.