Commit Graph

1221 Commits

Author SHA1 Message Date
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
Krishna Vedala
08415b0f16
Merge pull request #565 from kvedala/lgtm-fixes
[LGTM alerts] fixes to some of the LGTM alerts
2020-07-11 00:18:03 -04: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
cfca2aba51
docs+self-tests+lgtm fix 2020-07-10 23:19:24 -04:00
Krishna Vedala
df25df3236
fix lgtm alert - variable pi 2020-07-10 22:40:46 -04:00
Krishna Vedala
81f4428569
Merge pull request #564 from kvedala/clang-tidy
[enhancement] Added Clang tidy based static code analysis and formatting
2020-07-10 22:22:31 -04:00
Krishna Vedala
25ceda9b5e
Revert "test commit"
This reverts commit f13781f35c.
2020-07-10 21:51:45 -04:00
Krishna Vedala
effa820fb0
Revert "clang-tidy fixes for a86583fe96b065b8a74a49a7dc552add9f096061"
This reverts commit 31c9032812.
2020-07-10 21:51:39 -04:00
github-actions
31c9032812 clang-tidy fixes for a86583fe96 2020-07-11 01:49:23 +00:00
Krishna Vedala
a86583fe96
Revert "disable auto-fix"
This reverts commit 08aae084c9.
2020-07-10 21:44:56 -04:00
Krishna Vedala
f13781f35c
test commit 2020-07-10 21:38:28 -04:00
Krishna Vedala
22202f0cea
test passing multiple files 2020-07-10 21:33:03 -04:00
Krishna Vedala
fd2c883883
enable errors when clang-tidy cannot auto-fix
refer to link: https://clang.llvm.org/extra/clang-tidy/checks/list.html
2020-07-10 21:30:59 -04:00
Krishna Vedala
08aae084c9
disable auto-fix 2020-07-10 21:14:05 -04:00
Krishna Vedala
38f88ded81
disable all insecureAPI warnings 2020-07-10 19:05:21 -04:00
Krishna Vedala
f261bf590b
fix file for clang-tidy errors 2020-07-10 18:39:01 -04:00
Krishna Vedala
b6270eaf2d
treat warnings as errors 2020-07-10 18:38:47 -04:00
Krishna Vedala
61998c0446
fix config syntax & disable rand error 2020-07-10 18:26:04 -04:00
Krishna Vedala
26322e0ddb
update workflow to use clang-tidy checks and apply necessary fixes 2020-07-10 17:09:42 -04:00
Krishna Vedala
caf5e9190a
added clang-tidy config file 2020-07-10 17:09:19 -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
Krishna Vedala
cdf8453db8
[Bug] gnome sort: reverted merge commit adding error (#559)
* Revert "Merge pull request #513 from tania-cmyk/master"

This reverts commit 5eebdedefc, reversing
changes made to 53e92ebc05.

* formatting source-code for 16110cd079

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2020-07-08 08:54:58 -04:00
Krishna Vedala
294d29b584
more elaborate README (#558) 2020-07-07 20:06:28 -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
b693440d55
[docs] add documentation group (#556)
* add documentation group

* function parameter docs

* fix function parameter direction

* free dynamic memory
2020-07-04 13:59:21 -04:00
Krishna Vedala
246f3e3f0e
Merge pull request #555 from kvedala/docs/ml
[docs] Update documentations in machine learning
2020-07-03 14:13:08 -04:00
Krishna Vedala
b863518ceb
update ML documentation and add grouping 2020-07-02 20:09:49 -04:00
Krishna Vedala
b33bd37623
kohonen2d: update ML documentation and add grouping 2020-07-02 20:02:33 -04:00
Krishna Vedala
797a7d4c73
update ML documentation and add grouping 2020-07-02 19:52:19 -04:00
Krishna Vedala
9a58248668
Merge pull request #553 from kvedala/fixes/lgtm
[bugs] fixes for lgtm and improve docs
2020-07-02 10:48:06 -04:00
Krishna Vedala
ccd3f66608
fix code - major errors + add docs 2020-07-01 21:27:35 -04:00
Krishna Vedala
5daeb8daaa
fix docs & add link 2020-07-01 21:02:41 -04:00