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.
Python translation
JS should probably use BigInts?
Fixed by fork above.
Fork approved.
fork with Node 18, chai, sample tests with unsorted words, and removal of the "anti cheat" (issue below)
(JS) There's no sample tests that have the chars in
word
unsorted, meanwhile in the actual tests those kind ofword
is given. There should be some in the sample tests.i was searching for one like that
This is the shortest, clearest, fastest and KISSest solution of all those above.
What is going on here? 😅
midudev talked that switch isn´t not better than the Objects.
alexshavlovsky.........
dang what a nice answer bro
really hard for my brain to chew tho hahaha
If the case evaluates true, then it executes the statement after the colon and before the break. So if the first case is not true, it checks the following cases.
check mine
How will it convert all the strings letters to its complimentary letter if it [break] at the first letter it finds to replace? If im not mistaken, doesn't the [break] keyword exit the iteration out of the switch statment and if so how will we find the complimentary letters for the other letters of the input string?
Very cool code. I'll take note!
Loading more items...