* fix: missing include file for cmake function
* fix: using newer version of check include file
---------
Co-authored-by: rbevin777 <rbevin7@gmail.com>
* updating DIRECTORY.md
* chore: add the linter to a separate Python script
---------
Co-authored-by: github-actions[bot] <github-actions@users.noreply.github.com>
* update cmake version
* chore: Update cmake version
* chore: Using latest version of cmake
---------
Co-authored-by: rbevin777 <rbevin7@gmail.com>
Co-authored-by: ryanbevin <ryanbevin@pop-os.localdomain>
Co-authored-by: David Leal <halfpacho@gmail.com>
* updating DIRECTORY.md
* docs: update workflow versions in `README.md`
Windows was removed from the list as the code is no longer being tested on Windows.
---------
Co-authored-by: github-actions[bot] <github-actions@users.noreply.github.com>
* feat: add LeetCode problem 69
Here is the code for the problem 69 of leetcode as there are many ways to do it we programmers need to find the most optimal way to solve a problem statement so i used binary-search approach inorder to solve it.
All suggestions are accepted!!!
* Update 69.c
I have updated the solution according to the suggestions.
* Update 69.c
* Update 69.c
I changed the return value of n in List_length to reflect the number of items inside the list, so a newly initialized list will return a length of 0. To prevent items in List_toArray from being cut off, I addeone back to n at the beginning of the List_toArray function.
* Create dynamic_stack.c
In this implementation, functions such as PUSH, POP, PEEK, show_capacity, isempty, and stack_size are coded to implement dynamic stack.
* Update dynamic_stack.c
Worked on Suggested Changes.
* Update dynamic_stack.c
Worked on suggested changes.
* Update dynamic_stack.c
* Update: Used Int type that are OS-independent
---------
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update binary_to_decimal.c
1. Removed the unused variable remainder.
2. Changed the variable name number to binary_number for clarity.
3. Removed the initialisation of number and temp since they are assigned values later.
4. Removed the newline character from the printf statement to improve readability.
5.Added a return statement at the end of main function.
* Update binary_to_decimal.c
* Add files via upload
feat: added hangman game #967
* Update hangman.c
* Update hangman.c
* Update hangman.c
* Update hangman.c
* Update hangman.c
* Update hangman.c
Updated so that game instance was held as struct - can include current guess in game_instance too if preferred.
* Update hangman.c
* Update hangman.c
* Add files via upload
Adding test file
* Update hangman.c
* Update hangman.c
Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: Sharon "Cass" Cassidy <monadicdiffusive@proton.me>
* chore: made it so math directory gets built
* feat: added extended Euclidean algorithm
* docs: added details qualifier
Co-authored-by: David Leal <halfpacho@gmail.com>
* docs: added param qualifiers to functions that needed them
* docs: added details qualifier
Co-authored-by: David Leal <halfpacho@gmail.com>
* docs: small cleanup
---------
Co-authored-by: David Leal <halfpacho@gmail.com>
* docs: Slight modifications
Changed #include comments from doc to regular because it messed up the generated documentation. Changed blake2b() comment from regular to doc
* docs: Removed @define's
Doxygen doesn't seem to like them. Also fixed param on CEIL
* chore: made it so math directory gets built
* docs: added back third slash for includes
* feat: added extended Euclidean algorithm
* fix: key wasn't being considered in the algorithm
* chore: added more tests
* chore: Deleted file accidentally added from different branch
* chore: moved tests to their own function
* chore: apply suggestions from code review
---------
Co-authored-by: David Leal <halfpacho@gmail.com>
* 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>