CodePudding user response:
There's no need to sort, set up the two variables, a trip to scan all things directly,CodePudding user response:
Using tree selection method is better, comparison algorithm for a maximum of 999999 + log2 (100000)=1000019CodePudding user response:
No need to sort, again too