LeetCode

Matchsticks to Square

Click here for an explanation.