2 ms·
What is the time complexity of the worst case: O(N)? O(N^2)? O(N^3)? ... In which language had you writen it: C? Python? ... Note that in spite the exact
by gus_massa 2y ago
What is the time complexity of the worst case: O(N)? O(N^2)? O(N^3)? ...
In which language had you writen it: C? Python? ...
Note that in spite the exact problem is very hard, there are fast heuristics that give aproxímate solutions most of the time.