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.
Why should they be false?
Absolutely insane memory usage. ROFL
constant time with the drawback of absolutely insane memory usage
If you add tests, I can update Haskell as well. ( Please poke me under the translation suggestion, I might not get notifications for this thread. )
( In case of random tests, please write readable, maintainable code! )
great, thanks. I was just tetsting C++ for the same issue, but now I'll hold off
I've noticed that the current testing approach isn't strict enough. Will rework my JS and C++ translations today to guarantee all test cases are covered.
It is possible for an incorrect solution to intermittently pass the kata on the chance of a test run where no random tests are produced that have
a
==b
and neithera
norb
appear intxt
.JavaScript passes fairly often
Python rarely passes
TypeScript passes every time
(not tested for other languages)
Thanks! I hadn't thought of vacuous truths before. Good to know for what to do in the future.
Most of the 2000 completions of this kata are in Python. Not impossible.
This issue has an issue.
Please read the Docs on troubleshooting your solution and how to raise useful issues. You are not giving sufficient information to determine any actual problems.
Approved
This kata has an issue. the test cases are wron so valid responses always mark wrong. it is impossible to complete in python
This comment is hidden because it contains spoiler information about the solution
😶 I mean.. That's a solution.. constant runtime and all
Great answer. constant time conplexity and branchless. a masterful use of maths and algorithms