Please read the new rule regarding the restriction on the use of AI tools. ×

java 8: Arrays.sort vs Collections.sort performance

Revision en1, by rrepeat, 2017-01-13 23:20:30

For problem 710B following solutions:

  1. AC solution using collections.sort.
  2. TLE solution using Arrays.sort.

Does this mean Arrays.sort is slow, and should not be used in contests ? Anybody encountered such problem before ?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English rrepeat 2017-01-13 23:20:30 452 Initial revision (published)