Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
@ameenj You used a lot of loop. Thats why it has failed. Try to store str2 chracters in an object. I am not saying more.
I described my code in previous reply.
@hobovsky yes. I faced it yesterday. By the way it is very hard to get some solution by waching the long test. I only see the medium and short tests.
This comment is hidden because it contains spoiler information about the solution
Really awesome kata, made me to think in different approaches, learned a lot related to performace when using nested loops and methods containing hidden loops and I have cracked it finally.
@ameenj: since your approach sound like a valid solution, I am going to hide your post as a spoiler.
@mmehedihasan05: you can use
console.log()
, but there is a limit of how much Codewars allows you to print to console: https://docs.codewars.com/training/troubleshooting#maxbufferThis comment is hidden because it contains spoiler information about the solution
I used Console.log to see the testcases. But it says "Max Buffer Size Reached". After that I removed console.log() the the code worked fine. So don't use console.log()
beautiful but unnecessary loops
thanks buddy. 1 min of reading your comment and I solved this kata.
This comment is hidden because it contains spoiler information about the solution
I don't like to invalidate existing solutions unless it is absolutely necessary. We don't need to invalidate anything here: It is enough to adjust the test code.
I personally care much more about a kata expecting incorrect results that not invalidating old solutions.
This is not 6 kata. This should be 7 or 8 kata.
This comment is hidden because it contains spoiler information about the solution
Thank you so much for your explanation. I was doing Total Set instead of comparison and getting errors.