Commit Graph

110 Commits

Author SHA1 Message Date
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
dsmurrow f3a3e6d476
chore: created new subdirectory for cryptographic ciphers (#1237)
* chore: moved rot13.c to cipher directory

* chore: added CMakeLists.txt for /cipher

* chore: added /cipher to root CMakeLists.txt
2023-03-29 14:42:08 -06:00
Bao Hexing 62359492bf
fix: addition of two polynomials memory leak and linked list crash (#1211)
Co-authored-by: David Leal <halfpacho@gmail.com>
2023-03-13 11:44:01 -06:00
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
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
Defective Detective 56b72da9fb
chore: move various `misc` folder... (#1177)
...algorithms to the `math` folder.

Co-authored-by: David Leal <halfpacho@gmail.com>
2022-12-22 11:26:50 -06:00
Jeremias Moreira Gomes 0e956c6e58
chore: add Rot13 Cipher (#1008)
* Add ROT13 cipher.

* updating DIRECTORY.md

* Fix suggestions.

* Suggestions.

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
2022-11-15 18:22:16 -06:00
serturx 8241a58d42 Apply suggestions from code review
Co-authored-by: David Leal <halfpacho@gmail.com>
2022-10-12 10:48:41 -04:00
serturx 7a997f2755 fix comment 2022-10-12 10:48:41 -04:00
serturx bd1b0ebcb9 Add include descriptions 2022-10-12 10:48:41 -04:00
serturx 35f6431f47 Add algoritm description 2022-10-12 10:48:41 -04:00
serturx 597dc1972b Apply suggestions from code review
Co-authored-by: David Leal <halfpacho@gmail.com>
2022-10-12 10:48:41 -04:00
serturx f8e43ac88f Add run length encoding 2022-10-12 10:48:41 -04:00
GrandSir 6121ab5c20
Create fibonacci_formula.c (#961) 2022-09-30 14:21:43 +05:30
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
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
Krishna Vedala 4cb3eeb1af
Revert "Added math function power (#604)" (#608)
This reverts commit 88726b9425.
2020-09-23 21:03:24 -04:00
Du Yuanchao 88726b9425
Added math function power (#604)
* added power algorithm

* updating DIRECTORY.md

* make test function static

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

* Update misc/power_recursion.c

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

* Update misc/power_recursion.c

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

* Update misc/power.c

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

* Update misc/power.c

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

* Update misc/power.c

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

* Update misc/power.c

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

* Update misc/power_recursion.c

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

* Update misc/power_recursion.c

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

* Update misc/power.c

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

* Update misc/power_recursion.c

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

* Update misc/power_recursion.c

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

* Update misc/power.c

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

* Update misc/power.c

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

* Update misc/power_recursion.c

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

* Update misc/power.c

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
2020-09-22 11:50:00 -05:00
Ankita19ms0010 49e8f4a7d7
feat:Add Polynomial Addition (#600)
* feat:Add Polynomial Addition

* Review changes

* updating DIRECTORY.md

* Apply suggestions from code review

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

* Corrected printing

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

* file path fixed

* updating DIRECTORY.md

* Corrected free memory

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
2020-09-18 12:23:49 -05:00
github-actions 727169a13c clang-tidy fixes for c259ac4c32 2020-08-14 00:14:30 +00:00
shellhub c259ac4c32 * fix doc
* add test
2020-08-14 08:11:57 +08:00
shellhub ff90d873d3 add isPalindrome function 2020-07-14 09:28:34 +08:00
Krishna Vedala 47958fb003
fix lgtm error and add basic docs 2020-07-11 00:10:22 -04:00
Krishna Vedala d1dfde4f89
set initial value to avoid error 2020-07-10 23:59:51 -04:00
Krishna Vedala d186f59144
better structure, format and docs 2020-07-10 23:55:04 -04:00
Krishna Vedala df25df3236
fix lgtm alert - variable pi 2020-07-10 22:40:46 -04:00
Krishna Vedala 6072e3b111
[bugs & docs] lots of documentation and bug fixes (#554)
* sudoku - lots of documentation and bug fixes

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

* fix uint8_t format specifier

* fix format specifiers

* fix space in doc

* fix doc for get_next_unknown

* fix docs and lgtm alert in euler problem 19

* fix docs & lgtm error fibonacci_fast

* fix docs & lgtm alert merge_sort

* free dynamic memory
2020-07-04 15:05:30 -04:00
Krishna Vedala 0f48961469
Merge pull request #552 from kvedala/fixes/lgtm
[bugs/lgtm] code + doc fixes + lgtm corrections
2020-07-01 20:11:18 -04:00
Krishna Vedala cc45bea17d
use Cantor variable name and not contour 2020-06-30 13:52:43 -04:00
Krishna Vedala c755eefcd0
use `program` instead of 'function' in file description 2020-06-30 13:47:44 -04:00
Krishna Vedala 9ca22bc70c
fix errors and docs in cantor set 2020-06-30 13:38:36 -04:00
shellhub 74c091b1aa less code 2020-06-30 16:27:19 +08:00
Krishna Vedala 6710df7ec3
fix LGTM - limit malloc range 2020-06-28 15:57:00 -04:00
Krishna Vedala 20bab2a5ae
fix lgtm error - lexicographic_permutations
41e2711683/files/misc/lexicographic_permutations.c (x2d1d13a31e62af9e):1
2020-06-28 15:47:50 -04:00
Krishna Vedala 6470f0318b
fixed documentations 2020-06-28 15:18:52 -04:00
github-actions 6f98288110 formatting source-code for 5bba04b671 2020-06-28 15:25:37 +00:00
Krishna Vedala f9d506fdb0
added authorship to docs 2020-06-06 14:51:49 -04:00
Krishna Vedala 98b969e1d0 add file brief 2020-06-05 15:59:49 -04:00
Krishna Vedala ba90b68190 add params and returns to factorial_large_number 2020-05-31 10:51:34 -04:00
Krishna Vedala aa98625b45 find openmp declared required only once
added subfolders after finding openmp
2020-05-31 10:49:26 -04:00
github-actions 466ccaa407 formatting filenames 909e15d8be 2020-05-30 18:26:19 +00:00
github-actions 0779a2b70d formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
Krishna Vedala b1e1923580 check if math library is available and include if present 2020-05-29 14:04:14 -04:00
Krishna Vedala d4f202cbea force include math library for each target 2020-05-29 13:49:28 -04:00
Krishna Vedala 4caa46c10c remove dependencies on function_timer 2020-05-29 12:34:58 -04:00
Krishna Vedala 278d2efd56 force C linker 2020-05-29 10:57:41 -04:00
Krishna Vedala 1c5a699340 remove function_timer from all compilations 2020-05-29 10:47:36 -04:00
Krishna Vedala d1df78e2c4
doxygen code formatting 2020-05-25 18:42:52 -04:00
Krishna Vedala e8caf31e0c
added doxygen documentation 2020-05-25 18:33:32 -04:00
Krishna Vedala 6385b0223e Merge remote-tracking branch 'upstream/master'
# Conflicts:
#	.travis.yml
#	DIRECTORY.md
#	README.md
2020-05-22 21:06:10 -04:00