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.
This comment is hidden because it contains spoiler information about the solution
There is an error in one of the random tests for JavaScript.
It reads:
expected '0:00:01' to equal '00:00:01'"
even though my output is definitely
'00:00:01'
Here's the console.log for my two cases:
I am not understanding why using Set and .repeat are both considered using recursion. If I don't understand what makes these recursive, I won't be able to find a method of solving this kata
Thank you for asking this great question!
And thank y'all for the responses!
This comment is hidden because it contains spoiler information about the solution
My JavaScript function works properly, but is failing the random tests because of the order in which it expects the developer objects.
My function sorts them in the same order as they appear in the test case.
I use a sort method, and then a filter method to grab the objects that evaluate to the same value as oldest age.
In another comment, somebody wrote that the issue is resolved, but it's still giving me issues 5 years later ðŸ˜
I've done 5 kyus that are way easier than this!
Still a great Kata though. Thank you for the challenge
Your comment prompted me to look this up:
https://medium.com/@ashfaqueahsan61/time-complexities-of-common-array-operations-in-javascript-c11a6a65a168
Had no idea that shift() and pop(), and many other methods, had different time complexities.
Thanks!
This comment is hidden because it contains spoiler information about the solution
On JS, great Kata!
This comment is hidden because it contains spoiler information about the solution
preach on bodrovdev.
This is really testing my knowledge on what an array is.
I'm also wondering what these hidden comments are from Chrono79
JavaScript:
The instructions aren't clear as to how to handle invalid index value and null linked list.
I'm throwing an Error on those cases, and it's not clear why I'm still not passing tests.
Would be great if instructions were either clear, or not in JavaScript's list of Katas so that us JavaScript users don't waste their time trying to decipher the issue after handling everything properly...
I believe this is literally what the Kata's instructions are asking for