Commit Graph

149 Commits

Author SHA1 Message Date
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
webdesignbydivyansh
b2def5ca0e
feat: created prime_seive.c (#708)
* created prime_seive.c

This function counts the number of prime numbers in O(nlogn) time.

* Apply suggestions from code review

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

* updating DIRECTORY.md

* updated prime_seive.c

* Update misc/prime_seive.c

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

* added more changes

please take a look at it

* changed 1000000 to MAX_SIZE

* updated line 10

* changed the code back to original

* eliminated the problem of MAX_SIZE

* added for loop to initialise all elements to 0

* made the changes

* changed the code back to original

i have changed my code back to original as some tests were failing

* removed extra spaces & edited some lines

* added new global variable

* added extra space

* added parameter & return statement

Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2020-11-26 06:34:21 -05:00
meenal2000
aef9d8d53f
fix: file names modified for better readability (#770)
* file names modified

* files name modified

* file names modified

* updating DIRECTORY.md

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2020-11-03 18:46:26 -06:00
github-actions
fc3bc8bb75 updating DIRECTORY.md 2020-10-21 11:42:11 +00:00
Harsh Karande
99076a25e6
Merge branch 'master' into infix_to_postfix 2020-10-21 17:11:03 +05:30
Chayoung You
b8da721481
feat: Add another hexadecimal to octal conversion (#658)
* Add another hexadecimal to octal conversion

* Apply suggestions

Also changed the return type of `hex_to_oct` to `const char *`, as it
returns an address of static variable.

* Update comment of hexadecimal_to_octal2.c

* updating DIRECTORY.md

* Apply suggestions

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2020-10-20 21:00:03 -05:00
Gabriel Mota Bromonschenkel Lima
778f317e82
Rename redblacktree.c to red_black_tree.c (#684)
* Rename redblacktree.c to red_black_tree.c

* updating DIRECTORY.md

* add renaming avl.c and ascendingpriorityqueue.c

* updating DIRECTORY.md

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2020-10-20 12:51:47 -04:00
Gabriel Mota Bromonschenkel Lima
74e81de85a
Doubly linked list, simple code. (#673)
* Doubly linked list, simple code.

#633

* organizing code a bit more

* add link in DIRECTORY.md and more comments/cleaning.

* remove global variables and redundancy.

* add Wikipedia reference

* add documentation comments in all functions/headers

* add update in file brief

Co-authored-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>

* remove part of file @details

Co-authored-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>
2020-10-20 12:50:48 -04:00
github-actions
d6abe9fbbf updating DIRECTORY.md 2020-10-19 22:31:51 +00:00