Matchsticks to Square (LeetCode 473).
Asked in the video interview stage. Given integer matchstick lengths, determine whether every matchstick can be used exactly once to form the four equal sides of a square.
Implement makesquare(matchsticks), accepting a list of positive integers and returning a boolean.
def makesquare(matchsticks):