Ad
  • Custom User Avatar

    I only return null if the input is 0.

    This is not correct thing to do. What will happen if $a is 0, and $b is -1? What will your solution return, and what is the correct answer?

    Your solution has a bug, it's not a kata issue.

  • Custom User Avatar

    In what language?