Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/TheAlgorithms/C

Collection of various algorithms in mathematics, machine learning, computer science, physics, etc implemented in C for educational purposes.
https://github.com/TheAlgorithms/C

chore: use `actions/checkout@v3`

b85a6220a90297b60196d1b934300e354d766c94 authored about 2 years ago by David Leal <[email protected]>
fix: Awesome Workflow issues (#1176)

* Delete codeql_analysis.yml

* fixing workflows

c97a33a6c2b05f34a4245a025457177803fbddcb authored about 2 years ago by Taj <[email protected]>
feat: add Maximum Erasure Value LeetCode problem (#1137)

* add leetcode Maximum Erasure Value

* Update 1695.c

add new line at the end

* Rename R...

2ee92040f33dc1ba24e04df955136852ca1fd395 authored about 2 years ago by Alexander Pantyukhin <[email protected]>
feat: add Trim a Binary Search Tree LeetCode problem (#1156)

b37bf7f6b996d54baf00c4a37a68e29cee7f1021 authored about 2 years ago by Alexander Pantyukhin <[email protected]>
feat: add Minimum Number of Operations to... (#1146)

...Move All Balls to Each Box LeetCode problem.

* add Minimum Number of Operations to Move Al...

794ec129aec8cf4e904041c88ef1d1d40d194958 authored about 2 years ago by Alexander Pantyukhin <[email protected]>
feat: add Celsius to Fahrenheit conversion (#1129)

* feat: added celcius_to_fahrenheit.c

* docs: added comment to 1st test

* updating DIRECTO...

0f5f241a1d0a586cc7eb634c05f9320d793d1ad2 authored about 2 years ago by Focus <[email protected]>
feat: add Maximize the Confusion LeetCode problem (#1150)

* add Maximize the Confusion of an Exam leetcode

* Update leetcode/src/2024.c

Co-authored-...

bb11a352271401bb46281d109759202520ff9e31 authored about 2 years ago by Alexander Pantyukhin <[email protected]>
feat: conversion from roman to decimal numbers (#1104)

* feat: added roman_numerals_to_decimal.c

* added newline at end of file

* updating DIRECT...

6b2697e244f71897fbac10efacd79d2b0d712c53 authored about 2 years ago by Focus <[email protected]>
feat: add Validate Binary Search Tree (#1153)

* add Validate Binary Search Tree

* improve condition

435b4994ce70e3e663916caa6478375a7fbec83c authored about 2 years ago by Alexander Pantyukhin <[email protected]>
feat: add Minimum Deletions LeetCode problem (#1138)

* add Minimum Deletions to Make String Balanced

* Update 1653.c

add new line at the end

...

defd82dda17d706db5409359aee23a5ec35acd42 authored about 2 years ago by Alexander Pantyukhin <[email protected]>
feat: add Online Stock Span (#1142)

* add Online Stock Span

* free obj

* Update leetcode/src/901.c

Co-authored-by: David Le...

8d28f1d36fdbf308d742525f80f9a6e24803668c authored about 2 years ago by Alexander Pantyukhin <[email protected]>
feat: add Sum of Even Numbers LeetCode problem (#1145)

* add Sum of Even Numbers After Queries leetcode task

* chore: apply suggestions from code re...

077517d6ae840b0c5df62153b8861bd0f14c2afc authored about 2 years ago by Alexander Pantyukhin <[email protected]>
feat: add Minimum Path Cost LeetCode problem (#1144)

99f06e97e761b9048951e5cc7c5970e2fbf83c81 authored about 2 years ago by Alexander Pantyukhin <[email protected]>
feat: add trapping rain water (#1132)

* add trapping rain water.

* add short description of algorithm

* substitute min/max with ...

7aba094afb43e8f2961174914c854d40bb04c792 authored about 2 years ago by Alexander Pantyukhin <[email protected]>
fix: use FreeGlut newest GitHub link (#1159)

* updating DIRECTORY.md

* fix: update FreeGlut link

Co-authored-by: github-actions <${GITH...

2f8fc8ca9912065eb06c26c13f7a5aa2f2542dfb authored about 2 years ago by David Leal <[email protected]>
chore(fix): specify the player's turn in `naval_battle.c` (#1158)

9a3d934705a75a75e025f02bc646017b630e4dc5 authored about 2 years ago by Yaduttam Pareek <[email protected]>
feat: add Rectangle Area LeetCode problem (#1147)

a2b1983e57da3c4068cd60e4d4c76bf02b7f325c authored about 2 years ago by Alexander Pantyukhin <[email protected]>
feat: improve the Power of Two LeetCode problem (#1148)

0bcabd6897dd3e105b8359d62b22b8537c3594f8 authored about 2 years ago by Alexander Pantyukhin <[email protected]>
feat: add Number of Sub-arrays With Odd Sum (#1139)

* add Number of Sub-arrays With Odd Sum

* Update 1524.c

add new line at the end

* Renam...

ea775e7a045e8ce18702b5eca4439d1b3d811da5 authored about 2 years ago by Alexander Pantyukhin <[email protected]>
feat: add Check if Array Is Sorted and Rotated (#1141)

* add Check if Array Is Sorted and Rotated

* Update 1752.c

add new line

* Rename README...

dee9ac73cd857ae7b0412b801d58502c9010379b authored about 2 years ago by Alexander Pantyukhin <[email protected]>
fix: LeetCode guide link

ace1c695090b127032ec5f5ba6a1ee71dcdc5dd7 authored about 2 years ago by David Leal <[email protected]>
feat: add `non_preemptive_priority_scheduling` in Process Scheduling Algorithm (#968)

* Added NonPreemptivePriorityScheduling

* updating DIRECTORY.md

* Added documentation and ...

136dee84e7705ffd6b15de322a7f8c68088e5d77 authored about 2 years ago by Aryan Raj <[email protected]>
feat: add compliment of 10 integer (#1136)

* add complinent of 10 integer

* Update 1009.c

add new line at the end

* Rename README...

856168384d4c802eb531683829606db25925b6dc authored about 2 years ago by Alexander Pantyukhin <[email protected]>
chore: add Rot13 Cipher (#1008)

* Add ROT13 cipher.

* updating DIRECTORY.md

* Fix suggestions.

* Suggestions.

Co-aut...

0e956c6e583ecf600603caacfee36f7763f6eeb1 authored about 2 years ago by Jeremias Moreira Gomes <[email protected]>
chore: remove redundant `\`

21bd88215c192c4f31d108bf33fc4d1b224edadc authored about 2 years ago by David Leal <[email protected]>
chore: fix `tic_tac_toe.c` CodeQL warning (#1133)

e<=8 is not needed as remainder is always less than remainder so e<9(e>=8) is obvious in every case

741d3f95b3d4005c83d9f56fb48ac56db4b86b72 authored about 2 years ago by ms3939 <[email protected]>
chore: add Max Consecutive Ones in LeetCode folder (#982)

* Create 14.c

* Update README.md

* Update leetcode/src/14.c

Co-authored-by: David Leal ...

55b2045b19e5b07393c3e368df2703c923f010be authored about 2 years ago by devarshitrivedi01 <[email protected]>
chore: add display() and improve code formatting (#975)

added display to view entire stack using for loop and formatted code.

00500d610890a6088a04d004f5586cd878914dde authored about 2 years ago by Anas Khan <[email protected]>
fix: remove double/unintended `free` (#1143)

The call to realloc() already frees the previously allocated memory if necessary.
By the man pa...

1b3a1ca91ee4696f8d51f8cd5ffc223eee37cf5d authored about 2 years ago by Enzo Veroneze <[email protected]>
feat: add LeetCode problem 10 (#1033)

* updated readme

* Create 10.c

* Update README.md

* added documentation

* chore: app...

68bdbfb0a58560041f2fd7313b87ccf5ebd28777 authored about 2 years ago by Yashvardhan Singh <[email protected]>
docs: add a guide for new LeetCode solutions (#1131)

* docs: add a guide for new LeetCode solutions

* updating DIRECTORY.md

* updating DIRECTOR...

9101ccd27c62a17a4cad0b72bbff7441d60b12f1 authored about 2 years ago by David Leal <[email protected]>
fix: add solution link to LeetCode problem 62 (#1128)

0d5abe0a77a02a47df710300a4a47a586fd085a3 authored about 2 years ago by mr-shivamgarg <[email protected]>
feat: add a vector implementation in data structures (#977)

* added a vector implementation in data structures

* changed a comment

* made the required...

154bcdb935c83a9eb168f0b21dfc8c9c1eaa390b authored about 2 years ago by Shreyas Sable <[email protected]>
chore: add LeetCode problem 485 (#981)

* Create 485.c

added "485. Max Consecutive Ones" solution

* Update README.md

Co-authore...

25f3b63d5bdd5b47810b61369bb657a1cd89fb8b authored about 2 years ago by Aniket Dubey <[email protected]>
feat: leetcode Construct Binary Search Tree from Preorder Traversal solution (1008) (#1021)

Co-authored-by: David Leal <[email protected]>

a0f658311decf7b6e6e9acbcae0677a202a25493 authored about 2 years ago by Sindhu Inti <[email protected]>
feat: LeetCode Next Greater Node In Linked List solution (1019) (#1022)

Co-authored-by: David Leal <[email protected]>

9ab1bc981bf3cc34cbc7bcdd4a21fe0f95c13986 authored about 2 years ago by Sindhu Inti <[email protected]>
feat: add LeetCode problem 62 (#1062)

Co-authored-by: Utsav Khemka <[email protected]>
Co-authored-by: David Leal <halfpacho@...

27145d7ce4a87dc4585a056acaec185c634b2033 authored about 2 years ago by utsavkhemka21 <[email protected]>
feat: add Leetcode problem 119 (#997)

* added 119

* added 119.c

Co-authored-by: David Leal <[email protected]>

0cd4f6b691cae0706771a1e9fb68768a2bd59132 authored about 2 years ago by Adhiraj <[email protected]>
chore: use the `DIRECTORY.md` workflow from the `scripts` repository (#1096)

* updating DIRECTORY.md

* chore: use the scripts repository for...

...the `DIRECTORY.md` w...

8fa62620c2106b96973384ad225c2f3de50192a3 authored about 2 years ago by David Leal <[email protected]>
Add Leet Code Solution of 62 No Ques (#1061)

Co-authored-by: Utsav Khemka <[email protected]>

1a6ed6bf1c503d5604f6e477f9ea80ebedee047e authored about 2 years ago by utsavkhemka21 <[email protected]>
chore: update to match new Discord links (#1065)

9502fd54ef4a2c540a035260ed70b5da57135cf6 authored about 2 years ago by zafar hussain <[email protected]>
Add run length encoding

f8e43ac88f90f1b011b3ec3c15d3af0c5a20325e authored about 2 years ago by serturx <[email protected]>
Add include descriptions

bd1b0ebcb9ee5fa4f75303f19e6aafda2cb7d6db authored about 2 years ago by serturx <[email protected]>
updating DIRECTORY.md

45f09db995676b3fd77c1b776f28464f8ef23004 authored about 2 years ago by github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Add algoritm description

35f6431f4790c4478e7ea2439f32938fee507b09 authored about 2 years ago by serturx <[email protected]>
Apply suggestions from code review

Co-authored-by: David Leal <[email protected]>

8241a58d42afaad3f326b0c14e651aeb83864d60 authored about 2 years ago by serturx <[email protected]>
Apply suggestions from code review

Co-authored-by: David Leal <[email protected]>

597dc1972b6e8562dbb01e9caf1162de89f89964 authored about 2 years ago by serturx <[email protected]>
fix comment

7a997f2755f005a3f84b1cdf04ede6906d4e1ca0 authored about 2 years ago by serturx <[email protected]>
feat: leetcode Maximum Twin Sum of a Linked List solution (2130) (#988)

a8b42d0bb8f6a96af412d0bb3735ff6b15e92477 authored about 2 years ago by Sindhu Inti <[email protected]>
feat: add LeetCode problem 118 (#996)

* added 118 to list

* added 118.c

82ca460a9cc6c450e2cbdbfbef07d2d609d4ab96 authored about 2 years ago by Adhiraj <[email protected]>
docs: improve the contributing guidelines (#966)

* docs: improve the contributing guidelines

* updating DIRECTORY.md

Co-authored-by: github...

52d3b3ee4da8cedaa87f8e45083d995ad8a8aa81 authored about 2 years ago by David Leal <[email protected]>
Create fibonacci_formula.c (#961)

6121ab5c20204cbbf14ee2b5d129b239168b0a3b authored about 2 years ago by GrandSir <[email protected]>
Return success status (#957)

7e6276b730679b7e8c89d2d748b1ebce7e4a21b5 authored about 2 years ago by flyinghu <[email protected]>
chore: fix various spelling typos (#945)

889931acc887f0b06e817dbe51743bee9c3167bb authored about 2 years ago by Shuangchi He <[email protected]>
chore: update copyright notices to 2022

b0a41bb38c67ddebb31d3fe06d11e171410c3379 authored over 2 years ago by David Leal <[email protected]>
chore: fix typo in filename (#947)

dad3a52b56a2c3c1cfaf68a6e3cb0787d3610ee6 authored over 2 years ago by Rak Laptudirm <[email protected]>
feat: Rewrite the trie example (#927)

The trie example had some issues;

* It did not follow the code convention in CONTRIBUTING.md
...

2314a195862243e09c485a66194866517a6f8c31 authored almost 3 years ago by Daniel Beecham <[email protected]>
fix: update value at index and return `SUCCESS` (#932) (#933)

d017c3ef77548a74c221cd109f9662a0282d4b23 authored almost 3 years ago by Yannick Brenning <[email protected]>
fix: fixed index of parent in sorting/heap_sort_2.c (#914)

* fixed index of parent

* fixed spacing to pass autochecks

* Empty commit to test the CI
...

f851fbbe2f3bd018fd26a4307634a42e816884ec authored almost 3 years ago by Dhruv Pasricha <[email protected]>
Remote Command Execution Using UDP Client Server Model (& Merging Branch Locally) (#930)

* TCP Full Duplex Server Client Communication

* Changes made to successfully complete 5th Che...

d8804a60ab5afc4016753678d3407de84850161e authored almost 3 years ago by Nikhill Vombatkere <[email protected]>
Update dijkstra.c (#928)

in this way valgrind checks will pass and result will stay the same (functions as a static varia...

0ceb3b340e93d4db11b2107e1264583884aec23f authored almost 3 years ago by Idan BananI <[email protected]>
fix: typo in comments of leetcode-3 (#931)

Co-authored-by: David Leal <[email protected]>

bd06a9f4242fbb798aa32e30832aa977223168c2 authored almost 3 years ago by Liu Yihua <[email protected]>
fix: free the allocated resources in quick sort (#923)

ef9878627d49e770c2fa7bef7a4910689387fa94 authored almost 3 years ago by KuhakuPixel <[email protected]>
feat: leetcode zigzag solution (#897)

* perf: faster implementation of the TwoSum problem

* doc: fixed typos on comments

* updat...

37534f4d8c89127e8d98e4bac84b090ac1af4ed4 authored about 3 years ago by straight-into-the-wall <[email protected]>
fix: Discord logo's color

1370c44aee03fcfdf951938e824d8d9eb8ead3b8 authored about 3 years ago by David Leal <[email protected]>
fix: merge sort bug (#921)

Merge sort does not work properly. To reproduce the bug input 6, 5, 4, 3, 2, 1 the output would ...

934f55f17905596c3b11bcc71c94afa97d89a196 authored about 3 years ago by Navid Salehi <[email protected]>
docs: remove redundant space before comma (#920)

Co-authored-by: David Leal <[email protected]>

c8eec2fb57bdeb492153c731a6fa87074c2281a8 authored about 3 years ago by Navid Salehi <[email protected]>
Update .gitpod.yml

be9daa2b6099cf4600d94d489755bbf3c279299e authored about 3 years ago by David Leal <[email protected]>
feat: Add contact links in the issue template configuration

2fba8889a09129d450b458e49808c530860ec75f authored about 3 years ago by David Leal <[email protected]>
fix: Hotfix/awesome zero files (#919)

* perf: faster implementation of the TwoSum problem

* doc: fixed typos on comments

* updat...

5cca0ebd4836210bd76e6757cff53be82a75ff23 authored about 3 years ago by straight-into-the-wall <[email protected]>
fix: Update Gitpod extensions (#917)

7a324e2c75a2b6d8eda421e191a5460a6b5d7b03 authored about 3 years ago by David Leal <[email protected]>
gitpod: don't lock extensions' version (#915)

Co-authored-by: David Leal <[email protected]>

624f9a3336ec8685d78d3acf881653196d29a563 authored about 3 years ago by 谭九鼎 <[email protected]>
fix: Update the CoC to match the `.github` repository (#913)

eec47fe3d47cf85940c619c45bd3bb97f3be4d21 authored about 3 years ago by David Leal <[email protected]>
Revert "fix: #898 another fix for Awesome workflow nodir_files problem (#901)" (#907)

This reverts commit b8e3c3833bf4e3dd8a5cd468612f89f42ce8ad07.

235f0a9eebb9b24b9aa78ef479f07f6482f7afea authored about 3 years ago by David Leal <[email protected]>
fix: #898 another fix for Awesome workflow nodir_files problem (#901)

* perf: faster implementation of the TwoSum problem

* doc: fixed typos on comments

* updat...

b8e3c3833bf4e3dd8a5cd468612f89f42ce8ad07 authored about 3 years ago by straight-into-the-wall <[email protected]>
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

* updat...

779e2f073e30694c6448e8f988e54e3ae007caf4 authored about 3 years ago by straight-into-the-wall <[email protected]>
feat: add postfix evaluation algorithm (#890)

* add infix to postfix converter algorithm

* docs: documentation changes

* docs: documenta...

88a82991f22ed2276a9fbb2e54c78b15cb5e0627 authored about 3 years ago by Kumar Yash <[email protected]>
Sentinel search: Remove bounds check (fixes #887) (#888)

... which is the entire point of sentinel search

ce3f01f54cef3ebcbde78a9a1c090c2ce0397eaa authored about 3 years ago by Lars Müller <[email protected]>
feat: add infix to postfix converter algorithm (#869)

* add infix to postfix converter algorithm

* docs: documentation changes

* docs: documenta...

654105c8efd63d89930e95bd391f64d4072acfdf authored about 3 years ago by Kumar Yash <[email protected]>
feat: Moving queue file to it's directory and creating include file for it (#874)

* Putting queue in correct dir and creating include file for it

* Update data_structures/queu...

9bbec45d13db93014c8dec9386b91a65296dab91 authored about 3 years ago by Lorenzo Battistela <[email protected]>
feat: Add the Sentinel Search algorithm (#883)

* Create sentinel_linear_search.c

This is a search algorithm that uses sentinels.

* Update...

3cfdbb040db7e905b7074340196ddd23ee64fae6 authored about 3 years ago by Regan Yue <[email protected]>
test: removed commented code (#885)

c56b967161fb2f99958e9d55efcb1fb869a5bbd9 authored about 3 years ago by Erik Pellizzon <[email protected]>
feat: Add `conversion/decimal_to_anybase.c` algorithm (#872)

* added Conversion/decimal_to_anybase.c

* Added Converstions/decimal_to_any_base.c

* Enhen...

2fd92f280df5341249d2ba6e7cf5dcffc2f26fff authored about 3 years ago by AFK <[email protected]>
feat: Add stale workflow (#860)

* Add stale workflow

* Update .github/workflows/stale.yml

Co-authored-by: David Leal <half...

9d9bac2e9a1cd34aa3b77883d0cb2563cf5d2c8d authored about 3 years ago by Andrii Siriak <[email protected]>
feat: add G.711 a-law algorithm (#858)

* feat: add G.711 a-law algorithm

* chore: add CMakeLists.txt for audio/

* updating DIRECT...

97d021424e89353677964a4aab71cbf46368ac4a authored about 3 years ago by Alliswell <[email protected]>
TCP Full Duplex Server Client Communication (#856)

* TCP Full Duplex Server Client Communication

* Changes made to successfully complete 5th Che...

690d49099dc716a0aa08be428ea3c25d377a0c0b authored about 3 years ago by Nikhill Vombatkere <[email protected]>
feat: Odd Even Sorting Algorithm (#855)

* Odd Even Sorting Algorithm

* added Odd Even Sort algorithm

* Odd Even sort algorithm

...

16d115d9fb0a2c75825e541828002487228279aa authored over 3 years ago by Edwin B. Ajong <[email protected]>
feat: TCP Client Server Half Duplex Communication (#853)

* TCP Client Server Half Duplex Comm

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

0bcf7371ca98cd824d76e62134e8be8e3afdc94e authored over 3 years ago by Nikhill Vombatkere <[email protected]>
feat: Add endlines in `machine_learning/adaline_learning.c` (#846)

Add endlines in `machine_learning/adaline_learning.c`.
Co-authored-by: David Leal <halfpacho@gm...

cc241f58c253c533ac94e07151ef91a5ef7e5719 authored over 3 years ago by Piyush Kumar <[email protected]>
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...

1b30b8908363601c0fe2750c98bf549350c28b2f authored over 3 years ago by Randy Kwalar <[email protected]>
feat: Add floyd cycle-detection-algorithm to find duplicate number (#844)

* floyd algorithm application

* Update searching/floyd_cycle_detection_algorithm.c

Co-auth...

580bd405ea37f67ec787a62757bef05ab0342dd7 authored over 3 years ago by Swastika Gupta <[email protected]>
feat: Convert all issue templates into issue... (#845)

...forms. Also disables blank issues and adds an `Other` template for generic issues without bla...

b4f2f87a78f3e2c8bbfcbc1338206d2380eff5f5 authored over 3 years ago by David Leal <[email protected]>
docs: Changes in README (#842)

* Update README.md

* Update README.md

2b6661aaf5cd96bd9742d47f63589ef59ec00aed authored over 3 years ago by Hriday Sharma <[email protected]>
tests: added `get_angle` test function in geometry/vector3d (#838)

* feat: add get_angle algorithm

* docs: added documentation for get_angle algorithm

* test...

31ced8233e2ae55cff5149e760f92a3fca1d09cf authored over 3 years ago by lasgel <[email protected]>
[feat/fix]: Improve the contributing guidelines (#839)

Mostly all of the changes are taken from https://github.com/TheAlgorithms/C-Plus-Plus/pull/1503.

08157c4129a8df58cc98fb0e50ec909b64ed5a9a authored over 3 years ago by David Leal <[email protected]>
feat: Add the `Approved Label` workflow (#830)

When a pull request is approved, it'll automatically add the `approved` label.

373f9c4a66ab125a8f0ef37ab93c000a88dff23c authored over 3 years ago by David Leal <[email protected]>
fix: Revert "fix: LGTM warnings/alerts" commit

fb778074c738b20f51eb46e8732ddcfb970154b5 authored over 3 years ago by David Leal <[email protected]>
fix: LGTM warnings/alerts

Thanks to @siriak for giving the solution at Discord!
Co-authored-by: Andrii Siriak <siryaka@gma...

b6cc0c5601b5549eedae8e1e5141bba5738ecf5d authored over 3 years ago by David Leal <[email protected]>
feat: Add Discord chat badge in `README.md`

221346808ab79534430a2b6faaae9d5dfdfbd93a authored over 3 years ago by David Leal <[email protected]>
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 ...

a7d613c95d91d12fc9693027114554d6cfc15342 authored over 3 years ago by Jaskarn Singh <[email protected]>