Commit Graph

96 Commits

Author SHA1 Message Date
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
Sai Sriram Kalavagunta
cf696ddc6d Modified code of misc/Factorial.c to accomodate larger numbers. 2020-05-20 15:40:14 +05:30
Krishna Vedala
f0465347ae
dynamically large factorial computation 2020-04-28 18:29:36 -04:00
Krishna Vedala
447b1160a4
read number from commandline & use long long unsigned integers 2020-04-28 17:03:10 -04:00
Krishna Vedala
4b07f0f6fc
use malloc and free for dynamic variables 2020-04-23 20:45:45 -04:00
Krishna Vedala
bf1c367a62
use pointer for dynamic memory allocation 2020-04-23 20:08:15 -04:00
Krishna Vedala
1b826807ed
code cleanup to prevent gcc warnings 2020-04-08 09:41:12 -04:00
Krishna Vedala
a3989bbadc
use openmp in 'misc' directory 2020-04-07 18:21:27 -04:00
Krishna Vedala
c0ebfabc6f
+misc/cmake 2020-04-06 23:59:41 -04:00
Krishna Vedala
def308b785
remove conio.h 2020-04-06 23:59:19 -04:00
Krishna Vedala
b033b323fb
much faster Fibbonacci algorithm 2020-04-02 18:36:11 -04:00
Krishna Vedala
fa73fcb983
+a much faster fibonacci computation algorithm 2020-03-07 10:57:52 -05:00
Krishna Vedala
fce50a9d7c
add commandline option to FibonacciDP.c 2020-03-07 10:49:15 -05:00
Christian Clauss
a974dba4fd
Rename cartesianToPolar.c to cartesian_To_Polar.c 2020-01-09 10:55:04 +01:00
cclauss
ecb73860a3 Fix filenames for DIRECTORY.md 2020-01-09 10:27:32 +01:00