This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Последовательные строки | |
// Задан массив строк и целое число k. Задача - вернуть самую длинную строку, состоящую из k последовательных строк, взятых в массиве. | |
// Пример: | |
// Входной массив: ['zone', 'abigail', 'theta', 'form', 'libe', 'zas', 'theta', 'abigail'] | |
// Количество строк: 2 | |
// Результат: 'abigailtheta' | |
String longestConsec(Iterable<String> array, int k) { | |
return 'abigailtheta'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/ Последовательные строки | |
// Задан массив строк и целое число k. Задача - вернуть самую длинную строку, состоящую из k последовательных строк, взятых в массиве. | |
// Пример: | |
// Входной массив: ['zone', 'abigail', 'theta', 'form', 'libe', 'zas', 'theta', 'abigail'] | |
// Количество строк: 2 | |
// Результат: 'abigailtheta' | |
String longestConsec(Iterable<String> array, int k) { | |
return 'abigailtheta'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Последовательные строки | |
// Задан массив строк и целое число k. Задача - вернуть самую длинную строку, состоящую из k последовательных строк, взятых в массиве. | |
// Пример: | |
// Входной массив: ['zone', 'abigail', 'theta', 'form', 'libe', 'zas', 'theta', 'abigail'] | |
// Количество строк: 2 | |
// Результат: 'abigailtheta' | |
String longestConsec(Iterable<String> array, int k) { | |
return 'abigailtheta'; |