NeetCode #502LC-473MediumBacktrackingNC 250
← Back to All Problems#502 · #473 · Matchsticks to Square(火柴拼正方形)
📌 Problem Statement & Constraints
You are given an array
matchsticks where matchsticks[i] is the length of the i-th matchstick. You want to use all the matchsticks to form a square. Return whether it is possible. Constraints: 1 <= matchsticks.length <= 15, 1 <= matchsticks[i] <= 10^8.🔒
Sign In to Unlock Full Solutions for All 973 Problems
Sign in to access step-by-step logic, benchmark Python3 code, complexity breakdown, and offline export!