Saturday, April 18, 2015

HackerRank::Algorithms::Warmup::Max Min

We simply sort out the array and take the minimum difference of the first and last numbers of every continuous subsequence of length K.



No comments:

Post a Comment