Closed hughbien closed 3 years ago
In the Chapter "Big O", in the section "The Not So Good Approach: O(N^2)".
The code example is:
const hasDuplicates = function(num){
I think num parameter should be pluralized, because the argument is actually an array of numbers and nums is referenced in the function body.
num
nums
Nice catch! Agree - thanks!
Cheers thanks!
In the Chapter "Big O", in the section "The Not So Good Approach: O(N^2)".
The code example is:
I think
num
parameter should be pluralized, because the argument is actually an array of numbers andnums
is referenced in the function body.