Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 996. Number of Squareful Arrays
Count distinct permutations of nums where every adjacent pair sums to a perfect square; the core challenge is to build a graph of valid adjacencies and count Hamiltonian paths over it while handling duplicate values (typically solved with backtracking + pruning or bitmask DP/memoization for n ≤ 12).
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.