Commit Graph

1527 Commits

Author SHA1 Message Date
Rachit Bhalla
881e1e9a88 Implemented octal to hexadecimal conversion Fixes: #633 2020-10-18 18:00:23 +05:30
github-actions
d0d67ff789 updating DIRECTORY.md 2020-10-16 13:02:49 +00:00
vinayak
bad50992fd
insertion_sort_recursive (#647)
* insertion_sort_recursive

* feat: add insertion sort recursive algorithm

* Update sorting/insertion_sort_recursive.c

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

* Update sorting/insertion_sort_recursive.c

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

* Update insertion_sort_recursive.c

* Update sorting/insertion_sort_recursive.c

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

* Update sorting/insertion_sort_recursive.c

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

* Update sorting/insertion_sort_recursive.c

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

Co-authored-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>
2020-10-16 09:01:45 -04: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
Ayaan Khan
d810d9002f
Merge pull request #636 from Panquesito7/add_code_conduct
[fix/feat]: Added Code of Conduct
2020-10-02 14:57:16 +05:30
github-actions
cb1632e115 updating DIRECTORY.md 2020-10-02 07:18:37 +00:00
Harsh Karande
9464b673fa docs: add header file docs 2020-10-02 12:47:20 +05:30
David Leal
812702ff45
[fix/feat]: Added Code of Conduct 2020-10-01 23:45:26 -05:00
Shezza221b
d3bb124b90
docs: Minor documentation improvements (data_structures/queue.c) (#616) 2020-10-01 12:19:55 -05:00
devraj4522
6f385ed4a4
Update queue.c (#622) 2020-10-01 10:28:19 -04:00
Shezza221b
af6de4b7d4
Update stack.c (#617) 2020-10-01 09:34:03 -04:00
Harsh Karande
95b20556a0 docs: update for infix_to_postfix.c 2020-10-01 10:42:41 +05:30
David Leal
544f492720
[feat/fix]: Add contributing guidelines and update templates (#610)
* feat: Add contributing guidelines

* fix: Use the correct links in PR/issue template

* fix: Update README.md to point to correct links

* fix: Update README.md

* fix: Move contributing guidelines to root directory

* fix: Update PR template
2020-09-30 15:40:52 -04:00
Harsh Karande
66c8f7cbec fix: checks failed 2020-09-30 20:51:29 +05:30
Harsh Karande
d7f0955930 feat: add infix_to_postfix.c 2020-09-30 20:34:51 +05:30
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
David Leal
3052511c14
fix: LGTM warning/alert (#601)
* fix: LGTM warning

* fix: change requested
2020-09-09 18:54:16 -04: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
Ayaan Khan
ce263033f8
Merge pull request #594 from kvedala/quaternions
[feature] added 3d geometry operations
2020-08-27 00:54:09 +05:30
Krishna Vedala
dd19e0387c
Merge branch 'master' into quaternions 2020-08-26 12:13:30 -04:00
Krishna Vedala
5d0972a246
[bug fix] fix code formatting during CI (#597)
* added explicit clang-format

* fix order - first lint and then format

this will help in maintaining code during debug of lint errors
2020-08-26 12:11:51 -04:00
Krishna Vedala
0d79101605
add alias to real part of quaternion 2020-08-17 14:01:38 -04:00
Krishna Vedala
8c4a37059d
update variable doc 2020-08-17 13:59:48 -04:00
Krishna Vedala
6fc298e699
Merge branch 'quaternions' of https://github.com/kvedala/C into quaternions 2020-08-17 13:57:41 -04:00
Krishna Vedala
27c50605df
provide alias aviable names for euler angles 2020-08-17 13:46:06 -04:00
github-actions
7ed1ee96d6 updating DIRECTORY.md 2020-08-17 02:01:25 +00:00
Krishna Vedala
0f541b2604
use fabs and explicitly mark variables as floating point 2020-08-16 22:00:16 -04:00
Krishna Vedala
956e87fcce
undo fabs change to vectors 2020-08-16 21:56:31 -04:00
Krishna Vedala
d2c867f02e
replace fabs with fabsf 2020-08-16 21:53:56 -04:00
Krishna Vedala
3b9968e595
fix file doc brief 2020-08-16 21:52:28 -04:00
Krishna Vedala
b75a201fdb
added quaternions operations 2020-08-16 21:46:45 -04:00
Krishna Vedala
1610a09e48
added vector operations file 2020-08-16 21:46:11 -04:00
Krishna Vedala
0aec326c4f
added geometry datatypes 2020-08-16 21:45:37 -04:00
Krishna Vedala
b925152b5c
fix cmake 2020-08-16 21:44:38 -04:00
Krishna Vedala
b02072c479
added geomety folder 2020-08-16 17:39:31 -04:00
Du Yuanchao
1a13794cfe
Merge pull request #593 from shellhub/dev
[doc fix and add test]fix documentation in prime and strong number
2020-08-15 08:26:52 +08: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
Krishna Vedala
0b426c0124
[doc fix] fix documentations in k_means (#592)
* fix documentations

* clang-tidy fixes for 814f9077b7

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2020-08-08 12:27:46 -04:00
Krishna Vedala
05d9af45f3
corrected filename in documentation 2020-08-08 10:14:04 -04:00
github-actions
cdb53ca256 updating DIRECTORY.md 2020-08-08 12:38:32 +00:00
Lakhan Nad
6247f830b5
feat: K Means Clustering Added (#589)
* feat: K Means Clustering Added

Implemented K Means Clustering in C
The data set used for implementing is ordered pair(x,y) in 2D plane.

* Update k_means_clustering.c

Lint suggested changes

* Update k_means_clustering.c

Lint suggested changes

* Update k_means_clustering.c

* Update k_means_clustering.c

Added float headers and also included macro _USE_MATH_DEFINES

* Update machine_learning/k_means_clustering.c

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

* update: change in docs and a new test added

* Update machine_learning/k_means_clustering.c

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

* Update machine_learning/k_means_clustering.c

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

* update: scale down rand() before multiplication

* update: image width specifid and documentation grouped

* update: lint suggested changes

Co-authored-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>
2020-08-08 08:37:49 -04:00
Du Yuanchao
37dede4115
Merge pull request #587 from shellhub/feature1
[fix] insertion and selection sort
2020-08-01 13:10:32 +08:00
Du Yuanchao
d71e601fd7
Merge pull request #586 from shellhub/feature
Convert integer to string
2020-07-31 22:14:15 +08:00