Smallest Substring With Identical Characters I at Salesforce
Hard20.3% acceptance
This problem has 75.0% frequency at Salesforce.
Problem Description
You are given a binary string `s` of length `n` and an integer `numOps`. You are allowed to perform the following operation on `s` **at most** `numOps` times: * Select any index `i` (where `0 <= i < n`) and **flip** `s[i]`. If `s[i] == '1'`, change `s[i]` to `'0'` and vice versa. You need to...
Read full problem and hintsTopics
Also asked at 1 company
More Salesforce Questions
Subarray Product Less Than KMediumSmallest Substring With Identical Characters IIHardClosest Equal Element QueriesMediumGroup AnagramsMediumMerge IntervalsMedium
View all Salesforce questions