-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Create length_linkedList.c #373
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
This reverts commit 5a6ed8e. To modify code to add comments 0
Solution to leetcode Problem 190 and 191
The for loop utilized in 283 was improperly structured as 'start' was no declared as the value to index. Also, make the other cases more readable. Signed-off-by: RJ Trujillo <certifiedblyndguy@gmail.com>
Added commented solution to problem 461
leetcode: Address readability of a few cases, and fix 283
Feature/search insert position
Added commented solution to Leetcode problem 476
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.
Cleaned up the code and used meaningful variable names
Fixed a critical flaw where `strcpy` would write the final NUL-terminator in an invalid location invoking Undefined Behavior. Allocated one extra byte to fix it. Cleaned up the code as well in the process
Improved code Asthetics
Cleaned up, meaningful variable names
Update BubbleSort.c
+1 byte for the NUL-terminator
Format specifier for size_t, calloc check
Leetcode solutions
updated shellSort.c
updated README.md
A program that shows how to calculate the length of the linkedlist
A program to search an element in an unsorted array
Member
|
@Souvikns thankyou for contributing. In search_Array.c you have implemented Linear Search, & we already have a copy of Linear Search in the searching directory. With length_linkedList.c instead of adding a new program only to find the length of the list, it would be great if you could add the length feature in the already existing programs in the data_structures/linked_list directory. |
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.
A program that shows how to calculate the length of the linkedlist