LeetCode
Push Dominoes
Click
here
for an explanation.