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
// Сортировка по образцу | |
// Напиши функцию, которая сортирует массив по каталогу. В каталоге есть все элементы из входного массива, но во входном массиве необязательно есть все элементы из каталога. | |
// Пример: | |
// Входной массив: [1,3,4,4,4,4,5] | |
// Каталог: [4,1,2,3,5] | |
// Результат: [4,4,4,4,1,3,5] | |
Iterable<int> exampleSort(Iterable<int> array, Iterable<int> catalog) { | |
return [1, 2, 3]; |
NewerOlder