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.
Notice that the first name of the given list,
Sevap
ends up in seat#10
? This is because that's the seat in theWindowsill
corner, that of the feature most desired by those family members whose last name starts with a letter in the the ancient nameSSSSSSSSS
. Every other member of this particular test, all starting withS
will then sequentially get a seat as close to there as possible.Why for the test All_Favor_the_Same_Feature
Sevap Syolc Sgulg Stolb Sknoh Spord Sgnaf Shcat Sknit Snirg Senin Sliob
result is not like this;
Sliob Snirg Shcat Spord Stolb Syolc Sevap Sgulg Sknoh Sgnaf Sknit Senin
but
Sgnaf Sknit Senin Sliob Snirg Shcat Spord Stolb Syolc Sevap Sgulg Sknoh
Very beatiful and nice kata
This comment is hidden because it contains spoiler information about the solution
Nice kata!
Nice kata!
It was really DIFFICULTY, but I did it. I like it.
the first word used is "flap" (the given word)
bob uses "clap" (now this is a used word also)
alice can't use "flap"; as it was already used
Please I need your help for this example:
const std::vectorstd::string alice {"plat", "rend", "bear", "soar", "mare", "pare", "flap", "neat", "clan", "pore"};
const std::vectorstd::string bob {"boar", "clap", "mere", "lend", "near", "peat", "pure", "more", "plan", "soap"};
Assert::That(mutations(alice, bob, "flap", 1), Equals( 1)); // Bob goes first, Bob wins
I think it goes like this: 1-clap, 0-flap and that's all because Bob doesn't hsve his respone, so he has to lose.
Am I right?
There is no "codewars compiler". It's just Clang. You can find more info about C++ runtime here: https://docs.codewars.com/languages/cpp
Can you please check it out again on the other compiler not codewars cimpiler. I think it will print correct result.
Hi there.
The C++ translation has been around for ~5 years, and successfully completed 75 times so far. There may be some issues, but none related to the compiler or giving incorrect results (to my knowledge).
Being the author of this kata, I can see your current code, so I copied it and ran it. For the message
"D=b*b-4*a*c"
, the expected result is"#3****#22*-22**4-*-2*-222"
, but your code returned"#3****#222222**4-4-22222"
. I can immediately see that there is an issue with this result: after typingD=
("#3****"
), you're correctly switching to lowercase, but then you're clicking button2
6 times, when only 2 are required to output letter"b"
.Make sure to debug your solution. On CodeWars, you can print things to console and they will show up. You can get more tips by reading this article: https://docs.codewars.com/training/troubleshooting
Let me know if you have any other questions related to this.
Your compiler gives wrong result for some tests even I get correct results.
I test my code on two different compilers.
Can you check it out please.
Ir was easy.
really big work
Loading more items...