Problems
Contest
Discuss
Interview
Store
Register
or
Log in
Premium
For you
For you
Create
Most Votes
All Time
Newest
No search result
Create
Trending
Paypal Hackerrank OA
Anonymous User
5573
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
PayPal
Updated a day ago
95 Questions
·
1 new
·
5.7k
·
550
9
8
Comments (8)
Sort by:
Best
Comment
1
Trending
Download App
Support
Terms
Privacy Policy
More
Copyright © 2026 LeetCode
United States