* updating DIRECTORY.md
* feat: create a PR when building the LeetCode directory
* updating DIRECTORY.md
---------
Co-authored-by: github-actions[bot] <github-actions@users.noreply.github.com>
* Fix : memory allocation method
"new" is not used in C , because of that the compiler was giving compilation error.
Instead malloc was used for memory allocation.
* updating DIRECTORY.md
* Update data_structures/graphs/kruskal.c
Co-authored-by: Stepfen Shawn <m18824909883@163.com>
* updating DIRECTORY.md
---------
Co-authored-by: github-actions[bot] <github-actions@users.noreply.github.com>
Co-authored-by: Stepfen Shawn <m18824909883@163.com>
* feat: added BLAKE2b with one working assert
docs: added BLAKE2b to README.md
* [enhancement] added more doc comments and fully implemented BLAKE2b key hashing
* fix: forgot to add arg
* chore: applied clang-format
* updating DIRECTORY.md
* docs: added main function docs
Co-authored-by: David Leal <halfpacho@gmail.com>
* docs: removed @file qualifier
Co-authored-by: David Leal <halfpacho@gmail.com>
* docs: added doc comment for assert_bytes()
Co-authored-by: David Leal <halfpacho@gmail.com>
* docs: added documentation for #include's
As requested by Panquesito27 in https://github.com/TheAlgorithms/C/pull/1230#discussion_r1130143641
* docs: added algorithm description
As requested in https://github.com/TheAlgorithms/C/pull/1230#discussion_r1130143364
* docs: added reasoning for warning suppression pragmas
* docs: spellcheck and additions
Added doc for bb definition.
Added description for mixing function G and compression function F.
* Added print statement to let user know tests have passed
Co-authored-by: David Leal <halfpacho@gmail.com>
* Updated doc comments for variables
* docs: removed old doc comments
* fix: had minus sign instead of assignment operator
* chore: replaced uint64_t[16] with block_t type to improve readability
* docs: defined macro constants to reduce magic numbers
* fix: fixed memory leak in blake2b()
* docs: moved comment
Moved comment about the suppressed warning directly above the code that emits the warning
* docs: added psuedocode/feat: added u128
Added psuedocode for the algorithm in doc comment for BLAKE2B(). Added return docs for void functions. Defined an unsigned 128-bit integer to match the max input size specified for the algorithm.
* fix: fixed build errors
* docs: added some clarifying comments
* docs: reduced magic numbers
---------
Co-authored-by: github-actions[bot] <github-actions@users.noreply.github.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
* feat: remove nth node from end of list (leetcode #19)
* fix: update the leetcode #19 solution to introduce node pointing to head
---------
Co-authored-by: David Leal <halfpacho@gmail.com>
* feat: add Letter combinations of phone book problem (#17)
* fix: add newline at the end of the file
* fix: add brief description of the algorithm
---------
Co-authored-by: David Leal <halfpacho@gmail.com>
* feat: add Longest Palindrome Substring solution
* fix: update formatting and allocate new results string
* fix: update formatting, fix bug related to the string copy
* fix: add parantheses for one line if statement
* fix: add comments for library inclusions
* feat: add LeetCode problem 540
* feat: Added a description to the LeetCode problem 540
* feat: Added details in the description of the LeetCode problem 540
* feat: Changed a word in @details of the LeetCode problem 540
* feat: add solution for the 3Sum Closest problem (#16)
* fix: Update formatting
* fix: update compare function to avoid overflow in generic case
* chore: apply suggestions from code review
---------
Co-authored-by: David Leal <halfpacho@gmail.com>
* add leetcode Verifying an Alien Dictionary
* updating DIRECTORY.md
* Update 953.c
add blank line at the end
---------
Co-authored-by: github-actions[bot] <github-actions@users.noreply.github.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
* feat: add hamming distance
* Update misc/hamming_distance.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update misc/hamming_distance.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* updating DIRECTORY.md
* Add curly braces to the while loop
* Fix character comparison
* Add a one-line description for library/header
* Update misc/hamming_distance.c
Co-authored-by: Taj <tjgurwara99@users.noreply.github.com>
* Fix function names in test
---------
Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: github-actions[bot] <github-actions@users.noreply.github.com>
Co-authored-by: Taj <tjgurwara99@users.noreply.github.com>
* add leetcode Binary Tree Maximum Path Sum
* Update leetcode/src/124.c
Co-authored-by: Taj <tjgurwara99@users.noreply.github.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: Taj <tjgurwara99@users.noreply.github.com>
* add leetcode Maximum Bags With Full Capacity of Rocks
* Update leetcode/src/2279.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update leetcode/src/2279.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update leetcode/src/2279.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* add leetcode Determine if Two Strings Are Close
* Update 1657.c
add comments
* Update leetcode/src/1657.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* add leetcode Frequency of the Most Frequent Element
* Update 1838.c
small fix
* Update leetcode/src/1838.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* feat:leetcode Delete the Middle Node of a Linked List solution (2095)
* Update README.md
* Update README.md
* Update DIRECTORY.md
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update singly_link_list_deletion.c
Delete function is updated to delete at any required position (not only first)
* Update singly_link_list_deletion.c
The code is changed as per the suggestions. Please lat me know if there are any changes to be done
Thank you
* Update singly_link_list_deletion.c
The code is changed as per the suggestions. Please let me know if there are any changes to be done
Thank you..
* Update singly_link_list_deletion.c
I added inserting at any input location . Please let me know if changes need to be done
* Update singly_link_list_deletion.c
* Update singly_link_list_deletion.c
I updated self tests for both insert and delete functions properly. Please let me know if any changes need to be done
Thank you
* Update singly_link_list_deletion.c
As per your suggestions I updated the code. Please let me know if any changes need to be done..
* chore: apply suggestions from code review
Co-authored-by: David Leal <halfpacho@gmail.com>