Search⌘ K
AI Features

Matchsticks to Square

Matchsticks to Square gives an array of matchstick lengths and asks whether every stick can be used exactly once to form one square, without breaking any stick.

Statement

Given an integer array, matchsticks, where matchsticks[i] is the length of the ...