Hello,
I’m new to the USACO forum, it looks really nice. I love the USACO guide, it’s really great. I had a question about time complexity. If you use a method that would take at least one loop to do (like the sort method), then does it affect the time complexity?
For example:
For loop through a list of n elements
for loop through a list of n elements again
n.sort()
Would this have a time complexity of O(N^2) or O(N^3) (because of the sort through N)?
Thanks,
~Zanderman