Commit Graph

157 Commits

Author SHA1 Message Date
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
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 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
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
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
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
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 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
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
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
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
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
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
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 b8a8807585
feat: add Minimum Average Difference (#1171)
* add leetcode Minimum Average Difference

* updating DIRECTORY.md

Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: github-actions[bot] <github-actions@users.noreply.github.com>
2022-12-27 11:45:39 -06:00
itskurtz a4e7b7bc4b
feat: add LCS algorithm (#1164)
* feat: add lcs dynamic programming algorithm

* updating DIRECTORY.md

* updating DIRECTORY.md

* fix: fix unused parameters in lcs algorithm

* fix: lcs algorithm typo removed unused parameter in test

* Update dynamic_programming/lcs.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update dynamic_programming/lcs.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update dynamic_programming/lcs.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* fix: comments accoring to guidelines in lcs algorithm

* fix: doxygen standards

* chore: apply suggestions from code review

* updating DIRECTORY.md

Co-authored-by: Scott Evans <scotty@kurtz.waterfall>
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>
2022-12-23 19:46:51 -06:00
Taj cafd06725c
feat: Use the new `filename_formatter` workflow (#1190)
* updating DIRECTORY.md

* using script action for filename formatting

Co-authored-by: github-actions[bot] <github-actions@users.noreply.github.com>
2022-12-21 22:39:23 -06:00
David Leal af0ffcbd42
feat: improve the Awesome Workflow (#1186)
* feat: improve the Awesome Workflow

Co-authored-by: Taj <tjgurwara99@users.noreply.github.com>

* updating DIRECTORY.md

* chore: remove/add a few spaces

Co-authored-by: Taj <tjgurwara99@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions@users.noreply.github.com>
2022-12-17 19:27:04 -06:00
Taj c97a33a6c2
fix: Awesome Workflow issues (#1176)
* Delete codeql_analysis.yml

* fixing workflows
2022-12-16 13:53:06 -06:00
David Leal 2f8fc8ca99
fix: use FreeGlut newest GitHub link (#1159)
* updating DIRECTORY.md

* fix: update FreeGlut link

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2022-11-24 19:43:44 -06:00
Aryan Raj 136dee84e7
feat: add `non_preemptive_priority_scheduling` in Process Scheduling Algorithm (#968)
* Added NonPreemptivePriorityScheduling

* updating DIRECTORY.md

* Added documentation and tests

* Update process_scheduling_algorithms/non_preemptive_priority_scheduling.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update process_scheduling_algorithms/non_preemptive_priority_scheduling.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Left out documentation and suggested changes

* Update process_scheduling_algorithms/non_preemptive_priority_scheduling.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update process_scheduling_algorithms/non_preemptive_priority_scheduling.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update process_scheduling_algorithms/non_preemptive_priority_scheduling.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update process_scheduling_algorithms/non_preemptive_priority_scheduling.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update process_scheduling_algorithms/non_preemptive_priority_scheduling.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* test case added with assert.h

* Update process_scheduling_algorithms/non_preemptive_priority_scheduling.c

Co-authored-by: Taj <tjgurwara99@users.noreply.github.com>

* typedef | Snake Case naming

* chore: apply suggestions from code review

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: Taj <tjgurwara99@users.noreply.github.com>
2022-11-17 12:19:16 -06:00
David Leal 9101ccd27c
docs: add a guide for new LeetCode solutions (#1131)
* docs: add a guide for new LeetCode solutions

* updating DIRECTORY.md

* updating DIRECTORY.md

* updating DIRECTORY.md

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2022-11-09 19:21:17 -06:00
David Leal 8fa62620c2
chore: use the `DIRECTORY.md` workflow from the `scripts` repository (#1096)
* updating DIRECTORY.md

* chore: use the scripts repository for...

...the `DIRECTORY.md` workflow. The code is much shorter now as well.

* updating DIRECTORY.md

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2022-10-24 14:48:49 -05:00
github-actions 45f09db995 updating DIRECTORY.md 2022-10-12 10:48:41 -04:00
GrandSir 6121ab5c20
Create fibonacci_formula.c (#961) 2022-09-30 14:21:43 +05:30
Nikhill Vombatkere d8804a60ab
Remote Command Execution Using UDP Client Server Model (& Merging Branch Locally) (#930)
* TCP Full Duplex Server Client Communication

* Changes made to successfully complete 5th Check

* Update client_server/tcp_full_duplex_server.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* updating DIRECTORY.md

* Update tcp_full_duplex_client.c

* Update client_server/tcp_full_duplex_client.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Fix Typos In Full Duplex TCP & Add Remote Command Execution Using UDP

* updating DIRECTORY.md

* Update settings.json

* Update client_server/remote_command_exec_udp_client.c

Co-authored-by: David Leal <halfpacho@gmail.com>

Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2022-01-11 23:50:57 +05:30
straight-into-the-wall 37534f4d8c
feat: leetcode zigzag solution (#897)
* perf: faster implementation of the TwoSum problem

* doc: fixed typos on comments

* updating DIRECTORY.md

* feat: leetcode ZigZag conversion solution

* doc: leetcode README added ZigZag conversion solution

* fix: clang-tidy linter corrections

* doc: fixed typo on leetcode README

* Update leetcode/src/6.c

@file does not want parameters

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update leetcode/src/6.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* fix: unsigned int and include comments

* fix: comments on includes. Doxygen file. static test function

* fix: add missing headers

* Delete 1.c

* Revert "Merge branch 'master' into leetcode/zigzag"

This reverts commit b46a6afd52.

* fix: revert 1.c

* updating DIRECTORY.md

* Empty commit to test the CI

* Update leetcode/src/6.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update leetcode/src/6.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* fix: missing main

* updating DIRECTORY.md

* doc: added missing comment

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
2021-12-09 11:51:02 -06:00
straight-into-the-wall 779e2f073e
fix: #898 Awesome workflow (1 files are not in one and only one directory) (#900)
* perf: faster implementation of the TwoSum problem

* doc: fixed typos on comments

* updating DIRECTORY.md

* fix: comments on includes. Doxygen file. static test function

* fix: #898 awesome-workflow: 1 files are not in one and only one directory

* fix: revert 1.c changes

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2021-10-25 14:27:09 -05:00
Kumar Yash 88a82991f2
feat: add postfix evaluation algorithm (#890)
* add infix to postfix converter algorithm

* docs: documentation changes

* docs: documentation changes

* updating DIRECTORY.md

* docs: documentation changes

* fix: continuous integration

* [test, docs]: add test case, documentation changes

* docs: documentation changes

* fix: continuous integration

* docs: documentation changes

* docs: documentation changes

* test: add new test

* feat: add postfix evaluation algorithm

* updating DIRECTORY.md

* fix: increase stack size

* fix: change data type

* add: parse feature

* fix: CodeQL

* docs: documentation changes

* remove unnecessary code

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2021-10-25 23:10:53 +05:30
Kumar Yash 654105c8ef
feat: add infix to postfix converter algorithm (#869)
* add infix to postfix converter algorithm

* docs: documentation changes

* docs: documentation changes

* updating DIRECTORY.md

* docs: documentation changes

* fix: continuous integration

* [test, docs]: add test case, documentation changes

* docs: documentation changes

* fix: continuous integration

* docs: documentation changes

* docs: documentation changes

* test: add new test

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
2021-10-16 19:27:11 -05:00
Regan Yue 3cfdbb040d
feat: Add the Sentinel Search algorithm (#883)
* Create sentinel_linear_search.c

This is a search algorithm that uses sentinels.

* Update sentinel_linear_search.c

Added some notes and made some changes

* updating DIRECTORY.md

* Apply suggestions from code review

thx u

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update sentinel_linear_search.c

* Apply suggestions from code review

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
2021-10-15 11:13:10 -05:00
AFK 2fd92f280d
feat: Add `conversion/decimal_to_anybase.c` algorithm (#872)
* added Conversion/decimal_to_anybase.c

* Added Converstions/decimal_to_any_base.c

* Enhencement of decimal_to_any_base.c

* Update conversions/decimal_to_any_base.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update conversions/decimal_to_any_base.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* updating DIRECTORY.md

* Update conversions/decimal_to_any_base.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update conversions/decimal_to_any_base.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* text enhencement and debugging

* comments norming

* builtin int types declacration changed into arch optimized int types

* comments norming

* Adding booleans and int types normalization

* Translation of the program into a function and tests added

* Commentary rewriting in decimal_to_anybase and code beautify

* added 1 comments in main and code beautify

* Commentary norming

* Code norming

* Apply suggestions from code review

Co-authored-by: Votre Nom <Vous@exemple.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2021-10-13 14:30:24 -05:00
Alliswell 97d021424e
feat: add G.711 a-law algorithm (#858)
* feat: add G.711 a-law algorithm

* chore: add CMakeLists.txt for audio/

* updating DIRECTORY.md

* docs: add explanation to G.711 a-law algorithm

* docs: adjust comments to G.711 a-law algorithm

Co-authored-by: David Leal <halfpacho@gmail.com>

* docs: adjust comments to G.711 a-law algorithm

Co-authored-by: David Leal <halfpacho@gmail.com>

* test: add self-test for G.711 a-law algorithm

* fix: initialize variables to zero

* docs: adjust comments to G.711 a-law algorithm

Co-authored-by: David Leal <halfpacho@gmail.com>

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
2021-10-03 23:46:43 +05:30
Nikhill Vombatkere 690d49099d
TCP Full Duplex Server Client Communication (#856)
* TCP Full Duplex Server Client Communication

* Changes made to successfully complete 5th Check

* Update client_server/tcp_full_duplex_server.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* updating DIRECTORY.md

* Update tcp_full_duplex_client.c

* Update client_server/tcp_full_duplex_client.c

Co-authored-by: David Leal <halfpacho@gmail.com>

Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2021-09-22 11:47:40 -05:00
Edwin B. Ajong 16d115d9fb
feat: Odd Even Sorting Algorithm (#855)
* Odd Even Sorting Algorithm

* added Odd Even Sort algorithm

* Odd Even sort algorithm

* Apply suggestions from code review

Co-authored-by: David Leal <halfpacho@gmail.com>

* updating DIRECTORY.md

* Update odd_even_sort.c

* update Odd Even sort

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update sorting/odd_even_sort.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update sorting/odd_even_sort.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update odd_even_sort.c

* Apply suggestions from code review

* Update sorting/odd_even_sort.c

Co-authored-by: ERR ! <75872316+amino19@users.noreply.github.com>

Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: ERR ! <75872316+amino19@users.noreply.github.com>
2021-09-10 16:12:05 -05:00
Nikhill Vombatkere 0bcf7371ca
feat: TCP Client Server Half Duplex Communication (#853)
* TCP Client Server Half Duplex Comm

* reverting .vscode/settings.json in reference to request

* Set gitignore back to original state

* Update .vscode/settings.json

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update client_server/tcp_half_duplex_client.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update client_server/tcp_half_duplex_server.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Making all the requested changes

* Update client_server/tcp_half_duplex_client.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update client_server/tcp_half_duplex_client.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update client_server/tcp_half_duplex_client.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update client_server/tcp_half_duplex_server.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update client_server/tcp_half_duplex_server.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update client_server/tcp_half_duplex_server.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Made Requested Changes - Added Documentation & Comments

* Update client_server/tcp_half_duplex_client.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update client_server/tcp_half_duplex_server.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update client_server/tcp_half_duplex_client.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* updating DIRECTORY.md

* Changes Made & Updated as Requested

* Update client_server/tcp_half_duplex_client.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update client_server/tcp_half_duplex_client.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update client_server/tcp_half_duplex_client.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Updated Documentation Format - Comments made in correct format

* Update client_server/tcp_half_duplex_client.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update client_server/tcp_half_duplex_server.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update client_server/tcp_half_duplex_client.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update client_server/tcp_half_duplex_client.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update client_server/tcp_half_duplex_server.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Comment formatting updated

* Update client_server/tcp_half_duplex_client.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update client_server/tcp_half_duplex_server.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update client_server/tcp_half_duplex_server.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Updated Data Type - uint32_t for socket descriptors

Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2021-09-07 21:24:20 +05:30
Randy Kwalar 1b30b89083
feat: Added a program that prints words in alphabetical order using binary tree data structure (#841)
* frequencies of words started

* A program to Print words contained in a file in alphabetical order

* Apply suggestions from code review

Co-authored-by: David Leal <halfpacho@gmail.com>

* appropriate comments added as suggested from code review

* comments cleaned up

* updating DIRECTORY.md

* Apply suggestions from code review

Co-authored-by: David Leal <halfpacho@gmail.com>

* commenting re-worded

* Add link to algorithm

* Update data_structures/binary_trees/words_alphabetical.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update data_structures/binary_trees/words_alphabetical.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* main function moved to the bottom and function prototypes deleted

* uint64_t data type used for non negative values

* uint8_t used

* all int types fixed

* detailed explanation of algorithm added

* Update data_structures/binary_trees/words_alphabetical.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update data_structures/binary_trees/words_alphabetical.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update data_structures/binary_trees/words_alphabetical.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* tests and documentation added

* Update data_structures/binary_trees/words_alphabetical.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update data_structures/binary_trees/words_alphabetical.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update data_structures/binary_trees/words_alphabetical.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update data_structures/binary_trees/words_alphabetical.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update data_structures/binary_trees/words_alphabetical.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update data_structures/binary_trees/words_alphabetical.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update data_structures/binary_trees/words_alphabetical.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update data_structures/binary_trees/words_alphabetical.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update data_structures/binary_trees/words_alphabetical.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update data_structures/binary_trees/words_alphabetical.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update data_structures/binary_trees/words_alphabetical.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update data_structures/binary_trees/words_alphabetical.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update data_structures/binary_trees/words_alphabetical.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* documentation added

* Update data_structures/binary_trees/words_alphabetical.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update data_structures/binary_trees/words_alphabetical.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update data_structures/binary_trees/words_alphabetical.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update data_structures/binary_trees/words_alphabetical.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update data_structures/binary_trees/words_alphabetical.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update data_structures/binary_trees/words_alphabetical.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update data_structures/binary_trees/words_alphabetical.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update data_structures/binary_trees/words_alphabetical.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update data_structures/binary_trees/words_alphabetical.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update data_structures/binary_trees/words_alphabetical.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update data_structures/binary_trees/words_alphabetical.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update data_structures/binary_trees/words_alphabetical.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Apply suggestions from code review

Co-authored-by: David Leal <halfpacho@gmail.com>

* documentation added

* Apply suggestions from code review

Co-authored-by: David Leal <halfpacho@gmail.com>

* Add documentation

Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2021-07-30 16:17:09 +05:30
Swastika Gupta 580bd405ea
feat: Add floyd cycle-detection-algorithm to find duplicate number (#844)
* floyd algorithm application

* Update searching/floyd_cycle_detection_algorithm.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* updating DIRECTORY.md

* Update searching/floyd_cycle_detection_algorithm.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update searching/floyd_cycle_detection_algorithm.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update searching/floyd_cycle_detection_algorithm.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* minor correction

* Update searching/floyd_cycle_detection_algorithm.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update searching/floyd_cycle_detection_algorithm.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update searching/floyd_cycle_detection_algorithm.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update searching/floyd_cycle_detection_algorithm.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update searching/floyd_cycle_detection_algorithm.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update searching/floyd_cycle_detection_algorithm.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update floyd_cycle_detection_algorithm.c

* Update searching/floyd_cycle_detection_algorithm.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update searching/floyd_cycle_detection_algorithm.c

Co-authored-by: Abhinn Mishra <49574460+mishraabhinn@users.noreply.github.com>

Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: Abhinn Mishra <49574460+mishraabhinn@users.noreply.github.com>
2021-07-29 12:40:05 -05:00
Jaskarn Singh a7d613c95d
feat: printf statement written in c (as minprintf) without using stdio.h li… (#820)
* printf statement written in c (as minprintf) without using stdio.h library.

* Added proper documentation in minprintf.h

* Modified and more Documented code.

* Requested changes commited

* Referance links added

* updating DIRECTORY.md

* Renamed the file

* updating DIRECTORY.md

* Test file added

* updating DIRECTORY.md

* Requested changes commited

* Requested changes commited

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2021-04-03 12:03:22 +05:30
Tim Maloney c6a3279b9b
feat: Prims algorithm (#815)
* Added prim.c

* Updated formatting in prim.c

* Docs: updated prim.c documentation

* feat: Included testing in prim.c

* feat: eliminated globals & changed variable types

* Docs: added documentation for minimum function

* updating DIRECTORY.md

* Updated documentation

* Docs: Changed function docs & made test function static

* Docs: made further requested changes

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2021-03-31 14:06:12 +05:30
Alessio Farinelli 4b65a6b6b1
feat: Exponential Search (#818)
* feat(ExponentialSearch): added C implementation of Exponential Search

* fix: typo

* refactor(ExponentialSearch): removed unused imports

* fix(Exponential Search): review fixes

* updating DIRECTORY.md

* refactor(ExponentialSearch): refactoring types

* fix(ExponentialSearch): fixes and added brief

* refactor(ExponentialSearch): added briefs

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2021-03-25 23:58:07 +05:30
DhruvPasricha e0c6f6e403
feat: created heap_sort_2.c (#809)
* feat: created heap_sort_2.c

* Update sorting/heap_sort_2.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update sorting/heap_sort_2.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update sorting/heap_sort_2.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update sorting/heap_sort_2.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update sorting/heap_sort_2.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update sorting/heap_sort_2.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* updating DIRECTORY.md

* added deatiled description of the algorithm

* Update sorting/heap_sort_2.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update sorting/heap_sort_2.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Apply suggestions from code review

* Apply suggestions from code review

Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2021-03-12 10:53:06 +05:30
github-actions 14553af668 updating DIRECTORY.md 2021-02-24 19:07:53 +00:00
Ayaan Khan 8e03e35c80
Merge pull request #797 from CarlosZoft/master
feat: added naval_battle, to games.
2021-02-19 11:45:06 +05:30
github-actions 1028b7b9aa updating DIRECTORY.md 2021-02-17 22:39:14 +00:00
github-actions 397872ba96 updating DIRECTORY.md 2021-02-15 06:47:11 +00:00
Ayaan Khan e81bc16832
Merge pull request #611 from harshcut/infix_to_postfix
feat: add infix_to_postfix.c
2021-02-11 10:42:57 +05:30
Ayaan Khan 1fb7bf023d
Merge pull request #677 from rachitbhalla/master
Implemented octal to hexadecimal conversion
2021-02-11 10:27:06 +05:30