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.
Okay, thank you.
Разобрался? Потому что меня уже гнилыми помидорами закидали, причём сформулировать что всё-таки нужно сделать никто не хочет.
Либо выбрать самую длинную строку + n-строк по второму аргументу, либо взять первую и n-строк, как пишут в комментариях, но тогда это не сочетается с примерами кода.
@OlegSonin: you should read this whole thing. It was created specifically for people like you who do not enough masterize cw' environment yet. Lots of useful info for you in there.
cheers.
You can make two strings of 2 consecutive strings taken in the array there:
"Hellolongest" is the first one, they have the same length.
First string most longest string, longest string in array is "longest". Why "Hellolongest"? Look at the "Sample Tests".
My code is looking for the longest string anywhere. Test it.
https://pasteboard.co/JjzQ08B.jpg
This comment is hidden because it contains spoiler information about the solution
Isn't that in the instructions? Read them again.
@EmperorMigx Thank you with your explenation I was able to finish the exercise within couple of minutes, before I struggled for hours. THe explenation of the exercise is really not clear writen.
This comment is hidden because it contains spoiler information about the solution
And how exactly is it broken?
This comment is hidden because it contains spoiler information about the solution
Just: $dupCount++