Commit Graph

1536 Commits

Author SHA1 Message Date
David Leal e5dad3fa8d
feat: use directory workflow from the `scripts` repository (#1278)
* feat: use directory workflow from the...

...`scripts` repository.

* fix: `on` event

* chore: run directory workflow daily
2023-09-27 12:35:39 -06:00
David Leal db3d6e2886
feat: add Windows CI back (#1290)
Signed-off-by: realstealthninja <realstealthninja@gmail.com>
Co-authored-by: github-actions[bot] <github-actions@users.noreply.github.com>
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com>
2023-09-08 15:38:14 -06:00
Ryan Bevin 1302bf41df
fix: add missing `include` in CMakeLists #942 (#1285)
* fix: missing include file for cmake function

* fix: using newer version of check include file

---------

Co-authored-by: rbevin777 <rbevin7@gmail.com>
2023-07-19 01:34:19 -06:00
David Leal 518a7cafd5
chore: add the linter to a separate Python script (#1272)
* updating DIRECTORY.md

* chore: add the linter to a separate Python script

---------

Co-authored-by: github-actions[bot] <github-actions@users.noreply.github.com>
2023-07-18 21:00:14 -06:00
Ryan Bevin 1bbbac6546
chore: update CMake version #1271 (#1284)
* 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>
2023-07-18 20:53:50 -06:00
David Leal 77522fdbc1
fix: LeetCode directory writer (#1281) 2023-07-18 20:41:49 -06:00
David Leal 1a5b31d3d1
docs: update workflow versions in `README.md` (#1273)
* 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>
2023-07-18 20:39:51 -06:00
David Leal f241de90e1
chore: add codeowners (#1264) 2023-07-02 19:41:54 -06:00
hemanth8819 db69d0a539
feat: add LeetCode problem 69 (#1259)
* 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
2023-06-27 13:49:43 -06:00
David Leal f4ee5743af
fix: use correct branch name 2023-06-23 12:04:53 -06:00
Ethan Fredsti 8a1a4972a5
fix: change list length in `data_structures/list/list.c` (#1265)
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.
2023-06-20 15:07:09 -06:00
David Leal 8a3ff966e7
chore: run LeetCode directory writer on `main` only 2023-06-14 10:18:38 -06:00
David Leal b6b01a3605
feat: add `dynamic_programming` to CMake lists (#1266)
* feat: add `dynamic_programming` to CMake lists

* updating DIRECTORY.md

* chore: fix minor doc. issues and indentation

---------

Co-authored-by: github-actions[bot] <github-actions@users.noreply.github.com>
2023-06-13 10:45:46 -06:00
David Leal 2e8374e5c1
chore: improve the LeetCode directory writer (#1276)
* chore: free-dependency LeetCode directory writer

* updating DIRECTORY.md

---------

Co-authored-by: github-actions[bot] <github-actions@users.noreply.github.com>
2023-06-13 10:13:34 -06:00
David Leal b1a8da69a8
fix: missing `;` in `matrix_chain_order.c` 2023-06-09 10:51:37 -06:00
Sahil Kandhare e278f5d74f
feat: add Dynamic Stack implementation (#1261)
* 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>
2023-06-08 08:56:26 -06:00
David Leal 01bc982b9a
feat: label when the build fails (#1254)
* feat: label when the build fails

* updating DIRECTORY.md

---------

Co-authored-by: Taj <tjgurwara99@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions@users.noreply.github.com>
2023-06-07 21:55:20 -06:00
Samuel Pires 05ff277ebf
feat: add Secant Method (#1255)
* feat: add secant method

* Apply suggestions from code review

Co-authored-by: Sharon "Cass" Cassidy <monadicdiffusive@proton.me>

* fixed indentation

* added more tests

* better clarification for the tolerance parameter

* removed redundant comments

* chore: apply suggestions from code review

---------

Co-authored-by: Sharon "Cass" Cassidy <monadicdiffusive@proton.me>
Co-authored-by: scpires <sc.pires@campus.fct.unl.pt>
Co-authored-by: David Leal <halfpacho@gmail.com>
2023-06-02 10:43:21 -06:00
David Leal d222df7dc1
[feat/docs]: improve the binary to decimal algorithm (#1263) 2023-05-30 10:30:13 -06:00
Indrranil Pawar 6915d59738
feat: improve `conversions/binary_to_decimal.c` (#1262)
* 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
2023-05-29 09:09:21 -06:00
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