Ad
  • Custom User Avatar

    Great solution!
    In my approach, I had to convert n to a list first and then loop it backwards, but your solution is awesome!
    It just shows how bad I am at math hahaha

  • Custom User Avatar

    Bro I was thinking the same, but forgot some little things hahahaha

    this is better then mine, cuz I use if-else instead of this beautiful technique.

    my top of mind solution was with the switch case one, but forgot some details so I use if-else to make it faster.