Determine if you can partition matchsticks into four equal-length sides.
Constraints
Example
>>> can_make_square([1,1,2,2,2]) True >>> can_make_square([1,1,1,1]) True >>> can_make_square([3,3,3,3,4]) False >>> can_make_square([1,1,1,1,1]) False
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints