-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
sorting algorithm BubbleSort #411
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
Closed
Closed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Fix: only numbers which is between 99 and 1000 can be checked. So, it can check if any positive number is armstrong number.
I have written a proper code with comments and proper formatting so that it is easily legible.
Update countingSort.c
Added RC4 stream cipher algorithm
Add Splay Tree in DS
7.c :reverse of a number with overflow check added
The correct format specifier for `size_t` is `%zu`. If C89 support is needed, `%lu` along with a cast to `unsigned long` will suffice. Also added error checking for calloc.
Leetcode solutions
updated shellSort.c
updated README.md
Fixed link to TwoSum (#1)
Added solution for TheAlgorithms#5 Longest Palindromic Substring
Added TheAlgorithms#5 longest palindromic substring
As you asked, I removed my large Portuguese comment that was explaining my code, and now I'm calling the function binarySearch in the main function and using it (I explained with comments in English what I'm doing).
Fixed strSize to strlen
Seperated out checkPalindrome section
Added the alternative approach suggested by @danghai
Add more solution for leetcode
also use strtok to remove trailing "\n"
I was passing 9 as the array size to my binarySearch function, now I atualized this error and I'm passing 10.
Create DoublyLinkedListInsertion.c
Added primes_in_range.c. Edit: no conflicts with base branch
Update isArmstrong.c
updated .gitignore
Create binarysearch.c
Update countingSort.c
sorting algorithm
Member
|
@Ghost-kaze thank you for contributing, but we already have an implementation of bubble sort. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
BubbleSort algorithm for sorting integers in an array