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.
I have solved it and got all testcases passed but not satisfied, in the sense that can it be done in linear time ?, like using two loops leads to O(n ^ 2). Can anyone please suggest the way or algorithm.
In solutions people use arr.length(which is part of Array.prototype) and also in description it was nowhere mentioned about replace is prohibited. Also clearly mentioned no temp array but in many solutions I can see temproary array being created. It seems kata is not properly described.
NO proper description, no test cases waste of time.
I have used sort but took care of it during number comparision, and when I take the same random test and try it out in codepen I am able to get the expected result, 10 test cases are failing on clicking attempt. And whats more weird is when i try to use console.log() for input I am seeing 13 test cases failing. Very weird behaviour.
I think there is an issue in the kata, like I am checking with my editor for even random tests its working but here it's not working. Could please help me out raising the issue.
Once I decoded the logic I felt it bit simple, but yes to get through right logic was the tough part. It was a nice kata.
Enjoyed doing the kata.
Thankyou for providing a brief explaination regarding the Regexp. Very informative content.
Don't get me wrong but this kata does'nt seem to be 6kyu should be rather 7 or 8 kyu.
Loved this kata. Felt very difficult to solve but realised the thing needs to be solved by basic multiplication.
I am able to execute the code on codepen but when running on codewars it's showing stderr timeout
This comment is hidden because it contains spoiler information about the solution
I have refactored code multiple times yet it shows timeout in javascript. How is that without iterating in nested loops one can solve this(just a doubt). Can anyone give me some insights or possible reference.
Thankyou for the help, I will check my code in that case but yet I have doubt like just by trying a manual walkthrough over the given array it seems it's not possible [ 25, 25, 25, 25, 25, 25, 25, 50, 50, 50, 100, 100, 100, 100 ] to get "NO"
But when i do a dry run, I feel this should not work, I have even put the dry run could please help like all 23 test cases have passed but this one is failing.
Loading more items...