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.
Thank for the info, I didn't know that.
const isLeapYear = y => y % 16 ==0
this is also my solution but it fails lets say for the year 4 or 8 !!!
Yes it need to have test cases for this years too!
...
This comment is hidden because it contains spoiler information about the solution
If a pair of input like this
(1,3)
, should print*
*
*
a lot of the solutions won't print it, including mine, instead, will print
*
**
*
hence the solution it might not be taking care of all the possible cases
Have I misunderstood the problem and what I am trying to point out here is futile or it should be in the random tests, inputs like
(1,h>2)?
Thanks
This comment is hidden because it contains spoiler information about the solution
from the description:
let arr = [1, 2, 34, 4, 5, 5, 5, 65, 6, 65, 5454, 4];
Test.assertEquals(waveSort(arr), true);
Hi,
Very educative Kata , I have rarely used Number Object and its methods (min.max etc)
Regarding this Kata i realized that in circa 10%-15% with my solution i don't get full correct answers and this testing case is showing as unpassed
Despite the fact that in almost 75% of the cases my solution didn't pass I managed to got it completed :))
I think you should include in the must pass tests a case when the string are totally different like this
s1="JKfehAidjqZM" s2="iBPcXTszvkXnk"
Thanks for this Kata, keep up with the good job
Thanks
Which method in your opinion is faster/better:
1)to push into an array
2)to add step by step elements to a string
My tests on execution time in chrome showed that the second method seems a bit faster