• 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
IoghiStudio Avatar
Name:Nicu Iorga
Clan:Unknown
Member Since:Jul 2022
Last Seen:Oct 2024
Profiles:
Following:2
Followers:5
Allies:2
View Profile Badges
Ad
How many Kata did you complete in 2024?
Discover our top moments in 2024 and how you can level up in 2025.
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (16)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • benjaminzwhite
    • commented on "count '9's from 1 to n" kata
    • 3 years ago

    I don't use JavaScript so I can't see your current solution, but if you are going through all numbers up to n and counting 9 inside each one, it will be too slow (even with just this "simple loop" rather than an "infinite loop").

    Maybe the 50ms timing is for very small tests you have tried? Like with n = 100 or something? In the full kata tests the input n goes to 10**19 - try your function with this value on your PC tests if you want to see how fast it is.

  • Custom User Avatar
    • IoghiStudio
    • commented on "count '9's from 1 to n" kata
    • 3 years ago

    My function finish it in 50ms but on codewars i can't run tests , it's saying that the function times out. Can't because the code is fast with no infinite loops

  • Custom User Avatar
    • IoghiStudio
    • created an issue for "Sudoku Solution Validator" kata
    • 3 years ago

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

  • Custom User Avatar
    • Ajmal Bangash
    • commented on "Sum of Digits / Digital Root" kata
    • 3 years ago

    It is still unsoluble,...

  • Custom User Avatar
    • kaka-ling
    • commented on "Calculating with Functions" kata
    • 3 years ago

    You're awesome to be able to focus on that, but the sense of accomplishment that comes with a solution is unparalleled.

  • Custom User Avatar
    • hobovsky
    • commented on "Last digit of a large number" kata
    • 3 years ago

    I don;t think there's too many test inputs. In Javascript, there's 100 random tests, and each can have numbers up to 100 digits long. My JavaScript solution passes the tests in ~1 second. I think tests are balanced quite well, you just need better algorithm.

    Feel free to join Codewars Discord, you could get some help in the #help-solve channel!

  • Custom User Avatar
    • IoghiStudio
    • commented on "Last digit of a large number" kata
    • 3 years ago

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

  • Custom User Avatar
    • IoghiStudio
    • commented on "Last digit of a large number" kata
    • 3 years ago

    Timeout error , my code is not long or hard to read , what happening ? fix this bug

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

    Thank you very much, your answer helped me to understand

  • Custom User Avatar
    • akar-0
    • commented on "Sum of Digits / Digital Root" kata
    • 3 years ago

    Also, important: you must always use the return instruction a the end of your function. print has no effect (it just diplays stuff on the screen).

  • Custom User Avatar
    • akar-0
    • commented on "Sum of Digits / Digital Root" kata
    • 3 years ago

    Hi. Please post in English (you can help yourself with an online translator if you need).

    You must not use input here, nor call the function in your code. Just complete the code of the function. The tests call your function with different argument and check it returns the right answer.

    Remove this:

    num=int(input())
    digital_root(num)
    
  • Custom User Avatar
    • Chrono79
    • resolved a question on "Sum of Digits / Digital Root" kata
    • 3 years ago
  • Custom User Avatar
    • Chrono79
    • resolved a question on "Sum of Digits / Digital Root" kata
    • 3 years ago

    Answered.

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

    Можливо я не зрозумів суті, але чому мені видає помилку EOFError: EOF when reading a line

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

    That was not hard

  • Loading more items...
  • © 2025 Codewars
  • About
  • API
  • Blog
  • Privacy
  • Terms
  • Code of Conduct
  • Contact

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...