You can only eat fish the same size or less than yourself.
For example, if your size is 2 and you encounter a fish of size 3, you must wait to be of at least size 3 to eat it (if you ever reach size 3). Your solution don't take size into consideration.
7 You can and only eat each fish once.
Your solution re-eats the same fish for each level.
Can anyone explain me:How we get for "111111111111111111112222222222" the length of the fish is 5?
I've found it
1111 (2) 2222 (3) 111111111111 (4) 1111222222 (5)
Notice that the first name of the given list, Sevap ends up in seat #10? This is because that's the seat in the Windowsill corner, that of the feature most desired by those family members whose last name starts with a letter in the the ancient name SSSSSSSSS. Every other member of this particular test, all starting with S will then sequentially get a seat as close to there as possible.
Solved in the first attempt
C++
It is ok.
Asking for a kata translation is not a kata suggestion. There is a pending C++ translation here you may review it if you feel like it, but make sure they are in-line with the translating guidelines
Can somebody, please write this code for C++ program?
Logical I don't understand how is the right solution 5, I think it' 4.
For example, if your size is
2
and you encounter a fish of size3
, you must wait to be of at least size3
to eat it (if you ever reach size3
). Your solution don't take size into consideration.Your solution re-eats the same fish for each level.
Can anyone explain me:How we get for "111111111111111111112222222222" the length of the fish is 5?
I've found it
1111 (2) 2222 (3) 111111111111 (4) 1111222222 (5)
Can anybody explain me for example AsiqS%:vh how do get "G&HPsf9c?
ASiQS%:Vh
First step A->0 S->18 => 0-18+77=59 That is '7' not 'G'
...
did y study programming before?
OP solved it, closing
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!
Loading more items...