Well, i guess you can still one-line in java
If STDOUT error, then you need to remove your System.out.println statements. You're probably printing too much.
Needs random tests
Tough. Where did you all learn bitwise operators?
(Not raising as an issue because apparently the author aren't going to listen)
These kind of "bugfix" katas have long been officially not fun anymore. Especially considering that actual working code that does the same thing can be done in just a few lines.
This is not "bugfix" (in the sense that it actually teaches people to debug code), or a good kata. Even the code itself looks like Java code and not JS code. It's more like someone's attempt at shitposting a kata.
My solution doesn't work for all the test cases, yet those test caseses are so rare that I can attempt enough times to pass it.
TIP: Add basic test cases to main test suit because those are the cases I can't pass fully :)
Maybe you should ban some evil operations? :)
Had the same problem... but correct solution passes, it was my error.
Ruby translation still pending ;)
Should be all fixed now, cheers :)
If a truthy value is considered false then there should be a list of those values in the description.
Didn't know about it, so nothing runs in the basic tests?
And the truthy/falsey values are JS-style.