Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 3223. Minimum Length of String After Operations
Given a string s, you may repeatedly pick an index i whose character appears at least once both to its left and to its right and delete the nearest matching characters on each side; return the minimum possible length of s after any sequence of such operations. (1 ≤ s.length ≤ 2·10^5, lowercase letters.)
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.