LeetCode
Hand of Straights
Click
here
for an explanation.