Simply... it's written that n<=100000, so it will take hours to count it with an algorithm running in O(n^2).
Originally it's said that "distance" between A and B is an amount of operations...
CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
Search:Type: Posts; User: boost Search: Search took 0.03 seconds.
Results 1 to 2 of 2
|
Click Here to Expand Forum to Full Width |