Available question text
Given strings s and p and an ordered list of removable indices, find the maximum k such that after deleting the first k indices from s, p remains a subsequence of the resulting string. The key is recognizing the monotonic property (if p is a subsequence after k deletions it is after any fewer), enabling a binary-search over k with a greedy subsequence check.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 1898. Maximum Number of Removable Characters
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source