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.
ah F me, the coordinate system is upside down, but error feedback uses regular coordinate system :/ :/ :/
How do you explain this case?
Specially, given:
please help me. How to access X and Y coordinates. I can't find the names of the variables or the method by which I can access the variables of the point object.Was it difficult to just specify 2 variables x and y?
I'm currently in the same boat with java. Makes me wonder if theres an issue with the java test-checker.
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.
Hello @Tonio31
Using the input you provided I think the result should be
[0, 1, 2, 3, 4, 3, 2, 1, 0, 2, 4, 0]
Maybe you found a problem.
What language are you using?
I'm having the exact same problem and I really can't understand why the lift stops at floor 3 at the end.
SO the case is:
Lift Stops at 0 - [4, 3] in the lift
Lift Stops at 1 - [4, 3, 4] in the lift (queue at floor 1: [0])
Lift Stops at 2 - [4, 3, 4, 3] in the lift (queue at floor 2: [4, 4, 4])
Lift Stops at 3 - [4, 4, 4, 4] in the lift (queue at floor 3: [1, 0])
Lift Stops at 4 - [2] in the lift (queue at floor 4: [])
Lift Stops at 3 - [2, 1, 0] in the lift (queue at floor 3: [])
Lift Stops at 2 - [1, 0] in the lift (queue at floor 2: [4, 4, 4])
Lift Stops at 1 - [0, 0] in the lift (queue at floor 1: [])
Lift Stops at 0 - [] in the lift (queue at floor 0: [])
Lift Stops at 2 - [4, 4, 4] in the lift (queue at floor 2: [])
************* WHY IS IT SUPPOSE TO STOP AT FLOOR 3 HERE ****************
Lift Stops at 4 - [] in the lift (queue at floor 4: [])
Lift Stops at 0 - [] in the lift (queue at floor 4: [])
Can someone tell me why my logic above is wrong. I'm going crazy on this
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.
It is a carboned chain like any other else from the chemist/molecule point of view, yes. But what I call
branches
in the kata are the chains that are defined through thebrancher
method only. From the coding point of view there is a huge difference: you cannot access the atoms of the lateral chains (C-C-C-Mg-Br
, for instance), but you can access any atom (even mutated ones) that are considered "branches", meaning, "were defined usingbranher(...)
.Clear enough?
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?Loading more items...