Available question text
Given a permutation order that replaces characters with '*' over time, find the minimum t such that the number of substrings containing at least one '*' is ≥ k. Key idea: the condition is monotonic in t, so binary-search t and check in O(n) by computing valid substrings as total substrings minus the sum of substrings inside contiguous non-'*' segments.
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 3639. Minimum Time to Activate String
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source