Yep, it’s still O(n^2), it has a smaller constant factor, but that doesn’t affect O notation.
More Related Contents:
- What is the difference between Θ(n) and O(n)?
- Time complexity of nested for-loop
- What does “O(1) access time” mean? [duplicate]
- Can an O(n) algorithm ever exceed O(n^2) in terms of computation time?
- Python single line for loops [duplicate]
- Breaking out of a nested loop
- How can building a heap be O(n) time complexity?
- Implement a queue in which push_rear(), pop_front() and get_min() are all constant time operations
- Big-O for Eight Year Olds? [duplicate]
- Which algorithm is faster O(N) or O(2N)?
- Big-O summary for Java Collections Framework implementations? [closed]
- How to break nested loops in JavaScript? [duplicate]
- Python dictionary keys. “In” complexity
- Is Big O(logn) log base e?
- Append an object to a list in R in amortized constant time, O(1)?
- What is the complexity of regular expression?
- Time complexity of Hash table
- multiset, map and hash map complexity
- Why does Python have a limit on the number of static blocks that can be nested?
- Big-O of list slicing
- A puzzle related to nested loops
- Passing argument from Parent function to nested function Python
- Quicksort superiority over Heap Sort
- What is the complexity of this simple piece of code?
- How can std::make_heap be implemented while making at most 3N comparisons?
- Time Complexity of two for loops [duplicate]
- What’s the time complexity of iterating through a std::set/std::map?
- What is the Big O Complexity of Reversing the Order of Columns in Pandas DataFrame?
- How to nest multiple parfor loops
- Example of O(n!)?