Skip to content

Conversation

@Souvikns
Copy link

@Souvikns Souvikns commented Oct 7, 2019

A program that shows how to calculate the length of the linkedlist

SanyuktaSaha and others added 30 commits October 1, 2019 10:40
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
Added commented solution to Leetcode problem 476
JazzKriss21 and others added 21 commits October 5, 2019 23:36
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.
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
+1 byte for the NUL-terminator
Format specifier for size_t, calloc check
A program that shows how to calculate the length of the linkedlist
A program to search an  element in an unsorted array
@ashwek
Copy link
Member

ashwek commented Oct 30, 2019

@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.

@ashwek ashwek closed this Oct 30, 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.