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.
ok thanks for the explaination
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
i agree for this solution. i'm never thinking this before. thanks
Legend!
I used recursion to solve it, but I also found your math formula to be quite impressive!
I think it would have been better if you had tried to get to the algorithm properly. You would have learned more. Using the solution is good when you already know how to get to the solution.
A little disappointing to see that there is already a solution to the problem. Surely that function uses the same algorithms that we are supposed to write. But using this solution takes away all the fun from the problem. It's literally like writing a "hello world." The only value of the kata itself is having discovered that this function exists, I guess.
i made that mistake, thought that the bounce is the amount that is to be subtacted but it is the remainingheight after bounce.
damn, my math skills are weak
damn i'm stupid
could add it but null undefined etc are not booleans
The idea is that booleans only have two values. true and false. If the entered boolean is true it outputs "Yes" if the entere boolean is false it outpits "no" There isnt even any calculation required here. It just directly returns Yes or No depending on whats entered.
Yes Of Course it can simply work without classes. Just write the function outside of the class code block literal and invoke the function like this: findSmallestInt([23, 45, 67])
it's not a completely ridiculous solution though.
I wished I used a Set for this one. This solution makes me feel dumb. lol.
Loading more items...