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.
Certainly. Several other submitted solutions accomplish this. To be honest, my solution was in protest of the task. Obviously, a loadbalancer need not assign jobs according to their numberical value, which is to say, the status of the 'solution' after the second loop should be acceptable.
yes
This comment is hidden because it contains spoiler information about the solution
It would be possible but when you go at the bottom of the "Detail" page you have "Similar Kata" where you find the others. Thanks for your post!
Great Kata! Do you think it'd be possible to group your authored kata into collections of topics? I really like the idea of katas such as this
one based on themes of increasing difficulty and it'd be nice to have them in a collection rather than scrolling through all of your authored katas
each time.
Thanks!
I see it now thanks!
Done!
Hey, you approved it really quickly, but I actually left the test reference in sample tests, if you could approve this fork
Cheers.
I'm not sure I understand. If you have solved this Kata, you can simply review all solutions, including the reference solution which is an XOR solution. On the solutions page, click on
Show Kata Test Cases
.I think you forgot to attach the rest of the solution. It cuts off in the middle of the for loop.
Yes. The reference solution is a XOR solution.
Is it possible to solve this using XOR? I can see how we could if there was only one number which appeared once in the array, but I'm not sure how to implement it with the condition of 2 numbers repeating in the array.
Nice solution. Do you think there's any way to assign jobs in the 2nd for loop where you're allocating the correct number of jobs but not in the correct order?
When you're comparing functions on jsperf.com, how do you upload test cases? Does the website automatically pass in large arrays to the functions or is there a section where we manually add test cases?
Hey I saw that you tried different functions on jsperf.com. My question is how do you upload the test cases? Does the website automatically input arrays as arguments in the function? Or do you have to manually put in test cases somewhere?
Loading more items...