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.
Your decision is impressive. Understanding complex numbers is something I need to work on.
TypeScript tests is broken. For example test for 643234729-1134$65+4842-8617$46958+547+74$287823$2651$82493267947586$2219814-5231436934717674$84236$71 expected -123329702.39896563 to equal -123329702.39896569.
but eval(643234729-1134/65+4842-8617/46958+547+74/287823/2651/82493267947586/2219814-5231436934717674/84236/71) return -123329702.39896563. Result -123329702.39896569 is clearly a rounding error.
This comment is hidden because it contains spoiler information about the solution
ah. When I read this, I thought otherwise:
not really sure what's your question there. "Your call", I guess? You can forfeit them, or just let them adise until you find some "inspiration" about them.
...And some kata are... "bad", yes. So if you think you stumbled on one of those, just skip it.
It's not a complaint, it's a warning. I have a couple of unfinished katas in which I just don't understand what the author wants from me. 2/3 tests of these katas is done. Do I have to spend a huge amount of time on their decision?
so, why are you complaining, then?? x)
Programmer work it is important to solve problems rather than charades. A universal solution is better than a narrow one. My python solution is still quite compact and clear.
I know, but that's actually not what is "enough", here. ;) So don't complain about you doing more than necessary when it's actually not required. ;))
I have solved the problem. My solution more universal and can find any permutation number
actually, you're not supposed to go that way, to solve this task... ;o
I easily solved the problem in Python. But then I got stuck on the implementation for JS. Codewars use NodeJS version where not support BigInt. I had to write my functions Div, Mod. I wasted my time solve language problems more than solving Kata. In addition, random tests yield string with a length of 28 characters. which directly violates the conditions of the kata
Perfect solution