Ad
  • Custom User Avatar

    Ohhh makes sense, yea I completely forgot this website is that old.

  • Custom User Avatar

    Dyslexia simulator

  • Custom User Avatar

    Yes, it is overranked, but it's because it's very old (from 2013). However, it definitely isn't 8kyu. Re-ranking it at this point would be too costly (would require loads of recalculations), so for now... just take the free points and move on :P

  • Custom User Avatar

    Why is this a 5 kyu instead of an 8 or 7 kyu?

  • Custom User Avatar

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

  • Custom User Avatar

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

  • Custom User Avatar

    Good for beginners

  • Custom User Avatar

    Definitely 8kyu

  • Default User Avatar
  • Custom User Avatar

    If you're asking this question, you probably have issues with the larger numbers in the submission tests.
    Without seeing your code, it's impossible to know.
    If you're timing out, it's hard to say whether your approach needs a simple tweak or a complete overhaul.

    Quick -- pretend like you're the computer running your algorithm and answer the following:

    What's the next smaller number from 90000001 with the same digits?

    Do you sense that you're doing unncessary work? Is there a simplification you can do?

    If that's no problem,try the same with the following: 912345678?

    If these are hard for you to attempt doing by hand using the algorithm you coded -- you should rethink your algorithm.
    If that's too much you might try a similar experiment in a debugger, stepping line-by-line and noting where your code is spending its time. Is there any unnecessary/pointless work being done?
    If that doesn't help, read the troubleshooting guide available in the codewars docs.

    Good luck! IMO it's the challenge of this exercise that makes it worth figuring out.

  • Custom User Avatar

    How close am I to optimizing it enough? 64ms on basic tests, 60ms on short tests, 10 lines.

  • Custom User Avatar

    I had just made a discord bot for this a month or two prior to me seeing this kata that is funny that I just now stumble upon this kata.

  • Custom User Avatar

    Only 12 others have finished this in BF???????

  • Default User Avatar

    The description does the kata for you.

  • Custom User Avatar

    I wouldn't use Issuefor a typo, but... fixed. Remember to mention which language you're talking about next time, please.

  • Loading more items...