Problems
Contest
Discuss
Interview
Online Interview
Assessment
Store
Redeem
Premium
For you
For you
Create
Most Votes
All Time
Newest
No search result
Create
Paypal Hackerrank OA
Anonymous User
5547
Interview
https://gist.github.com/andersonmo/7dfe346ae2b24cfbc6783219e08caded
Given a Binary String. Replace all "01" to "10" until it's no more possible. In 1 second you replace all "01" to "10" in next second keep repeating this procedure. Return the total seconds to complete this. eg: 0101->1010->1100 ans:2
9
8
Comments (8)
Sort by:
Best
Comment
1
Explore
Download App
Support
Terms
Privacy Policy
More
Copyright © 2026 LeetCode
United States