We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Picking Numbers
Picking Numbers
Sort by
recency
|
2605 Discussions
|
Please Login in order to post a comment
Flag array method (write in kotlin):
Simple unsorted n-squared solution.
As many exercises on this site, the description of the problem is misleading: it gives you the impression that data in the array have to stay unordered... but in reality the problem expects for you to sort the array.