Ad
  • Custom User Avatar

    Please use a spoiler flag when you post code, so that users who didn´t solve the kata cannot see it; I put the flag for you this time. Also use markdown tags to format your code or it's not usable. Refer to the documentation about this and more: https://docs.codewars.com/training/troubleshooting/#post-discourse

    I don't know if it's the cause of your problem, but you should only use integers and floor divisions to do what you are trying to do.