• 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
ransy Avatar
Name:Unknown
Clan:Founders & Coders
Member Since:Mar 2015
Last Seen:Nov 2024
Profiles:
    Following:224
    Followers:220
    Allies:217
    View Profile Badges
    • Stats
    • Kata
    • Collections
    • Kumite
    • Social
    • Discourse
    • Conversations (151)
    • Replies
    • Authored
    • Needs Resolution
    • Custom User Avatar
      • MehproWarp
      • commented on "Convert a Boolean to a String" python solution
      • 7 months ago

      I don't get the joke...

    • Custom User Avatar
      • MehproWarp
      • commented on "Convert a Boolean to a String" python solution
      • 7 months ago

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

    • Custom User Avatar
      • doubled148
      • commented on "Convert a Boolean to a String" python solution
      • 9 months ago

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

    • Custom User Avatar
      • EimisM
      • commented on "Convert a Boolean to a String" python solution
      • 11 months ago

      This code returns string either way I guess :D

    • Custom User Avatar
      • kaorimiyazonoo
      • commented on "Convert a Boolean to a String" python solution
      • 11 months ago

      could someone explain the concept behind this

    • Custom User Avatar
      • Mednoob
      • created a suggestion for "count '9's from 1 to n" kata
      • 12 months ago

      JS update fork

      • Uses chai for assertion
      • Assertion messages now shows the input number
    • Custom User Avatar
      • IvanSivtsov
      • commented on "Convert a Boolean to a String" python solution
      • 16 months ago

      hyper brainy
      mine respect

    • Custom User Avatar
      • Voile
      • created an issue for "Sparse Ruler" kata
      • 2 years ago

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

    • Custom User Avatar
      • Voile
      • created an issue for "Sparse Ruler" kata
      • 2 years ago

      It is unclear what the failure message means when a test failed:

      Expected: '111111111', instead got: '111111011'
      

      What it's probably trying to say is using 0 and 1 at index i to mark whether i+1 can be represented by the ruler, but then again, this is not informative test feedback.

    • Custom User Avatar
      • Voile
      • created an issue for "Sparse Ruler" kata
      • 2 years ago

      There are no sample tests or random tests.

    • Custom User Avatar
      • nodak
      • commented on "Convert a Boolean to a String" python solution
      • 2 years ago

      my brain isn't braining

    • Custom User Avatar
      • benjaminzwhite
      • commented on "count '9's from 1 to n" kata
      • 2 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
      • 2 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
      • benjaminzwhite
      • resolved a question on "count '9's from 1 to n" kata
      • 2 years ago

      Hi @eiphorie - in random tests, the value of n goes up to 10**19 or so meaning that actually creating the string is impossible, let alone counting inside it.

      You have to find a smarter way to get the answer - for this, you can use your solution for smaller values of n to maybe try to find some patterns or help you debug.

      This is actually more of a mathematics/logic type kata, so if you don't get the answer straight away then practicing on other katas will definitely improve your ability to "see" the correct approach and techniques. Hope that helps a bit

    • Custom User Avatar
      • eiphorie
      • created a question for "count '9's from 1 to n" kata
      • 2 years ago

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

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

    Confirm

    • Cancel
    • Confirm

    Collect: undefined

    Loading collection data...