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 bothers me too! Learned I have to slow down A LOT. I get excited about trying to climb ranks quickly, but it is counter productive. I kept having to learn the same things over and over. Also, there's a lot to learn in the 7 / 8 range. I keep a notebook and write down on one line the things I learn. Then I review it from time to time. I hope to become a great dev someday, and from the way things look now, for me, it will take slow learning over the course of years! Oh well, I love the journey though!
I like this kata because it requires you to slow down. Maybe the description could be improved, but if you sit down and just start drawing out a 3d grid of boxes that share lines, you will see quickly what is being asked. The math is not very difficult either, one just needs to find the pattern.
This comment is hidden because it contains spoiler information about the solution
Accumulator is an array! Very clever!!
Clever use of ++! I had this thought too, but keep seeing comments like "Mutating inputs is discouraged." So I'll repeat it here. I think the problem is if you intend on using the value you passed as
exponentlater on, it will be incremented, which might not be what you expect.Forgot you just assign the funcion to a variable! Nice!
This comment is hidden because it contains spoiler information about the solution
Good catch. With
there are no "tricky" edge casesin the description, this test should just be removed, and the description should actually just specify greediness.Had to hack a solution for test:
minimumBillCount(1010, [50, 1, 20]).Min result is 22, but test requires 30.
50 * 19 === 950
20 * 3 === 60
19+3 === 22 & 950 + 60 === 1010
Maybe update the test to find 22 instead :)
This comment is hidden because it contains spoiler information about the solution
Cool! Bracket notation seems to coerce to integer! So
quotes[['0']]becomesquotes[0].Nice! Had to dig into floating point numbers passed into Array.slice(). It seems to truncate, not round. Very cool solution!
🏌️♂️⛳️ Nice!
Clever use of comparison operators!
Array.prototype.concat returns a new array! Cool :)
Loading more items...