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.
Language is Java BTW. I'm having some trouble with the random tests and I can't see what I'm doing wrong. The smallest test I've seen that I fail has no rollbacks and is just simple moves. It can be recreated with
What I end up with is
and while I can't see what it should be, I'm getting the error
element[1][4] is "4E" which is only set once and, according to my program, it is set by white. Can anyone that has completed this tell me what this move set should result in? I can complete every other test and most of the time I can complete 30+ random tests, but no matter how many times I try I can't complete this thing.
Nevermind. the "..." wasn't to indicate varargs.
Can someone help me with this higher order function thing in Java? As far as I know varargs has to be the last parameter in a function but in this example it isnt. Does this somehow change if you use a higher order function?
Thanks for this B4B. I was struggling to get through the Javascript version.
Thanks for the reply. Yeah I figured it out a little later. Kata was a lot of fun.
I have a question about the addChaining method. The description says
As for the add method, this chain is not considered as a new branch of the molecule.
If this is the case what is the chain? You give the example of-C-C-C-Mg-Br
. I'm imagining that bonded to a C at a 90 degree angle. How is this any different from any other branch in the molecule? If it isn't a branch, what makes it not a branch and what makes a branch a branch?I have a question about the addChaining method. The description says
As for the add method, this chain is not considered as a new branch of the molecule.
If this is the case what is the chain? You give the example of-C-C-C-Mg-Br
. I'm imagining that bonded to a C at a 90 degree angle. How is this any different from any other branch in the molecule? If it isn't a branch, what makes it not a branch and what makes a branch a branch?java translation added
This comment is hidden because it contains spoiler information about the solution
Are we supposed to check all documents for expiration or only required ones?
I keep running into issues like denying due to expired stuff but I was supposed to deny due to banned nation. In those situations its always documents that aren't required, but are expired. Logically if i'm checking documents at a border I'm going to check everything for conformance, even if it's not a required document, right?
EDIT: Actually it looks like this is completely inconsistent. If I check only required documents I fail because I'm not checking non-required documents. If I check all documents I fail because (I assume) it thinks I should only be checking non-required documents.
can you shorten the array names for java? I'm all for descriptive variable names but "max_values_of_planets_with_retrograde_orbits" and "max_values_of_planets_with_prograge_orbits" are ridiculously long. Maybe call the "progrades" and "retrogrades"?
Quick suggestion, I did the java version and noticed you use List but don't import it to begin with, leaving it to the programmer to do this. I know it's small but it should be easy enough to change.
You were right. I had swapped the order to see if it would fix a different error I was having but it ended up being something else and I forgot to switch it back. Thanks for your help
Java
@Farekkusu
I realize this but if this is true then the random case is not consistent. Can you see any error in my "if order doesn't matter" version of how that particular case should go?
Not sure if it means much but I am able to pass every case except for this random one
Loading more items...