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
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?
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 have solved the problem. My solution more universal and can find any permutation number
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