Skip to content

Conversation

@soyo-kaze
Copy link

BubbleSort algorithm for sorting integers in an array

maysanchez and others added 30 commits August 12, 2018 22:25
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.
Added RC4 stream cipher algorithm
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.
danghai and others added 28 commits October 6, 2019 22:10
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
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
sorting algorithm
@ashwek
Copy link
Member

ashwek commented Nov 2, 2019

@Ghost-kaze thank you for contributing, but we already have an implementation of bubble sort.
Closing PR.

@ashwek ashwek closed this Nov 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.