• Sign Up
    Time to claim your honor
  • Training
  • Practice
    Complete challenging Kata to earn honor and ranks. Re-train to hone technique
  • Freestyle Sparring
    Take turns remixing and refactoring others code through Kumite
  • Community
  • Leaderboards
    Achieve honor and move up the global leaderboards
  • Chat
    Join our Discord server and chat with your fellow code warriors
  • Discussions
    View our Github Discussions board to discuss general Codewars topics
  • About
  • Docs
    Learn about all of the different aspects of Codewars
  • Blog
    Read the latest news from Codewars and the community
  • Log In
  • Sign Up
Hoophoop Avatar
Name:Unknown
Clan:Unknown
Member Since:Nov 2018
Last Seen:Mar 2025
Profiles:
    Following:0
    Followers:0
    Allies:0
    View Profile Badges
    • Stats
    • Kata
    • Collections
    • Kumite
    • Social
    • Discourse
    • Conversations (11)
    • Replies
    • Authored
    • Needs Resolution
    • Custom User Avatar
      • Chrono79
      • commented on "Sum of Digits / Digital Root" kata
      • 5 years ago

      Add some prints to debug your code, and some counters to make sure your loops end. You'll see you have infinite loops. It fails with the first sample test if you want to try.

    • Custom User Avatar
      • Hoophoop
      • commented on "Sum of Digits / Digital Root" kata
      • 5 years ago

      Ah correct, I was calling the function instead of returning the function call. Everything passes, thank you

    • Custom User Avatar
      • Chrono79
      • commented on "Sum of Digits / Digital Root" kata
      • 5 years ago

      Yes, if you print the value to the console but the recursion came back as undefined is because you aren't returning the call to the function normally.

    • Custom User Avatar
      • Hoophoop
      • commented on "Sum of Digits / Digital Root" kata
      • 5 years ago

      Can you explain how you came to that conclusion?

    • Custom User Avatar
      • Chrono79
      • commented on "Sum of Digits / Digital Root" kata
      • 5 years ago

      You're doing recursion wrong.

    • Custom User Avatar
      • Chrono79
      • commented on "Sum of Digits / Digital Root" kata
      • 5 years ago

      It's not time complexity, your code has infinite loops.

    • Custom User Avatar
      • Hoophoop
      • commented on "Sum of Digits / Digital Root" kata
      • 5 years ago

      This comment is hidden because it contains spoiler information about the solution

    • Custom User Avatar
      • FArekkusu
      • resolved a question on "Sort array by string length" kata
      • 7 years ago

      User is not active anymore.

    • Custom User Avatar
      • FArekkusu
      • resolved a suggestion on "Sort array by string length" kata
      • 7 years ago
    • Custom User Avatar
      • FArekkusu
      • resolved an issue on "Sort array by string length" kata
      • 7 years ago

      Don't modify the input.

    • Custom User Avatar
      • Hoophoop
      • created an issue for "Sort array by string length" kata
      • 7 years ago

      I can pass all initial tests but every "attempt" test states that my answer should equal an empty list. I'm assuming this is a bug of some sort? Tried running it in python 3.4.3 and python 3.6.0, same issue.

      Besides that, great problem!

    • © 2025 Codewars
    • About
    • API
    • Blog
    • Privacy
    • Terms
    • Code of Conduct
    • Contact

    Confirm

    • Cancel
    • Confirm

    Collect: undefined

    Loading collection data...