Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 1958. Check if Move is Legal
Determine whether placing your color at a specified free cell on an 8x8 board produces any "good line" by scanning all 8 directions for the pattern: one or more contiguous opponent pieces immediately adjacent to the placed cell followed by a same-color piece (no '.' in between), which together form a line of length ≥ 3.
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.