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.
people seem to gladly sacrifice performance for the sake of performance or visual representation. very sad.
Enabled in this fork
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Your code fails for cases like
[[0, 1], [0, 0]]because of your 2ndforloop finding1at index 1 of[0, 1](inner). However,field[1]does not have1in it, hence the error!This one is actually having lowest complexity compared to all better rated solutions!
Ended up copying and pasting all the functions from the "basics-binary-scott" test solution in the Codewars lambda calculus compiler repository, so I had all the basics functions. I don't know how we are expected to come up with the collatz length solution without rewriting the entire system from scrach with all the shift and binary operations functions. Smh
Do we have to define all needed functions with the lambda calculus version? I'm used to Church numerals and would be fine with those, but with "ScottBinary" being configured as the encoding, I'm not sure about where to start at all.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
All test are passing except n = 73567465519280238573;
Seems like a test issue, becasue all other TC are passing.
Approved!
Approved!
Approved!
Loading more items...