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.
Thanks for feedback, I changes to use Test.AssertEquals and added test with random time.
Note: this solution also work if delta > 1
Note: this solution don't work if delta > 1
Oh you hacker :D
Please add more random tests to ensure all cells contains all needed letters.
This comment is hidden because it contains spoiler information about the solution
Thanks for adding random tests :)
Where is no such kata for javascript. I was searching for keywords like unique, distinct and forgot about keyword duplicates :)
You almost correct. d is used basically for generating random integer between from..to, the bigger d value is the bigger range of numbers to select from.
Thanks for your feedback :) I added some more clear examples and improved description about d param, also added some tests to check if generated numbers are really integers, because current solutions generates double numbers in some cases.
Most readable + clever solution :)
Sorry for using ES6 features like spread operator and arrow function, but it's much more readable :)
Thanks for very interesting Kata, I learned a lot :)
According to MDN Object.values is part of ECMAScript 2016 (ES7). I thought we can write only in ES5/ES6 as docs says. +1 for Object.values.
This is very unreadable
Loading more items...