1344 Commits

Author SHA1 Message Date
a99321502c add Koch snowflake (#2168)
* add KochSnowflake.java

* add package
2021-04-24 12:03:24 +05:30
57bf40bff4 updating DIRECTORY.md 2021-04-24 06:25:41 +00:00
2ad3bb7199 Add algorithm for the Mandelbrot set (#2155)
* Add Euler method (from master)

trying to avoid to prettier-error by making the commit from the master-branch

* delete file

* Add algorithm for the Mandelbrot set

* remove unnecessary import

* fix comments

* Changed variable name

* add package
2021-04-24 11:55:27 +05:30
db86e6454a updating DIRECTORY.md 2021-04-24 06:25:05 +00:00
728723177e Add Euler method (from master) (#2148)
* readded EulerMethod.java after sync

* add package
2021-04-24 11:54:34 +05:30
a8505097a8 Formatted with Google Java Formatter 2021-04-23 17:28:12 +00:00
66adafbff8 Tim sort Algorithm | #2003 (#2110)
* Add Tim Sort implementation in Java

* Add comments and complete implementation of TimSort Algorithm

* Add better docs

* Add @brief's and test method

* Fix errors

* add Test method

* Update Sorts/TimSort.java

Co-authored-by: Ayaan Khan <ayaankhan98@gmail.com>

* Update Sorts/TimSort.java

Co-authored-by: Ayaan Khan <ayaankhan98@gmail.com>

* Update Sorts/TimSort.java

Co-authored-by: Ayaan Khan <ayaankhan98@gmail.com>

* Update Sorts/TimSort.java

Co-authored-by: Ayaan Khan <ayaankhan98@gmail.com>

* Update Sorts/TimSort.java

Co-authored-by: Ayaan Khan <ayaankhan98@gmail.com>

* Update Sorts/TimSort.java

Co-authored-by: Ayaan Khan <ayaankhan98@gmail.com>

* Update Sorts/TimSort.java

Co-authored-by: Ayaan Khan <ayaankhan98@gmail.com>

* Update Sorts/TimSort.java

Co-authored-by: Ayaan Khan <ayaankhan98@gmail.com>

* Add tests

* Update Sorts/TimSort.java

Co-authored-by: Ayaan Khan <ayaankhan98@gmail.com>

* Update Sorts/TimSort.java

* Update Sorts/TimSort.java

Co-authored-by: Ayaan Khan <ayaankhan98@gmail.com>

* Update Sorts/TimSort.java

Co-authored-by: Ayaan Khan <ayaankhan98@gmail.com>

* Update Sorts/TimSort.java

Co-authored-by: Ayaan Khan <ayaankhan98@gmail.com>

Co-authored-by: Ayaan Khan <ayaankhan98@gmail.com>
2021-04-23 22:57:41 +05:30
d2d5efdd2a BinarySearch: clearer median computation (#2182)
* BinarySearch: clearer median computation

">>> 1" is simply too obscure...

* update binary search

Co-authored-by: Yang Libin <contact@yanglibin.info>

Co-authored-by: Du Yuanchao <shellhub.me@gmail.com>
Co-authored-by: Yang Libin <contact@yanglibin.info>
2021-04-21 09:23:46 +08:00
02fab665de fixed typo vertes to vertex Fixes: #{$2189} (#2190) 2021-04-18 18:02:48 +08:00
8cece6c399 Formatted with Google Java Formatter 2021-04-14 03:51:16 +00:00
b8707e61cb Formula to find median in Binary Search changed (#2181)
* Formula to find median in BS changed

* Fixed bugs

* fixed binary search bug

Co-authored-by: Sourav <kalitasourav12@gmail.com.com>
Co-authored-by: Du Yuanchao <shellhub.me@gmail.com>
2021-04-14 11:50:48 +08:00
cebd052c94 selection sort (#2177)
* selection sort

* Formatted with Google Java Formatter

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2021-04-12 19:16:37 +08:00
d93ee0de2d udpate insertion sort (#2176)
* udpate insertion sort

* Formatted with Google Java Formatter

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2021-04-12 18:58:24 +08:00
6dd5b2029e Formatted with Google Java Formatter 2021-04-09 14:19:34 +00:00
0550711a3e Update CountSinglyLinkedListRecursion.java (#2170)
Only method comment for public recursive method.
2021-04-09 22:18:51 +08:00
5f59cd85d6 Formatted with Google Java Formatter 2021-03-26 11:27:48 +00:00
67cb97df82 Fix 2D array passed to Arrays.fill() (#2010)
Arrays.fill() accepts single dimensional arrays, so fill one row at a time.

Fixes TheAlgorithms/Java#2009
2021-03-26 19:27:16 +08:00
2163204d8c Delete CountNumBinaryStrings 2021-03-26 19:19:47 +08:00
4e184cd95f Formatted with Google Java Formatter 2021-03-24 16:51:59 +00:00
4e7045137c Update LongestIncreasingSubsequence.java 2021-03-24 18:51:20 +02:00
8f43cce490 Removed Development part from README.md file (#2152) 2021-03-17 22:02:46 +05:30
34c5edd11e Update Knapsack.java (#2137) 2021-03-14 09:41:31 +08:00
aa8858b57a Var size is redunant (#2139) 2021-03-14 09:41:12 +08:00
183784b989 Fixes the sort order (#2142) 2021-03-14 09:38:57 +08:00
424b0fd11b Formatted with Google Java Formatter 2021-03-08 14:07:57 +00:00
fd1888aff1 Looks more meaningful (#2128)
Because in the future, the variable len is not used anywhere
2021-03-08 19:37:12 +05:30
40318a0e95 chore: upgrade prettier version 2021-03-02 17:25:05 +08:00
6ee92f028e Fully automate dev setup with Gitpod (#2094)
This commit implements a fully-automated development setup using Gitpod.io, an
online IDE for GitLab, GitHub, and Bitbucket that enables Dev-Environments-As-Code.
This makes it easy for anyone to get a ready-to-code workspace for any branch,
issue or pull request almost instantly with a single click.
2021-03-02 14:46:31 +05:30
b4d104db23 Added algorithm for color contrast ratio. (#1794)
* Added algorithm for color contrast ratio.

* Added comment and example usage in main.

* Fixed calling method in main without creating object.

* Formatted with Google Java Formatter

* Add imports for ColorContrastRatio.java

* updating DIRECTORY.md

* Updated to follow repo conventions. Undid formatting of documents.

* Follow repository conventions.

* Formatted with Google Java Formatter

* Added test method with assetions.

* Formatted with Google Java Formatter

* Update Misc/ColorContrastRatio.java

Co-authored-by: Ayaan Khan <ayaankhan98@gmail.com>

* updating DIRECTORY.md

* Correct javadocs and parameter names.

* Formatted with Google Java Formatter

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: Ayaan Khan <ayaankhan98@gmail.com>
2021-02-27 22:16:25 +05:30
ca2e20707f Formatted with Google Java Formatter 2021-02-26 19:22:37 +00:00
4264e0f045 Added Linear Convolution, FFT, Bluestein's FFT and Circular and Linear Convolution using FFT 2021-02-26 21:21:48 +02:00
f077c8d19e added reviewers and maintainers guidelines (#2115) 2021-02-26 22:47:04 +05:30
4607f0b99d Update LICENSE 2021-02-25 16:15:52 -06:00
00b327a2fb fix spelling errors on CONTRIBUTING.md (#2112)
* Update CONTRIBUTING.md

* Revert "Update CONTRIBUTING.md"

This reverts commit ef0be5d77ebe74bf2dc47fa07bfe5fb92ac2d014.

* Update CONTRIBUTING.md
2021-02-25 22:29:19 +05:30
ee64ac8084 Formatted with Google Java Formatter 2021-02-21 01:02:32 +00:00
a475463146 reducing complexity to linear complixity (#2087)
* reducing complexity to linear complixity

* reducing complexity to linear

* update CheckAnagrams algo

Co-authored-by: Yang Libin <contact@yanglibin.info>
2021-02-21 09:02:07 +08:00
93d1a5c12b Create stale.yml 2021-02-11 21:24:20 +05:30
912be910c8 Fixed Spelling error. See issue #2055 (#2083)
Corrected 'distance' spelling in line 51.
2021-02-03 19:23:10 +08:00
d1e75019a7 FIXES: #2056 (#2085)
Fixed typo
2021-02-03 19:21:02 +08:00
b8c1177bc8 updating DIRECTORY.md 2021-02-03 09:03:01 +00:00
be8432c38e Fixes: #2057 (#2086)
Fixed typo
2021-02-03 17:02:25 +08:00
936861cafd Formatted with Google Java Formatter 2021-01-04 15:20:36 +00:00
ecefcf3be3 Added new File WordBoggle.java in Java/Misc (#2007)
* Added New Java file in Java/Misc

* Update largestRange.java

* Update largestRange.java

* Update largestRange.java

* Update largestRange.java

* Revert "Largest range"

* Added WordBoggle.java

* Update WordBoggle.java

* Added RangeInSortedArray.java in Java/Misc
2021-01-04 20:50:00 +05:30
0b88a0abd0 updating DIRECTORY.md 2021-01-04 15:17:21 +00:00
568b0b23a6 add MinimumPathSum DynamicProgramming (#2068)
* add MinimumPathSum DynamicProgramming

* add tests and link for the algorithm

* remove junit dependency

* format with google code format

Co-authored-by: eatonjiang <eatonjiangtonglei@outlook.com>
2021-01-04 20:46:44 +05:30
331db36321 updating DIRECTORY.md 2020-12-27 13:00:21 +00:00
74b7426ae6 Solution to Euler Project Problem03 (#2069)
* Solution to Euler Project Problem03

* Solution to Euler Project Problem03
format fix

* format code

* update prime function

Co-authored-by: mickonama <mickonama@csd.auth.gr>
Co-authored-by: shellhub <shellhub.me@gmail.com>
2020-12-27 21:00:03 +08:00
95484f8c89 update SinglyLinkedList (#2058) 2020-12-01 09:33:06 +08:00
c85223bfca Travis CI: Fix build validation issues, add Xlint options (#2047)
* Travis CI: Fix build validation issues, add Xlint options

* updating DIRECTORY.md

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2020-11-26 10:03:06 +08:00
d63f470e7a Formatted with Google Java Formatter 2020-11-22 18:07:16 +00:00