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.
Hi, thank you for making this kata, it was fun to work on.
Personally, if the description said "In other words, without changing the order of operands, try every combination of a,b,c with [*+()] , and return the Maximum Obtained", that would have made it more clear to me.
Alternatively, if the notes said "You cannot swap the order of the operands", that would work too.
What other kind of swap were you thinking that makes that clarification necessary?
The description is incorrect. It states "If you are given an array of numbers". It's not an array of numbers, it's a number. It should say "If you are given a number".
Using the phrase "full rotations" confused me. I assumed that it has to be 4 consecutive turns in the same direction to be considered a full rotation. I personally would've preferred if the kata only added 1 to 360 rotations if there was 4 turns made in the same direction in a row.
I'm using the same code. The live server and this kata gives me different results. How would that work?
There's something wrong with your solution. More clearly, on the
firstAttacker
andotherFighter
variable. Please, re-check your code.This is not a kata issue.
This doesn't work correctly in JavaScript. With the same exact code, I get the correct answer "Harold", Harry having 0 health. On my live server. Using this website, with the same fighters, same code, the answer returns "Harry" and Harry has 1 health.
PLEASE clarify what "you cannot swap operands" means in the notes. Maybe something like "You cannot switch the ORDER of operands". That would really clear up the confusion. Thank you.
Ok.
This comment is hidden because it contains spoiler information about the solution