Commit Graph

101 Commits

Author SHA1 Message Date
David Leal fb778074c7
fix: Revert "fix: LGTM warnings/alerts" commit 2021-04-25 19:44:15 -05:00
David Leal b6cc0c5601
fix: LGTM warnings/alerts
Thanks to @siriak for giving the solution at Discord!
Co-authored-by: Andrii Siriak <siryaka@gmail.com>
2021-04-25 19:36:23 -05: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
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 d19a3a7bc8
cleanup some codes for global variables and clang-tidy specs 2020-07-12 23:49:09 -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 f21f18ef73
make identical datatype
4d0dbc401d/files/project_euler/problem_22/sol1.c?sort=name&dir=ASC&mode=heatmap#xa0d183509f9bbb35:1
2020-07-01 20:21:56 -04:00
Krishna Vedala 2a0b8917f8
fix argc check
refer: dd40af2736 (r40309582)
(cherry picked from commit 610181d5e81c39cb23415cf056a021acc37f9b3c)
2020-07-01 19:56:45 -04:00
Krishna Vedala e2c51387bd
minor doc fix in euler prob1 sol1 2020-06-30 13:39:31 -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 a74eab90d7
added return staements 2020-06-06 17:10:17 -04:00
Krishna Vedala accd53c12f
fix install folder 2020-06-06 17:10:04 -04:00
Krishna Vedala f9d506fdb0
added authorship to docs 2020-06-06 14:51:49 -04:00
Krishna Vedala d902f3595f documented remaining project euler programs 2020-06-05 13:53:38 -04:00
Krishna Vedala dd40af2736 document project euler till prob 12 2020-06-05 12:20:25 -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 0779a2b70d formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
Krishna Vedala 556b0d1e30
project euler folder pathnames normalized 2020-05-29 16:13:52 -04: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 1c5a699340 remove function_timer from all compilations 2020-05-29 10:47:36 -04:00
Krishna Vedala a376316d82 fix openmp for MSVC 2020-05-22 20:35:03 -04:00
Krishna Vedala 38e0a2354c
warning free print uint64 2020-04-24 07:41:24 -04:00
Krishna Vedala 42f56b62ac
use signed int for openmp for loop 2020-04-23 20:59:02 -04:00
Krishna Vedala 9451beb977
more mallocs 2020-04-23 20:53:53 -04:00
Krishna Vedala dee56f7781
move openmp loop variable outside 2020-04-23 20:17:32 -04:00
Krishna Vedala 5185ebaa03
Merge branch 'project_euler'
* project_euler:
  updating DIRECTORY.md
  +project euler problem 401

# Conflicts:
#	DIRECTORY.md
2020-04-23 16:57:45 -04:00
Krishna Vedala 509454680e
+project euler problem 401 2020-04-23 16:31:59 -04:00
Krishna Vedala 44a89fb3ba
fixed stdint.h artefact 2020-04-08 10:02:08 -04:00
Krishna Vedala 66ef12de2c
remove stdint.h dependency 2020-04-08 09:59:44 -04:00
Krishna Vedala 63206ab47a
use long long int for printf compatibility 2020-04-08 09:48:04 -04:00
Krishna Vedala de027fe4ff
using long long int for pritf compatibility 2020-04-08 09:46:44 -04:00
Krishna Vedala 1b826807ed
code cleanup to prevent gcc warnings 2020-04-08 09:41:12 -04:00
Krishna Vedala 99f299d172
Merge branch 'master' into project_euler/master2 2020-04-07 10:41:35 -04:00
Krishna Vedala 860b1fd501
added stdint.h for fixed width ints 2020-04-07 00:41:14 -04:00
Krishna Vedala 6a09ade47d
added stdint.h for fixed width ints 2020-04-07 00:39:42 -04:00
Krishna Vedala fe5c6a724d
replace uint8 with unsigned char 2020-04-07 00:37:24 -04:00
Krishna Vedala 2d9d2d87fe
using the new function_timer library 2020-04-07 00:24:40 -04:00
Krishna Vedala d24b6ea344
added option to enable or disable use of openmp 2020-04-07 00:24:13 -04:00
Krishna Vedala 1e7fc84c3a
added cmake to project euler 2020-04-07 00:12:34 -04:00
Krishna Vedala 855c9124b8
added stdint.h for integer length typedefs 2020-04-03 08:10:28 -04:00
Krishna Vedala daca8c97e2
brute-force method 2020-04-02 23:50:51 -04:00
Krishna Vedala 1914f98fcd
Merge branch 'project_euler/problem_25' into project_euler/master2
* project_euler/problem_25:
  solution using arbitrary number of digits took 11ms
2020-04-02 20:15:57 -04:00
Krishna Vedala 3032428b65
Merge branch 'project_euler/problem_24' into project_euler/master2
* project_euler/problem_24:
  algorithm by Dijkstra
2020-04-02 20:15:48 -04:00
Krishna Vedala 52b83e3ca6
Merge branch 'project_euler/problem_23' into project_euler/master2
* project_euler/problem_23:
  updating DIRECTORY.md
  move time computation inside loop + comments
  faster parallleization
  time computation inside the loop & print loop info
  added comments
  sol1 optimized by storing abundant numbers in a condensed array
  brute-force - compute abundant numbers every time

# Conflicts:
#	DIRECTORY.md
2020-04-02 20:15:39 -04:00
Krishna Vedala c0eaae7546
Merge branch 'project_euler/problem_22' into project_euler/master2
* project_euler/problem_22:
  added source text file
  updating DIRECTORY.md
  sort using both lazy sort and shell-sort

# Conflicts:
#	DIRECTORY.md
2020-04-02 20:13:14 -04:00