Apply Bitwise Operations to Make Strings Equal at Sprinklr
Medium42.5% acceptance
This problem has 87.5% frequency at Sprinklr.
Problem Description
You are given two **0-indexed binary** strings `s` and `target` of the same length `n`. You can do the following operation on `s` **any** number of times: * Choose two **different** indices `i` and `j` where `0 <= i, j < n`. * Simultaneously, replace `s[i]` with (`s[i]` **OR** `s[j]`) and `s[j]...
Read full problem and hintsTopics
More Sprinklr Questions
Apply Operations on Array to Maximize Sum of SquaresHardCount the Number of Powerful IntegersHardMinimum Time to Revert Word to Initial State IIHardMinimum Time to Revert Word to Initial State IMediumClosest Subsequence SumHard
View all Sprinklr questions