Minor improvements
This commit is contained in:
parent
dfaaa08433
commit
7bbb5f2d96
11 changed files with 93 additions and 76 deletions
|
|
@ -6,7 +6,7 @@ export const getCombinations = (values: Array<Array<number>>): Array<Array<numbe
|
|||
const result: Array<Array<number>> = [];
|
||||
const counters = values.map((_) => 0);
|
||||
|
||||
const increaseCounter = (i: number) => {
|
||||
const increaseCounter = (i: number): boolean => {
|
||||
if (i >= counters.length) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue