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 hints

Topics


More Sprinklr Questions

View all Sprinklr questions