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:
@ -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;
|
||||
|
Reference in New Issue
Block a user