Commit Graph

104 Commits

Author SHA1 Message Date
github-actions
397872ba96 updating DIRECTORY.md 2021-02-15 06:47:11 +00:00
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
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
github-actions
d0d67ff789 updating DIRECTORY.md 2020-10-16 13:02:49 +00:00
Vishnu P
a050a48bfd
Added octal to binary conversion (#629)
* Added octal to binary conversion

* Update conversions/octal_to_binary.c

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

* Update conversions/octal_to_binary.c

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

* Changes updated

* To trigger action

* updating DIRECTORY.md

* LGTM alert  fixed.

Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2020-10-02 08:16:27 -04:00
Krishna Vedala
4cb3eeb1af
Revert "Added math function power (#604)" (#608)
This reverts commit 88726b9425.
2020-09-23 21:03:24 -04:00
Krishna Vedala
526c898644
Revert "Added strlen function (#606)" (#607)
This reverts commit 598630cecb.
2020-09-23 14:33:57 -04:00
Du Yuanchao
598630cecb
Added strlen function (#606)
* added strlen function

* updating DIRECTORY.md

* Update strings/strlen.c

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

* Update strings/strlen_recursion.c

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>
2020-09-23 13:22:09 -05: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
Lakhan Nad
e75d0e75d7
Feature: Added segment_trees Closes #561 (#595)
* Feature: Added segment_trees Closes #561

* doc: documentation improved and explanations added

* updating DIRECTORY.md

* doc: changes in documentation

* doc: suggested doc changes and int types changed

* update: doc change for main function

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>
2020-09-09 12:50:21 -04:00
Krishna Vedala
bb6c62aa62
feat: Project Euler Problem 5 - #162 (#599)
* rename existing code as sol3

* Added naive implementation for Problem 5

* Added a solution for Euler Problem 5 with easy improvements

* rename new files

* code formatting

* update documentations

* fix docs

* updating DIRECTORY.md

Co-authored-by: buffet <niclas@countingsort.com>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2020-09-03 08:52:21 -04:00
Krishna Vedala
23b2a290fb
feat: Project Euler Problem 7 - #167 (#598)
* Please check this solution to Q7 of Project Euler

* rename file

* fix code formatting

* added doc

* updating DIRECTORY.md

* added see-also references

Co-authored-by: adityasheth305 <43900942+adityasheth305@users.noreply.github.com>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2020-09-03 08:51:59 -04:00
github-actions
7ed1ee96d6 updating DIRECTORY.md 2020-08-17 02:01:25 +00:00
github-actions
cdb53ca256 updating DIRECTORY.md 2020-08-08 12:38:32 +00:00
Du Yuanchao
d71e601fd7
Merge pull request #586 from shellhub/feature
Convert integer to string
2020-07-31 22:14:15 +08:00
github-actions
aded2a610a updating DIRECTORY.md 2020-07-31 14:03:38 +00:00
github-actions
6d4e9363bf updating DIRECTORY.md 2020-07-31 11:01:20 +00:00
Du Yuanchao
f3bed0ed98
decimal to binary using recursion (#575)
* add decimal_to_binary_recursion.c

* updating DIRECTORY.md

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2020-07-31 07:00:02 -04:00
Krishna Vedala
ff2e7a3528
[enhancement] formatted and added Hash directory to cmake (#580)
* added hash folder to CMAKE build

* split sdbm code from hash.c to independent program

* update readme file

* docs + vartype fix

* split djb2 code from hash.c to independent program

* fix function reference

* split xor8 code from hash.c to independent program

* split adler32 code from hash.c to independent program

* remove additional author

* split crc32 code from hash.c to independent program

* remove redundant files

* interpret large numbers as specific types

* disable eror clang-diagnostic-implicitly-unsigned-literal

* force use constants

* updating DIRECTORY.md

* clang-tidy fixes for 606e5d4fce

* added return in function doc to enable doc

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2020-07-29 13:18:11 -04:00
Du Yuanchao
3dc947213a
Bubble sort recursion (#574)
* bubble sort by recursion

* updating DIRECTORY.md

* fix compile error

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2020-07-21 11:07:30 -04:00
Krishna Vedala
9a9781064f
[enhancement] New Graphics implementation with algorithm for spirograph (#557)
* skeleton of spirograph

* add graphics to cmake

* updating DIRECTORY.md

* added cmake to graphics folder

* add stub test function

* working program

* set pre-processor macro if GLUT is available

* use snprintf

details: http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1967.htm

* conditional include for mac

* corrected conditional include for mac

* fix cmake for MACOS

* OpenGL animation if available, else plot to CSV

* MacOS does not provide glutBitmapString function

* formatting source-code for 8d570b4c28

* fix parameter

* try caps include path GL

* provide custom glutBitmapString cuntion

* add glut library to gitpod docker

* enable VNC in gitpod

* better documentation and cmake configuration

* enable keyboard inputs to pause and change parameters

* fix lgtm alerts

* implementation similar to one in C++ repo

* fix compilation errors on MSVC

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2020-07-10 15:48:07 -04:00
github-actions
e21049e8b3 updating DIRECTORY.md 2020-06-17 23:19:30 +00:00
github-actions
bb20a2548f updating DIRECTORY.md 2020-06-17 23:14:32 +00:00
Krishna Vedala
f742e96b0e
Merge remote-tracking branch 'upstream/master' into merge_upstream 2020-06-17 19:12:50 -04:00
github-actions
cf4be8838e updating DIRECTORY.md 2020-06-17 12:15:14 +00:00
github-actions
a78893eba5 updating DIRECTORY.md 2020-06-14 17:37:08 +00:00
github-actions
eda34bc5b2 updating DIRECTORY.md 2020-06-13 18:15:00 +00:00
github-actions
e5543d5356 updating DIRECTORY.md 2020-06-13 18:08:34 +00:00
github-actions
7c815b86b2 updating DIRECTORY.md 2020-06-11 15:26:23 +00:00
github-actions
50ea49e58e updating DIRECTORY.md 2020-06-10 18:34:15 +00:00
github-actions
57f4f5e2f6 updating DIRECTORY.md 2020-06-10 16:22:29 +00:00
github-actions
e29b2005b1 updating DIRECTORY.md 2020-06-10 15:38:18 +00:00
github-actions
20da9ea683 updating DIRECTORY.md 2020-06-07 18:58:47 +00:00
github-actions
7e66e149ee updating DIRECTORY.md 2020-06-03 18:55:22 +00:00
github-actions
6af5c96573 updating DIRECTORY.md 2020-06-03 16:01:26 +00:00
github-actions
47b653e7ca updating DIRECTORY.md 2020-05-31 16:44:21 +00:00
github-actions
e738cef596 updating DIRECTORY.md 2020-05-30 18:26:38 +00:00
github-actions
1f86dffba1 updating DIRECTORY.md 2020-05-30 18:01:31 +00:00
github-actions
364c3c9f57 updating DIRECTORY.md 2020-05-29 20:16:48 +00:00
github-actions
e755365f0a updating DIRECTORY.md 2020-05-29 20:14:13 +00:00
Krishna Vedala
2fff1d5a28
Merge pull request #5 from kvedala/function_timer
remove external dependency on Function timer
2020-05-29 16:05:02 -04:00
github-actions
9602315038 updating DIRECTORY.md 2020-05-29 18:17:14 +00:00
Krishna Vedala
f46b4a095e Merge remote-tracking branch 'upstream/master'
# Conflicts:
#	DIRECTORY.md
2020-05-29 14:16:49 -04:00
github-actions
52cf54409e updating DIRECTORY.md 2020-05-29 17:03:32 +00:00
github-actions
c3a1244251 updating DIRECTORY.md 2020-05-28 09:44:00 +00:00