Fixing indentation
This commit is contained in:
parent
d39471fc84
commit
b3f59784c9
1 changed files with 16 additions and 16 deletions
|
@ -84,7 +84,7 @@ int find_max(list lst) {
|
||||||
return max;
|
return max;
|
||||||
}
|
}
|
||||||
|
|
||||||
void find_peak(list * lst, size_t size) {
|
void find_peak(list * lst, size_t size) {
|
||||||
int min = find_min(lst[0]);
|
int min = find_min(lst[0]);
|
||||||
int max = find_max(lst[0]);
|
int max = find_max(lst[0]);
|
||||||
int new_min, new_max;
|
int new_min, new_max;
|
||||||
|
@ -100,7 +100,7 @@ int find_max(list lst) {
|
||||||
}
|
}
|
||||||
printf("Maximum %d\n", max);
|
printf("Maximum %d\n", max);
|
||||||
printf("Minimum %d\n", min);
|
printf("Minimum %d\n", min);
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(void) {
|
int main(void) {
|
||||||
list list1 = insert(insert(insert(insert(NULL, 11), 7), 5), 3);
|
list list1 = insert(insert(insert(insert(NULL, 11), 7), 5), 3);
|
||||||
|
|
Loading…
Reference in a new issue