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.
Not a big fan of this kata. It seems to test more math than programming skills.
This isn't really a issue of the kata; but a issue of the library.
Also, why aren't people marking this thread as spoilers?
And it should not, according to the condition of the task
At first I didn't understand either. You need to sum all the arguments (they are in decimal) and convert the result to a binary as an array.
This is infamous type conversions ðŸ¤
Oh, so there is a hack 😆
You can see the kata's formula in this link: https://home.ubalt.edu/ntsbarsh/business-stat/otherapplets/CompoundCal.htm under Mortgage Payments Components. Used KaTeK in the description.
Well, this is definitely bad practice 😆. One-liners like this might impress beginners, but they are unreadable, therefore it's just bad code.
You can also write
.filter(Boolean)
.The formula is displayed incorrectly during training. Do you think it is OK? For example, I did not even look in the "Details" before.
Check the description again.
The formula should be
c = ( r * P0 ) / ( 1 - (1 + r) - N )
. The current formula is, even mathematically, incorrect.Not a kata issue.
I did not undestand the given formula for JavaScript
c = r * P0/1 - (1 + r)-N
, found another one:Regarding the kata, I did not like it. It is not about programming, just about math and putting correct numbers in correct spots.
Old school React class components! Well, that was fun... in a way. Firstly I rewrited everything to functions and hooks, but it turned out the test env does not know what React.useState is. Rewrited everything back again. But enjoyed it nevertheless.
Loading more items...