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
/** | |
* найдите минимум и максимум в любой строке | |
* @param {string} string входная строка(числа отделены от других частей строки пробелами или знаками препинания) | |
* @return {{min: number, max: number}} объект с минимумом и максимумом | |
* '1 и 6.45, -2, но 8, а затем 15, то есть 2.7 и -1028' => { min: -1028, max: 15 } | |
*/ | |
function getMinMax(string) { | |
} |