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.
This comment is hidden because it contains spoiler information about the solution
:)
xor operator
what's the ^ ?
Thank you!
About the how: when the loop has only one line inside you can omit the curly braces, it's not so clear but if you're careful with indentation it can be read too. As the why, I don't have your answer, maybe the OP can answer that one.
Can someone explain to me how and why OP choose to omit the curly braces at the end of the for loop statement?
You get that when your code takes too long.
From the description: 'All you need to do is climb over your seat and make your way to the exit'
..Meaning that you end up walking along the row behind you, and not blocking anyone in your own row.
This comment is hidden because it contains spoiler information about the solution
Thanks!
Use proper markdown so we can see what the actual and expected values were.
Actual and expected were flipped, I fixed that.
Java translation is buggy:
str = Hello, letter = o
expected:<0> but was:<1>
Can you explain the relation. I have been trying to figure out why you add together. I did get that the choice represents whether or not the egg breaks.
I think there is an issue with java solution.
I have optimized all what are possible. I tryed two way of algorithm - from start and from end.
But there is "Execution Timed Out (16000 ms)"
I found another solution of this Kata in the Git and it also have the timeout error.
Can anyone test your java-solution? Is it problem of this site or my problem?
Loading more items...