Commit Graph

1354 Commits

Author SHA1 Message Date
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
github-actions aded2a610a updating DIRECTORY.md 2020-07-31 14:03:38 +00:00
Du Yuanchao 5fc2901bd4
Merge pull request #1 from gitpod-io/feature
replaced itoa with snprintf & fixed other docs
2020-07-31 22:02:16 +08:00
Krishna Vedala 0f95bd92f9 more docs 2020-07-31 13:49:33 +00:00
Krishna Vedala 98f9ae391f replaced itoa with snprintf & fixed other docs 2020-07-31 13:38:16 +00:00
shellhub 313a98085d int_to_string 2020-07-31 20:54:15 +08:00
shellhub 10d006c3b1 * fix docs
* fix insertion sort and selection sort
2020-07-31 20:44:55 +08:00
github-actions 6d4e9363bf updating DIRECTORY.md 2020-07-31 11:01:20 +00:00
github-actions 56e7291215 formatting filenames 485a6fe60e 2020-07-31 11:01:20 +00:00
Sai Vivek Amirishetty 485a6fe60e
Added a new Tic Tac Toe game made using C (#530)
* Added a new Tic Tac Toe game made using C

* Removed .DS_Store from CGames

* Delete .DS_Store

* Updated Formatting

* Deleted the file

* Updated Code Formatting

* Deleted .DS_Store again

* Updated Comments in the Code

* Updated code information

* Updated Documentation

* Updated Information

* fix filename

* enable cmake for games

* add docs and make better global name

* fix clang errors

* Fixed Segmentation Error

* Update games/tic-tac-toe.c

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

* Updated Function Description

* Update games/tic-tac-toe.c

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

Co-authored-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>
2020-07-31 07:00:30 -04: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
Krishna Vedala 3c1b585656
[enhancement] updated cmake checks (#581)
* added header file checks

* cmake cleanup and better use of checks

* fixed bug in numerical_methods/CMake

* add docs to cmake
2020-07-23 10:44:18 -04:00
Krishna Vedala 296f3d00d0
[bug+docs] add docs + fix error in getMax (#579)
* add docs + fix error in getMax

* fix clang-tidy alerts and errors

* rearrange comments

* allow subfolders in data_structure

* set pointer to NULL after purge
2020-07-22 08:37:28 -04:00
Krishna Vedala 83a8239805
[enhancement] Client_server folder code updated for windows OS as well. (#577)
* update codes to run on Windows platform as well

* added cmake for client_server

* added scope parameters

* force use of unistd.h in non-windows

* use size_t instead of int

* use unsigned int instead of size_t

* clang-tidy fixes for ac0991eb51

* updated UDP server-client as well

* use unsigned int

* added documentation

* spell correction

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2020-07-21 22:59:18 -04:00
Du Yuanchao e43024e8f5
bubble sort optimization (#573) 2020-07-21 11:16: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 5d9bf07851
Merge pull request #568 from kvedala/cleanup
[bugs] cleanup some codes for global variables and clang-tidy specs
2020-07-16 16:34:14 -04:00
Du Yuanchao eb643810ba
Merge pull request #567 from shellhub/patch-1
add isPalindrome function
2020-07-15 14:08:08 +08:00
shellhub ff90d873d3 add isPalindrome function 2020-07-14 09:28:34 +08:00
Krishna Vedala 39cdc7b108
fix possible memory leak 2020-07-13 00:14:29 -04:00
Krishna Vedala f58916f8f5
fix dynamic array allocations 2020-07-13 00:12:57 -04:00
Krishna Vedala 9642e1068d
allow subfolders in project_euler folder 2020-07-12 23:56:47 -04:00
Krishna Vedala d19a3a7bc8
cleanup some codes for global variables and clang-tidy specs 2020-07-12 23:49:09 -04:00