Ad
  • Custom User Avatar

    thanks, didn't think I'd learn something on this one

  • Custom User Avatar

    This is a troll kata, there is nothing to realize except that it is a troll kata. Don't try to find regularitys in the task itsself, you need to look at the tests so get the solution. This is complete bs

  • Custom User Avatar

    half an hour of looking at this bullshit and I am still at a loss as to where the regularity is... I am beginning to think this is just a troll kata

  • Custom User Avatar

    I am new to the language, I think I am not understanding your code, can you please explain something to me? What is the purpose of allocating the size of the input array to the result array?

  • Custom User Avatar

    Does this run faster than if you were to use else if?

  • Custom User Avatar

    Holy hell, this is the hardest 6 kyu I've ever seen. I've spent hours optimizing and thinking about my code and yet it's not fast enough. I don't think this should be 6 kyu.

  • Custom User Avatar

    Yeah that's true you don't really need any vector/array function related libraries for this one so I agree with you the array would make more sense here. If some functions like find() were needed it would be too hard for 6kyu in my opinion because you only really use vector or string functions in most katas up to and including 6kyu and arrays are very obscure for beginners like me.

  • Custom User Avatar

    Yo thanks I didn't know how to use bins and couldn't find the information online with what I used to search, this will come in really useful

  • Custom User Avatar

    I like how this has some lore, nice :>

  • Custom User Avatar

    This is a 6kyu personally I am not sure but I think arrays have way less functions which would make it too hard for 6kyu.

  • Custom User Avatar

    This is my favourite Kata so far, nice one, linear algebra ftw

  • Custom User Avatar

    I am using C++ and this Kata always exits with std::bad_alloc precisely after running the second test prompt with no problem. I feel like this has too little memory assigned, I can't conceive of a way to make my code any shorter. I am simply running one if else if per character in the given string with one extension on the resultant string each and then removing the last character after the for loop to get rid of the last space efficiently so I can just add it in the single extension command of the others. To get the alphabet number I am implicitly converting the chars to the decimal ASCII and subtracting from it to know what to append to the string. I know there exists one function where you can make a reference directory and just directly append by reference but I can't for the life of me find how to do that no matter what I google. This is really frustrating as I feel my solution is really not that bad and yet it is not enough. Do you need to be a C++ Genius to solve a 6Kyu Kata? This should at least be higher kyu for the little memory.