JS built-in methods have time complexities of their own

Time Complexity of JavaScript’s Built In Methods

Best not to use them within a for loop as that would create an O(n^2) time complexity.

Comments

Popular posts from this blog

Code Wars: Data Reverse (6 kyu)

Code Wars: longest_palindrome (6 kyu)

Code Wars: Find the odd int