Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 1375. Number of Times Binary String Is Prefix-Aligned
Given a permutation flips describing the order in which bits in an all-zero length-n binary string are turned to 1, count how many steps i produce a prefix-aligned string (positions 1..i all ones and the rest zeros). Equivalently, count the moments when the maximum index flipped so far equals the current step i.
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.