Task Scheduling

  • + 9 comments

    Hi,I saw most of the solutions and the testers code.What people did was while(num%2==0)num/=2,a++ and while(num%5==0)num/=5,b++ and they found out max(a-2,b) ...i tried a lot to understand but could not understand the reason...can you help me to figure out the solution..please..thanks in advance