HackerRank icon indicating copy to clipboard operation
HackerRank copied to clipboard

Solution based on O(n log (n))

Open kevindelsh opened this issue 6 years ago • 0 comments

The current solution is O(n*m) which is sub-optimal. Based on @RyanFehr 's Java solution, this would be more efficient. In addition, it appears to me that sorting is superfluous in the current code.

kevindelsh avatar Jan 13 '19 15:01 kevindelsh