David Leal
a555d2dd07
chore: update the CodeQL workflow ( #1246 )
...
Co-authored-by: Taj <tjgurwara99@users.noreply.github.com>
2023-05-16 12:39:34 -06:00
David Leal
aae2aac1ff
chore: minor LeetCode directory workflow improvements ( #1247 )
...
* updating DIRECTORY.md
* chore: minor LeetCode directory work...
...flow improvements.
* updating DIRECTORY.md
---------
Co-authored-by: github-actions[bot] <github-actions@users.noreply.github.com>
2023-05-12 12:26:32 -06:00
MRio
71a7cf3bc4
feat: added hangman game #967 ( #1248 )
...
* 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>
2023-04-30 09:47:09 -06:00
Aditya Pal
2b885108b8
feat: add LeetCode problem 434 ( #1252 )
...
* feat: add LeetCode problem 434
Adds solution of problem 434 for leetcode. Beats 100% Time, 97.18% space
* docs: updating `leetcode/DIRECTORY.md`
* Update 434.c
---------
Co-authored-by: PalAditya <PalAditya@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Alexander Pantyukhin <apantykhin@gmail.com>
2023-04-27 13:37:59 -06:00
David Leal
d07ab7d0f1
docs: add self-test examples ( #1250 )
...
* docs: add self-test examples
* updating DIRECTORY.md
---------
Co-authored-by: github-actions[bot] <github-actions@users.noreply.github.com>
2023-04-27 10:38:05 -06:00
David Leal
3ba43b75ed
docs: improve contributing guidelines
2023-04-26 11:27:51 -06:00
Niranjan
144442afba
[feat/docs]: improve the Fibonacci algorithm ( #1232 )
...
* Improve the documentation of factorial.c
* Improve the documentation of fibonacci.c
* Update starting terms of fibonacci as 0 and 1
* Update math/fibonacci.c
Co-authored-by: Sharon "Cass" Cassidy <122662061+CascadingCascade@users.noreply.github.com>
* docs: Documenting the code
* test: Add test
* fix: fix the test expression
Co-authored-by: Sharon "Cass" Cassidy <122662061+CascadingCascade@users.noreply.github.com>
* feat: Restrict non-integer inputs
* fix: Change atoi() to sscanf()
* fix: Change atoi() to sscanf()
* fix: scanf() to getInput()
* fix: while, continue and break
Co-authored-by: Sharon "Cass" Cassidy <122662061+CascadingCascade@users.noreply.github.com>
* fix: Increase buffer size
* fix: Doesn't accept lengthy characters
* fix: Accepts empty characters
* fix: fibonacci.c
Co-authored-by: Sharon "Cass" Cassidy <122662061+CascadingCascade@users.noreply.github.com>
* feat: Add wikipedia link
* feat: Add author
Co-authored-by: David Leal <halfpacho@gmail.com>
* feat: Record time duration of function execution
* chore: apply suggestions from code review
Co-authored-by: Sharon "Cass" Cassidy <monadicdiffusive@proton.me>
* chore: apply suggestions from code review
Co-authored-by: Sharon "Cass" Cassidy <monadicdiffusive@proton.me>
---------
Co-authored-by: Sharon "Cass" Cassidy <122662061+CascadingCascade@users.noreply.github.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: Sharon "Cass" Cassidy <monadicdiffusive@proton.me>
2023-04-20 13:59:14 -06:00
dsmurrow
b5b2218e60
feat: added Affine Cipher ( #1245 )
...
* feat: added affine cipher
* chore: applied clang-format
* docs: fixed typo
Co-authored-by: Sharon "Cass" Cassidy <monadicdiffusive@proton.me>
* docs: added brief qualifier
Co-authored-by: Sharon "Cass" Cassidy <monadicdiffusive@proton.me>
* chore: added const qualifier to test_string input
* test: added checks for correct ciphertext
* chore: removed asserts in modular_multiplicative_inverse and defined the ASCII conversion character
* removed previous_remainder variable in modular_multiplicative_inverse()
* chore: added brackets
Co-authored-by: David Leal <halfpacho@gmail.com>
* chore: made test function static
Co-authored-by: David Leal <halfpacho@gmail.com>
* docs: added back quotes to variable `a`
Co-authored-by: David Leal <halfpacho@gmail.com>
* docs: added back quotes to more variables
Co-authored-by: David Leal <halfpacho@gmail.com>
* chore: Added capitalization to string indicating passing tests
Co-authored-by: David Leal <halfpacho@gmail.com>
* chore: apply suggestions from code review
---------
Co-authored-by: Sharon "Cass" Cassidy <monadicdiffusive@proton.me>
Co-authored-by: David Leal <halfpacho@gmail.com>
2023-04-13 15:33:42 -06:00
dsmurrow
0a5f5c61f7
feat: added extended Euclidean algorithm ( #1238 )
...
* 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>
2023-04-13 15:33:10 -06:00
Sharon "Cass" Cassidy
e1fcdd2a04
feat: Add McNaughton–Yamada–Thompson algorithm ( #1241 )
...
* updating DIRECTORY.md
* Create mcnaughton_yamada_thompson.c
* updating DIRECTORY.md
* Update mcnaughton_yamada_thompson.c
* fix some memory leaks
* fix another memory leak
* Update mcnaughton_yamada_thompson.c
* added more test cases
* a few formatting changes
* another few SPaG changes
* Update misc/mcnaughton_yamada_thompson.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* updating DIRECTORY.md
---------
Co-authored-by: github-actions[bot] <github-actions@users.noreply.github.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
2023-04-11 18:57:27 -06:00
Pongsakorn TIPPAYASOMDECH
2698ad2d13
fix: Segmentation fault in merge_sort.c
( #1243 )
...
* fix segmentation fault
* add a comments
* add print error message when can't malloc and exit program
* Update sorting/merge_sort.c
Co-authored-by: Sharon "Cass" Cassidy <monadicdiffusive@proton.me>
* Update sorting/merge_sort.c
Co-authored-by: Sharon "Cass" Cassidy <monadicdiffusive@proton.me>
---------
Co-authored-by: Sharon "Cass" Cassidy <monadicdiffusive@proton.me>
2023-04-08 19:58:03 -06:00
dsmurrow
0c5eccc69e
docs: fixed some documentation errors in BLAKE2b ( #1234 )
...
* 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>
2023-04-07 13:35:40 -06:00
Aybars Nazlica
a537cf3645
feat: add bisection method ( #1233 )
...
* feat: add bisection method
* fix function documentation
* fix float to zero comparison
* fix error definition
* fix the sign function
Co-authored-by: Sharon "Cass" Cassidy <122662061+CascadingCascade@users.noreply.github.com>
* change float type to double type
* fix sign comparison equals to zero
* remove pow function
* Update numerical_methods/bisection_method.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* add parameter docs
* update docs
* Update numerical_methods/bisection_method.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update numerical_methods/bisection_method.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* update docs
---------
Co-authored-by: Sharon "Cass" Cassidy <122662061+CascadingCascade@users.noreply.github.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
2023-04-05 16:02:54 -06:00
David Leal
2115ec87d6
Update copyright notice to 2023
2023-03-31 18:30:43 +00:00
David Leal
ca6ac1fdfc
fix: ignore the LeetCode folder on DIRECTORY.md
( #1240 )
...
* updating DIRECTORY.md
* fix: ignore LeetCode folder while building...
...the `DIRECTORY.md` file.
* updating DIRECTORY.md
* updating DIRECTORY.md
---------
Co-authored-by: github-actions[bot] <github-actions@users.noreply.github.com>
2023-03-31 12:20:44 -06:00
David Leal
f9c89a720d
feat: create a PR when building the LeetCode directory ( #1231 )
...
* 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>
2023-03-31 12:20:16 -06:00
dsmurrow
f3a3e6d476
chore: created new subdirectory for cryptographic ciphers ( #1237 )
...
* chore: moved rot13.c to cipher directory
* chore: added CMakeLists.txt for /cipher
* chore: added /cipher to root CMakeLists.txt
2023-03-29 14:42:08 -06:00
dsmurrow
581dd22ae0
chore: add math
to CMake lists ( #1236 )
2023-03-24 13:27:10 -06:00
Rishav Kumar
9997c8bdf0
fix: memory allocation method ( #1220 )
...
* 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>
2023-03-17 12:01:44 -06:00
dsmurrow
acbaf4a291
feat: implemented BLAKE2b cryptographic hashing algorithm ( #1230 )
...
* 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>
2023-03-13 20:38:42 -06:00
Bao Hexing
62359492bf
fix: addition of two polynomials memory leak and linked list crash ( #1211 )
...
Co-authored-by: David Leal <halfpacho@gmail.com>
2023-03-13 11:44:01 -06:00
Mindaugas
f0b38a3201
feat: remove nth node from end of list LeetCode ( #1222 )
...
* 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>
2023-03-03 09:12:04 -06:00
Sahil Kandhare
f141ae4166
feat: add Circular Doubly Linked List implementation ( #1038 )
...
* Create circular_doubly_linked_list.c
* Update data_structures/linked_list/circular_doubly_linked_list.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update circular_doubly_linked_list.c
Added brief description of library files
* Update data_structures/linked_list/circular_doubly_linked_list.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update data_structures/linked_list/circular_doubly_linked_list.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update circular_doubly_linked_list.c
Done the all suggested changes.
* Update data_structures/linked_list/circular_doubly_linked_list.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update data_structures/linked_list/circular_doubly_linked_list.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update circular_doubly_linked_list.c
* updating DIRECTORY.md
* updating DIRECTORY.md
* updating DIRECTORY.md
* Update data_structures/linked_list/circular_doubly_linked_list.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* There was typo while calling delete_first_node !
* Update data_structures/linked_list/circular_doubly_linked_list.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update data_structures/linked_list/circular_doubly_linked_list.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update data_structures/linked_list/circular_doubly_linked_list.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update data_structures/linked_list/circular_doubly_linked_list.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update data_structures/linked_list/circular_doubly_linked_list.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update data_structures/linked_list/circular_doubly_linked_list.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update data_structures/linked_list/circular_doubly_linked_list.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update data_structures/linked_list/circular_doubly_linked_list.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update data_structures/linked_list/circular_doubly_linked_list.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update data_structures/linked_list/circular_doubly_linked_list.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update data_structures/linked_list/circular_doubly_linked_list.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update data_structures/linked_list/circular_doubly_linked_list.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update data_structures/linked_list/circular_doubly_linked_list.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* updating DIRECTORY.md
* Suggested changes are done.
Done the suggested changes in functions
1. delete_first_node()
2. delete_last_node()
* updating DIRECTORY.md
* updating DIRECTORY.md
* Worked on Suggested Changes
* Suggested changes are done.
* Update circular_doubly_linked_list.c
Worked on all the suggested changes.
Co-Authored-By: David Leal <halfpacho@gmail.com>
Co-Authored-By: CascadingCascade <122662061+CascadingCascade@users.noreply.github.com>
Co-Authored-By: Taj <tjgurwara99@users.noreply.github.com>
* updating DIRECTORY.md
* updating DIRECTORY.md
* Worked on suggested changes for test cases.
Check the code's functionality [here](https://leetcode.com/playground/WcRBMWa8 )
Co-Authored-By: CascadingCascade <122662061+CascadingCascade@users.noreply.github.com>
* updating DIRECTORY.md
* Update data_structures/linked_list/circular_doubly_linked_list.c
Co-authored-by: CascadingCascade <122662061+CascadingCascade@users.noreply.github.com>
* Update circular_doubly_linked_list.c
Update: Worked on suggested changes.
* Update data_structures/linked_list/circular_doubly_linked_list.c
Co-authored-by: CascadingCascade <122662061+CascadingCascade@users.noreply.github.com>
* Update data_structures/linked_list/circular_doubly_linked_list.c
Co-authored-by: CascadingCascade <122662061+CascadingCascade@users.noreply.github.com>
* Update data_structures/linked_list/circular_doubly_linked_list.c
Co-authored-by: CascadingCascade <122662061+CascadingCascade@users.noreply.github.com>
* Worked on suggested changes.
* Minor upgrade.
* updating DIRECTORY.md
---------
Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: github-actions[bot] <github-actions@users.noreply.github.com>
Co-authored-by: CascadingCascade <122662061+CascadingCascade@users.noreply.github.com>
Co-authored-by: Taj <tjgurwara99@users.noreply.github.com>
2023-03-02 17:30:56 -06:00
Alexander Pantyukhin
1cfb88c5eb
docs: update the LeetCode contributing guide ( #1225 )
...
* Update README.md
Remove not actual information regrading the solutions list. Now it's updated automaticaly.
* updating DIRECTORY.md
* Update README.md
add note about automatically updating the `DIRECTORY.md` file
* Update leetcode/README.md
Co-authored-by: David Leal <halfpacho@gmail.com>
* updating DIRECTORY.md
---------
Co-authored-by: github-actions[bot] <github-actions@users.noreply.github.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
2023-02-28 20:28:06 -06:00
Mindaugas
3c8f86e740
feat: add Letter combinations of phone book problem ( #1221 )
...
* 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>
2023-02-28 01:17:31 -06:00
Alexander Pantyukhin
0bc8f7a576
feat: add LeetCode jump game II ( #1213 )
...
* add leetcode Jump Game II
* updating DIRECTORY.md
* Update 45.c
free correct resources
* Update leetcode/src/45.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update leetcode/src/45.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update leetcode/src/45.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update leetcode/src/45.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update leetcode/src/45.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* updating DIRECTORY.md
---------
Co-authored-by: github-actions[bot] <github-actions@users.noreply.github.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
2023-02-28 00:55:09 -06:00
CascadingCascade
59dc816c9d
feat: add Shunting Yard Algorithm ( #1219 )
...
* Create shunting_yard.c
* updating DIRECTORY.md
* Update shunting_yard.c
* Update shunting_yard.c
* Update shunting_yard.c
* updating DIRECTORY.md
* Update shunting_yard.c
* updating DIRECTORY.md
---------
Co-authored-by: github-actions[bot] <github-actions@users.noreply.github.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
2023-02-27 17:05:50 -06:00
Mindaugas
6e94adf066
feat: add Longest Palindrome Substring solution ( #1210 )
...
* 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
2023-02-25 20:35:50 +00:00
Heber Alturria
f6a326b268
feat: add LeetCode problem 540 ( #1217 )
...
* 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
2023-02-23 11:32:04 -06:00
Mindaugas
5d3a841aa6
feat: add solution for the 3Sum Closest problem ( #16 ) ( #1216 )
...
* 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>
2023-02-21 18:55:09 +08:00
CascadingCascade
5bf2c42bff
feat: add Patience Sort algorithm ( #1212 )
...
* updating DIRECTORY.md
* updating DIRECTORY.md
* feat: Add Patience Sort
https://en.wikipedia.org/wiki/Patience_sorting
* updating DIRECTORY.md
* Update sorting/patience_sort.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update sorting/patience_sort.c
Co-authored-by: David Leal <halfpacho@gmail.com>
---------
Co-authored-by: github-actions[bot] <github-actions@users.noreply.github.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
2023-02-20 16:47:26 -06:00
wtz
521db035ca
docs: fix minor typos in data_structures/avl_tree.c
( #1218 )
2023-02-20 16:19:47 -06:00
Alexander Pantyukhin
2d505ccf13
add leetcode Permutation in String ( #1207 )
...
* add leetcode Permutation in String
* updating DIRECTORY.md
* Update leetcode/src/567.c
Co-authored-by: Stepfen Shawn <m18824909883@163.com>
* Update leetcode/src/567.c
Co-authored-by: Stepfen Shawn <m18824909883@163.com>
* Update leetcode/src/567.c
Co-authored-by: Stepfen Shawn <m18824909883@163.com>
* Update leetcode/src/567.c
Co-authored-by: Stepfen Shawn <m18824909883@163.com>
* Update leetcode/src/567.c
Co-authored-by: Stepfen Shawn <m18824909883@163.com>
* Update leetcode/src/567.c
Co-authored-by: Stepfen Shawn <m18824909883@163.com>
* Update leetcode/src/567.c
Co-authored-by: Stepfen Shawn <m18824909883@163.com>
* Update leetcode/src/567.c
Co-authored-by: Stepfen Shawn <m18824909883@163.com>
* Update leetcode/src/567.c
Co-authored-by: Stepfen Shawn <m18824909883@163.com>
* Update leetcode/src/567.c
Co-authored-by: Stepfen Shawn <m18824909883@163.com>
* Update leetcode/src/567.c
Co-authored-by: Stepfen Shawn <m18824909883@163.com>
* Update leetcode/src/567.c
Co-authored-by: Stepfen Shawn <m18824909883@163.com>
* Update 567.c
fix review notes
* Update 567.c
remove redundant line
---------
Co-authored-by: github-actions[bot] <github-actions@users.noreply.github.com>
Co-authored-by: Stepfen Shawn <m18824909883@163.com>
2023-02-06 04:52:24 -06:00
Alexander Pantyukhin
4830210f69
add leetcode Verifying an Alien Dictionary ( #1205 )
...
* 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>
2023-02-04 12:51:01 +00:00
Alexander Pantyukhin
55f73501ea
feat: add Distribute Coins in Binary Tree LeetCode ( #1206 )
...
* add leetcode Distribute Coins in Binary Tree
* updating DIRECTORY.md
* Update 979.c
fix review notes
* Update leetcode/src/979.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update leetcode/src/979.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update leetcode/src/979.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update leetcode/src/979.c
Co-authored-by: David Leal <halfpacho@gmail.com>
---------
Co-authored-by: github-actions[bot] <github-actions@users.noreply.github.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
2023-02-03 18:11:43 -06:00
CascadingCascade
55d8023f06
feat: add matrix chain order ( #1198 )
...
* feat: add Matrix Chain Order
* updating DIRECTORY.md
* Update dynamic_programming/matrix_chain_order.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update dynamic_programming/matrix_chain_order.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update dynamic_programming/matrix_chain_order.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update matrix_chain_order.c
* chore: apply suggestions from code review
* chore: apply suggestions from code review
* updating DIRECTORY.md
* Update dynamic_programming/matrix_chain_order.c
Co-authored-by: Taj <tjgurwara99@users.noreply.github.com>
* updating DIRECTORY.md
* updating DIRECTORY.md
---------
Co-authored-by: github-actions[bot] <github-actions@users.noreply.github.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: Taj <tjgurwara99@users.noreply.github.com>
2023-02-03 12:38:35 -06:00
Alexander Pantyukhin
9fa578d4b5
feat: add N-th Tribonacci number ( #1202 )
...
* add leetcode n-th Tribonacci number
* updating DIRECTORY.md
* updating DIRECTORY.md
---------
Co-authored-by: github-actions[bot] <github-actions@users.noreply.github.com>
2023-02-02 19:58:32 -06:00
Alexander Pantyukhin
e2b8a617d6
feat: add Find the Town Judge LeetCode problem ( #1199 )
...
* add leetcode Find the Town Judge
* updating DIRECTORY.md
* Update leetcode/src/997.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* updating DIRECTORY.md
---------
Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: github-actions[bot] <github-actions@users.noreply.github.com>
2023-01-31 13:26:17 -06:00
Aybars Nazlica
e8d3811f12
feat: add hamming distance ( #1200 )
...
* 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>
2023-01-31 13:24:50 -06:00
Alexander Pantyukhin
5ef38b30f6
fix: indentation for leetcode_directory_md.py
( #1203 )
...
* fix indentation for leetcode_directory_md.py
* small fix
2023-01-31 13:14:36 -06:00
Alexander Pantyukhin
88d29872f9
feat: add LeetCode Pow(x, n) ( #1194 )
...
* add leetcode Pow(x, n)
* Update 50.c
fix comment
* Update 50.c
simplification
* add lower_bound const.
* updating DIRECTORY.md
Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: github-actions[bot] <github-actions@users.noreply.github.com>
2023-01-23 23:06:49 -06:00
Alexander Pantyukhin
90d7d81807
feat: Add LeetCode directory writer ( #1187 )
...
* add leetcode_directory_writer
* updating DIRECTORY.md
* Update leetcode_directory_md.py
add script header
* updating DIRECTORY.md
* updating DIRECTORY.md
* Update .github/workflows/leetcode_directory_writer.yml
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update .github/workflows/leetcode_directory_writer.yml
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update .github/workflows/leetcode_directory_writer.yml
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update .github/workflows/leetcode_directory_writer.yml
Co-authored-by: David Leal <halfpacho@gmail.com>
* Update .github/workflows/leetcode_directory_writer.yml
Co-authored-by: David Leal <halfpacho@gmail.com>
* updating DIRECTORY.md
* Update .github/workflows/leetcode_directory_writer.yml
Co-authored-by: David Leal <halfpacho@gmail.com>
* updating DIRECTORY.md
* Update .github/workflows/leetcode_directory_writer.yml
Co-authored-by: David Leal <halfpacho@gmail.com>
* updating DIRECTORY.md
* updating DIRECTORY.md
* Update .github/workflows/leetcode_directory_writer.yml
Co-authored-by: Taj <tjgurwara99@users.noreply.github.com>
* Update scripts/leetcode_directory_md.py
Co-authored-by: Taj <tjgurwara99@users.noreply.github.com>
* Update scripts/leetcode_directory_md.py
Co-authored-by: Taj <tjgurwara99@users.noreply.github.com>
* Update scripts/leetcode_directory_md.py
Co-authored-by: Taj <tjgurwara99@users.noreply.github.com>
* fix formating
* updating DIRECTORY.md
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
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>
2023-01-23 11:24:50 -06:00
Alexander Pantyukhin
74ef8f5806
feat: add Binary Tree Maximum Path Sum ( #1179 )
...
* 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>
2023-01-21 18:42:07 -06:00
Satvik
5ac30afa86
feat: add LeetCode problem 75 ( #1113 )
...
* added leetcode problem 75
* Update 75.c
resolved issues
* Update 75.c
* updating DIRECTORY.md
* Update 75.c
Removed the header file
* chore: apply suggestions from code review
Co-authored-by: Taj <tjgurwara99@users.noreply.github.com>
* updating DIRECTORY.md
Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: Taj <tjgurwara99@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions@users.noreply.github.com>
2023-01-20 17:50:49 -06:00
Alexander Pantyukhin
a680c83b83
feat: add Maximum Ice Cream Bars ( #1197 )
...
Co-authored-by: David Leal <halfpacho@gmail.com>
2023-01-20 17:49:15 -06:00
Alexander Pantyukhin
17b7131873
add leetcode Maximum Bags With Full Capacity of Rocks ( #1196 )
...
* 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>
2023-01-20 17:48:26 -06:00
Alexander Pantyukhin
b98296e02f
feat: add Determine if Two Strings Are Close ( #1192 )
...
* 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>
2023-01-20 17:46:02 -06:00
Alexander Pantyukhin
73913ac4a8
feat: add Find the Smallest Divisor Given a Threshold ( #1175 )
...
* add leetcode Find the Smallest Divisor Given a Threshold
* Update leetcode/DIRECTORY.md
Co-authored-by: David Leal <halfpacho@gmail.com>
2023-01-20 17:39:35 -06:00
Alexander Pantyukhin
b819ddf3e6
feat: add Frequency of the Most Frequent Element ( #1195 )
...
* 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>
2023-01-20 15:42:23 -06:00
Alexander Pantyukhin
60a0c5947d
feat: add Difference Between Ones and Zeros in Row and Column ( #1183 )
...
* add leetcode Difference Between Ones and Zeros in Row and Column
* Update leetcode/DIRECTORY.md
Co-authored-by: David Leal <halfpacho@gmail.com>
2023-01-19 22:43:10 -06:00