Why log(num)/log(4)%1 == 0 works, but log(num)%log(4) == 0 doesn't?

  • 0

    Technically, I think
    log(num)/log(4)%1 == 0
    log(num)%log(4) == 0
    meaning the same thing. However, the 1st one works, and the 2nd one doesn't. Is that deal to some dirty double operation? or is it just wrong?


Log in to reply

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.