Paypal Hackerrank OA
Anonymous User
5547
  1. https://gist.github.com/andersonmo/7dfe346ae2b24cfbc6783219e08caded
  2. 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
Comments (8)