1
1
mirror of https://github.com/theoludwig/programming-challenges.git synced 2025-05-18 12:02:53 +02:00

feat(cli): add --all option to run test command

This commit is contained in:
Divlo
2021-10-13 21:43:45 +02:00
parent aeff95e691
commit 0a27b9e1a1
47 changed files with 1657 additions and 1773 deletions

View File

@ -42,8 +42,8 @@ int main() {
if (is_last_number) {
break;
}
if (numbers[index] + couple_index == numbers[index + couple_index]) {
consecutive[consecutive_length] = numbers[index] + couple_index;
if ((int)(numbers[index] + couple_index) == numbers[index + couple_index]) {
consecutive[consecutive_length] = (int)(numbers[index] + couple_index);
consecutive_length++;
}
bool is_consecutive = consecutive_length == couple_length;