This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<body> | |
<button id="redBtn">Set Color to Red 🔴</button> | |
<button id="greenBtn">Set Color to Green 🟢</button> | |
<script> | |
const CANDIDATE_SERVICES = [0xffe0, 0xfff0, 0xffe5]; | |
const CANDIDATE_CHARS = [0xffe1, 0xfff3, 0xffe9]; |
This file contains hidden or 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
/** | |
* Написать функцию sostavChisla(massivChisel: number[], chislo: number), | |
которая бы находила все возможные комбинации чисел из massivChisel, | |
сумма которых равна chislo. При этом: | |
1) massivChisel содержит, только уникальные положительные числа (> 0) | |
2) в комбинации не должно быть повторений чисел | |
3) все комбинации должны быть уникальными | |
Для проверки работоспособности функции запустить runTests() |