Find Minimum Operations (It seems for FT in US but intern in CN)
Amazon coding interview problem: Given a binary string of pixels (0=black, 1=white) used by AWS, you can repeatedly remove any character and append it to the end. Determine the minimum number of such operations required to convert the string into its reverse. Return an integer. Input length up to 1e5. This interview question has appeared in Amazon interviews.
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Input Variables
Execution Result:
