-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Added comb sort #179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added comb sort #179
Conversation
|
@gbrunofranco Resolve your merge conflicts |
christianbender
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good Work! I have some requests
| for (int i = 0; i < size; ++i) | ||
| printf("%d ", numbers[i]); | ||
| printf("\n"); | ||
| return 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use free for dealloctaing the space pointer numbers
| } | ||
| } | ||
| } | ||
| int main() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a newline between the begin of the main-function and the code line above.
sorting/comb_sort.c
Outdated
| for (int i = 0; i < size; ++i) | ||
| scanf("%d", &numbers[i]); | ||
| printf("Initial array: "); | ||
| for (int i = 0; i < size; ++i) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Write a function for printing the array. And call this function
82c28a3 to
b2154ae
Compare
No description provided.