Ad
  • Default 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.

  • Default 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

  • Default User Avatar

    I like how this has some lore, nice :>

  • Default 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.

  • Default User Avatar

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

  • Default 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.