# | Line 86 | Line 86 | bool next_combination(std::vector<int> sequence, int t | |
---|---|---|
86 | for(int i = 0; i < currentSize; i++) | |
87 | sequence[i] = beginIndex + i; | |
88 | sequence.push_back(beginIndex + currentSize); | |
89 | < | } |
89 | > | |
90 | > | return true; |
91 | > | } |
92 | } else { | |
93 | ++sequence[j]; | |
94 | ||
95 | for(int k = j + 1; k < currentSize; k++) | |
96 | sequence[k] = sequence[k-1] + 1; | |
97 | ||
98 | + | return true; |
99 | } | |
100 | ||
101 | ||
# | Line 101 | Line 104 | bool next_combination(std::vector<int> sequence, int t | |
104 | } | |
105 | ||
106 | } //end namespace oopse | |
107 | < | #endif //UTILS_GENERATECOMBINATION_HPP |
107 | > | #endif //UTILS_GENERATECOMBINATION_HPP |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |