Java automatically converts arithmetic operations on bytes into an integer value. So your cast (int) is unnecessary. Additionally, you should not change the method signature to satisfy this kata.
I’m here to learn, so if there’s something wrong with my code, I’d really appreciate it if you could explain what it is. Comments like 'this is b€€€s€€€' don’t help anyone improve and don’t contribute to a positive learning environment
It's quite simple - you check all the paths until a & b || c & d returns true. Sometimes there are two possible ways - such as in the banana case. For this reason there is the || in our solution for both recursive paths
Java automatically converts arithmetic operations on bytes into an integer value. So your cast (int) is unnecessary. Additionally, you should not change the method signature to satisfy this kata.
I’m here to learn, so if there’s something wrong with my code, I’d really appreciate it if you could explain what it is. Comments like 'this is b€€€s€€€' don’t help anyone improve and don’t contribute to a positive learning environment
This is an anoying kata
this is b€€€s€€€
Cool - i didn't know this method. kudos
I had to read about this data structure first - now i consider it as the best approach
This comment is hidden because it contains spoiler information about the solution
Compared to other Kyu-7 katas, it is too complicated. 6 would be more appropriate.
Nice one - Code Golf :) Please check my solution as well :D
In Python it runs in 1 second
It's quite simple - you check all the paths until a & b || c & d returns true. Sometimes there are two possible ways - such as in the banana case. For this reason there is the || in our solution for both recursive paths
Why is this best practice? This is bullshit - my code works 40x faster.
Overkill
Wild
Why ? Not able to compute right answers? :D
Loading more items...