Ad
  • Custom User Avatar

    As far as I can tell it's all async in JS at least on newer Node versions.

  • Custom User Avatar

    I didn't know "it" blocks inside previous "describe" blocks were executed before the next "describe" block. Very interesting, and useful for other kata's.

  • Custom User Avatar

    I added using namespace std; to the test code. Now it is not required to add it to a solution.

  • Default User Avatar
  • Custom User Avatar

    Yes, there is no performance constraint whatsoever in other languages too.

  • Custom User Avatar

    Approved some time agoo

  • Custom User Avatar

    Your fork should be taken as ref sol imo

  • Custom User Avatar

    Addressed by latest fork

  • Default User Avatar

    Hi, how many tests there are? I am able to pass 44 of them before it times out... :(

    • DONE

    Actually, I really enjoyed this one... I stumbled a long time on how to make it faster... Also finding a coordinate to spiral_number algorythm took me some times... I have to say I wonder why it is only a 5 kyu but I am new that might explain...

    Thank you

  • Custom User Avatar

    It was my previous profile (2 kyu). I tried to do every katas just with one-liners but one person commented I am a cheater and he is sure I use a converter which makes those one-liners. I did not want to argue, so I just deleted that profile. Since then I registered this new account with the same email address and github profile but with different name, and I don't make one-liners anymore. Ok there are some exceptions when that is the most logical solution, but that is just a few case.
    If you don't believe me that was my account then just check the 8kyu Katas, I have completed all the 8 kyu katas with that account (with this also), so you will find the soulutions of user7807731 at all the 8 kyu katas which are more than 2 years old. I deleted that account just a few months before I moved to Nepal. Unfortunately it was not possible to restore the deleted account, but at least I practice those katas again.

  • Custom User Avatar
  • Custom User Avatar

    link updated in the description

  • Custom User Avatar

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

  • Custom User Avatar
  • Default User Avatar

    What? I avoid this approach on purpose. I try to solve these challenges without googling at all. And if I google I only google small part of what I need. After solving it, I look for good solutions among the answers to learn from. This is not one of them. My answer is horrible, but it shows the actual implementation. The solution of this guy is "google a module that solve the entire problem". But I already know how to google. So I'll have a look for someone further down that actually managed to solve the problem

    Do you really wish you thought of googling? Because that is all this answer requires if you don't have the library name in your head.

    It's like saying "wish I had used chatGPT to solve this problem"
    Sure, you may use chatGPT as a tool in your work, but it would remove entire point of coding challenges

    Solutions like these aren't allowed in most coding interviews. It's not impressive. It does not show skill. It is not educational. At this point I wonder why even post a solution at all? What do you get from it? It's like voluntarily taking a math quiz for fun, but then copy paste all the answers from the solution manual

  • Loading more items...