Commit Graph

1342 Commits

Author SHA1 Message Date
github-actions 06aa0852c5 updating DIRECTORY.md 2021-05-10 19:54:06 +00:00
David Leal 454bc8b771
fix: Remove the Project Euler folder
We've recently received an email from the Project Euler team that we should remove the folders
including problems/files from the Project Euler. It seems they don't want us to have them in our repositories.

Sorry about your effort in adding them, but we need to remove them from our repositories.
2021-05-10 14:52:48 -05:00
David Leal fb778074c7
fix: Revert "fix: LGTM warnings/alerts" commit 2021-04-25 19:44:15 -05:00
David Leal b6cc0c5601
fix: LGTM warnings/alerts
Thanks to @siriak for giving the solution at Discord!
Co-authored-by: Andrii Siriak <siryaka@gmail.com>
2021-04-25 19:36:23 -05:00
David Leal 221346808a
feat: Add Discord chat badge in `README.md` 2021-04-16 13:09:06 -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
Mainak Debnath 4ac1c65007
fix: Added `limits.h` in `data_structures/heap/max_heap.c` (#812)
* fix: added limits.h header

* fix: added limits.h header in max_heap.c

* update: adding better documentation

* update: added documentation for header files

* update: changed comment for header files

Co-authored-by: David Leal <halfpacho@gmail.com>
2021-03-16 12:07:52 -06:00
David Leal d5e979ae2b
feat: Add CodeQL Analysis badge in README.md 2021-03-15 14:51:44 -06:00
David Leal eaaa4e28d3
feat: Add CodeQL Analysis workflow (#813)
Replaces LGTM, as LGTM only runs on commits, and CodeQL works faster, too.
2021-03-15 14:49:46 +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
Ayaan Khan 1a92f523fa
Merge pull request #806 from DhruvPasricha/master
feat: added selection_sort_recursive.c
2021-03-02 11:00:18 +05:30
DhruvPasricha c2268d2e8f
Update sorting/selection_sort_recursive.c
Co-authored-by: Ayaan Khan <ayaankhan98@gmail.com>
2021-03-02 01:08:40 +05:30
DhruvPasricha 684b4bc002
Update selection_sort_recursive.c 2021-03-01 22:06:40 +05:30
DhruvPasricha 979b1e3ba7
Update sorting/selection_sort_recursive.c
Co-authored-by: David Leal <halfpacho@gmail.com>
2021-03-01 10:16:43 +05:30
David Leal 3681b53128
fix: Apply suggestions from code review 2021-02-28 15:41:58 -06:00
David Leal d4e844e993
fix: Apply suggestions from code review 2021-02-28 15:41:39 -06:00
DhruvPasricha 3ceeecfab9
Update sorting/selection_sort_recursive.c
Co-authored-by: David Leal <halfpacho@gmail.com>
2021-02-28 23:55:33 +05:30
Ayaan Khan 121c7132a0
Merge pull request #807 from BillKek/master
fix: assertion failed on negative numbers in `conversions/c_atoi_str_to_integer.c`
2021-02-28 23:04:02 +05:30
BillKek 6f50dd4aab fixed precision commit. was assert-fail on negative numbers. 2021-02-28 01:07:53 +03:00
DhruvPasricha 9a1d26e22a
Update sorting/selection_sort_recursive.c
Co-authored-by: David Leal <halfpacho@gmail.com>
2021-02-27 13:10:20 +05:30
DhruvPasricha 013b586021
Update sorting/selection_sort_recursive.c
Co-authored-by: David Leal <halfpacho@gmail.com>
2021-02-26 11:17:06 +05:30
DhruvPasricha 8947878624
Update sorting/selection_sort_recursive.c
Co-authored-by: David Leal <halfpacho@gmail.com>
2021-02-26 10:59:55 +05:30
DhruvPasricha a4b83a4151
used uint8_t instead of int 2021-02-25 17:48:28 +05:30
DhruvPasricha c315db948a
added a one-line comment to tell what the library/header is for 2021-02-25 17:31:15 +05:30
David Leal ad8ab32572
Update sorting/selection_sort_recursive.c 2021-02-24 13:17:18 -06:00
David Leal 1e44e27a99
Update sorting/selection_sort_recursive.c 2021-02-24 13:16:56 -06:00
David Leal 50cb5835a1
Update sorting/selection_sort_recursive.c 2021-02-24 13:16:47 -06:00
DhruvPasricha 60a07e6346
Update sorting/selection_sort_recursive.c
Co-authored-by: David Leal <halfpacho@gmail.com>
2021-02-25 00:45:17 +05:30
github-actions 14553af668 updating DIRECTORY.md 2021-02-24 19:07:53 +00:00
DhruvPasricha 72e2c43f91
Update sorting/selection_sort_recursive.c
Co-authored-by: David Leal <halfpacho@gmail.com>
2021-02-25 00:37:02 +05:30
DhruvPasricha a0d02ed307
Update sorting/selection_sort_recursive.c
Co-authored-by: David Leal <halfpacho@gmail.com>
2021-02-25 00:36:51 +05:30
DhruvPasricha 30b43869d4
Update sorting/selection_sort_recursive.c
Co-authored-by: David Leal <halfpacho@gmail.com>
2021-02-25 00:36:39 +05:30
DhruvPasricha d957dacec5
Update selection_sort_recursive.c 2021-02-25 00:12:15 +05:30
DhruvPasricha 1c777cbe99
Update sorting/selection_sort_recursive.c
Co-authored-by: Ayaan Khan <ayaankhan98@gmail.com>
2021-02-25 00:02:34 +05:30
DhruvPasricha 7b23edbfd6
Update sorting/selection_sort_recursive.c
Co-authored-by: Ayaan Khan <ayaankhan98@gmail.com>
2021-02-25 00:00:52 +05:30
DhruvPasricha 08cf618094
Update sorting/selection_sort_recursive.c
Co-authored-by: Ayaan Khan <ayaankhan98@gmail.com>
2021-02-25 00:00:41 +05:30
DhruvPasricha 6c874bd7cd
Update sorting/selection_sort_recursive.c
Co-authored-by: Ayaan Khan <ayaankhan98@gmail.com>
2021-02-24 23:58:06 +05:30
DhruvPasricha f8c9ea04f9
Update sorting/selection_sort_recursive.c
Co-authored-by: Ayaan Khan <ayaankhan98@gmail.com>
2021-02-24 23:57:23 +05:30
DhruvPasricha 63aded1ecc
Update sorting/selection_sort_recursive.c
Co-authored-by: Ayaan Khan <ayaankhan98@gmail.com>
2021-02-24 23:56:53 +05:30
DhruvPasricha 33f9f85122
Update sorting/selection_sort_recursive.c
Co-authored-by: Ayaan Khan <ayaankhan98@gmail.com>
2021-02-24 23:55:01 +05:30
DhruvPasricha 18a9974a0c
Update sorting/selection_sort_recursive.c
Co-authored-by: Ayaan Khan <ayaankhan98@gmail.com>
2021-02-24 23:54:53 +05:30
DhruvPasricha f894ff2ac3
Update sorting/selection_sort_recursive.c
Co-authored-by: Ayaan Khan <ayaankhan98@gmail.com>
2021-02-24 23:54:42 +05:30
DhruvPasricha 98a1b14242 added selection_sort_recursive.c 2021-02-24 13:54:57 +05:30
Satbek Abdyldayev 28fc15c65b
fix: possible segmentation faults in `numerical_methods/mean.c` (#805)
* fixed possible segmentation fault

Fixed possible segmentation fault when no arg is supplied

* Update mean.c

various small changes to print statements.
2021-02-23 12:36:43 -06: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
Carlos 78e40e4874 Update : change type char to int 2021-02-19 03:03:23 -03:00
Carlos 900d24ef71 Delete : unused variable 2021-02-19 02:53:56 -03:00
Carlos 3a04dd3420 Delete : unused variable 2021-02-19 02:52:00 -03:00