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
This is nicer than just summing the three params since it is generalized to allow for an arbitrary number of parameters. Clever use of spread operator.
I like this because you wrote a functoin to handle an arbitrary number of scores. The scores dictoinary is a nice addition as well.
Very concise!
I wrote out a long solution but this one is nice.
This comment is hidden because it contains spoiler information about the solution
I kind of like this approach because I am just taking the input string and checking each char against the vowels string. It's O(n) time complexity with a little space complexity from the vowels string and count variable. The other solution I wrote up is similar to the ones other folks wrote up--using filter(), split() etc. The tradeoff with those seems to be that they create a new array. If the input string is very large, then the space complexity could suffer. Would appreciate thoughts from others.
Scans the array to determine the first and list instance of an element (this is done by comparing the indices). Whenever it matches you have found the unique element.
When calculating the population, you're computing a population with a fractional part so you'll need to account for that.
This is 8 kyu in python3 but probably a 7 kyu in Typescript/Javascript.
Very nice.
In TS/JS, there's a tedious and clever way of writing this up.
I like this. I had a messy count for each type, but this is clean.
This comment is hidden because it contains spoiler information about the solution
I'm working on this is kata using Py 3.8. In the sample test cases it states that if n==m==0, then return "INVALID'. Similarly, if n>m, then return "INVALID'.
However, when running the full set of tests, it fails, and it says to return 0 if n==m==0 or if n>m. How do I reconcile this? Help?
Loading more items...