Back to course home
0% completed
Vote For New Content
TLE Err
tedgo001
Mar 20, 2024
For the conditions to tell if a swapping is needed:
if(nums[start] != nums[nums[start] - 1]) will not give a TLE but if(nums[start] != start+1) will. Wondering why this happens?
0
0
Comments
Comments
Miguel 2 years ago
It might help if you post your code. It's unclear what "start" is here
On this page