64 Commits

Author SHA1 Message Date
ed63a90289 Fix typos in comments (#2354) 2021-10-01 08:08:17 +03:00
cccb7be7d8 Formatted with Google Java Formatter 2021-09-17 11:38:05 +00:00
d8b06a35d4 Add matrixTranspose.java (#2041)
Co-authored-by: Rajat <${GITHUB_ACTOR}@users.noreply.github.com>
2021-09-17 14:37:39 +03:00
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
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
5d59a2e828 Formatted with Google Java Formatter 2020-10-24 10:23:28 +00:00
c4f5729e9e complete build action 2020-10-24 17:05:58 +08:00
14ebae6ba3 test build error 2020-10-24 16:57:49 +08:00
3b19b12f03 fixed build error 2020-10-24 16:33:40 +08:00
98a191c9c1 Update and rename heap_sort.java to HeapSort.java 2020-08-16 22:55:56 +08:00
3629e32c08 remove unused variable 2020-04-07 16:36:48 +02:00
a1f59c38b1 Closing scanners. 2020-01-28 18:34:52 +02:00
8f60321d86 docs: rename files 2019-05-10 10:25:19 +08:00
29948363da docs: update the whole repository
* fix some bugs
* delete duplicate files
* format code
2019-05-09 19:32:54 +08:00
22e7f7f147 Update PalindromicPrime.java
Method prime(num) uses only odd numbers from 3 to square root of num as divisors.
In method functioning(y) we iterate over odd numbers as all even numbers (except of 2) are not prime.
In method functioning(y) we check at first if the number is palindrome and then if it's prime, so we don't have to call the heavy prime() method for every number.
The speed of searching palindromic primes is significantly increased.
2019-02-03 08:50:02 +03:00
7e0ddb3fda Add Median Of Running Array 2018-10-11 11:25:26 +05:30
7320201a44 Merge pull request #142 from manmeet-22/patch-5
Palindromic Primes
2018-02-02 09:29:12 +05:30
58e1bca4e8 Modified Data Misc folder .java file name and class name 2017-12-17 01:20:22 +09:00
191eaae5c5 Merge pull request #153 from gagndeepp/patch-2
Simple Heap Sorting Technique Using Java #96
2017-11-09 16:33:25 +05:30
eed6f33976 Removed the Misc directory and moved the files to other 2017-11-05 10:17:19 -08:00
c850d793bb Fixed Merge changes 2017-10-28 13:05:43 +01:00
20d0bb2c69 Merge branch 'master' of https://github.com/freitzzz/Java
# Conflicts:
#	Data Structures/HashMap/HashMap.java
#	Huffman.java
#	Misc/FloydTriangle.java
#	Misc/Huffman.java
#	Misc/InsertDeleteInArray.java
#	Misc/RootPrecision.java
#	Misc/ft.java
#	Misc/root_precision.java
#	Others/FloydTriangle.java
#	Others/Huffman.java
#	Others/insert_delete_in_array.java
#	Others/root_precision.java
#	insert_delete_in_array.java
2017-10-28 12:59:58 +01:00
467b917416 Improved files and folders name conventions and moved lost files to Misc folder 2017-10-28 12:58:07 +01:00
135af7065a Fixed the Filename.
Cheers!!
2017-10-25 18:35:23 +05:30
e53249ba23 Synced the directory structure to that of Python repo 2017-10-13 06:57:26 -07:00
f6c322249f Add Linear Congruential Generator 2017-10-10 20:26:06 -07:00
5f2492832a Merge pull request #121 from manmeet-22/patch-3
Postfix Notation using Stack
2017-10-10 11:11:01 -07:00
d0b3bfa3f6 Simple Heap Sorting Technique Using Java
Heap sort is a comparison based sorting technique based on Binary Heap data structure
2017-10-05 10:21:24 +05:30
19d311e993 Create Palindromic Prime 2017-10-04 00:22:54 +05:30
ae3342fb50 Added Extension 2017-10-03 16:51:42 +05:30
3d42e003ac Merge pull request #120 from nimit17/ReturnSubsequences
Algorithm to Return Subsequences
2017-10-03 14:51:45 +05:30
d1475f1c5b Merge pull request #127 from dpacmen/patch-2
add precision_root_algorithm
2017-10-03 14:48:57 +05:30
4d6e69dec6 Merge pull request #126 from dpacmen/patch-1
add FibToN
2017-10-03 14:48:35 +05:30
dfe5943f57 Merge pull request #130 from Pusty/master
Added crc32 implementation
2017-10-03 14:48:13 +05:30
ae7edb4c08 Merge pull request #135 from OskarEn/master
Create GCD.java
2017-10-03 14:47:19 +05:30
edde956625 Create GCD.java 2017-10-03 10:02:42 +02:00
9b4ae39291 updated
added comments and changed variable names for better understanding
2017-10-03 13:25:06 +05:30
32d03516fe update
added comments and variable names are more simpler now
2017-10-03 13:12:50 +05:30
79e2eb2826 Removed unrequired Package 2017-10-03 12:38:23 +05:30
0afa2da3ce rename
.java extension added
2017-10-03 08:32:14 +05:30
b7a9d0de44 rename 2017-10-03 08:28:04 +05:30
db7300f191 fixed a small mistake 2017-10-03 04:27:09 +02:00
f2bfa6a1be crc32 implementation 2017-10-03 03:57:28 +02:00
7df4e980c4 Merge pull request #124 from lvncnt/master
add KMP algorithm; improve binary search
2017-10-03 00:05:27 +05:30
ae1982e3ac Merge pull request #106 from OskarEn/master
Create Abecedarian.java
2017-10-02 23:58:42 +05:30
355d4c1fee added precision_root_algo 2017-10-02 13:00:39 +05:30
12b86774ad add FibToN
print all fibonacci till N in O(n)
2017-10-02 12:53:43 +05:30
79a73aebb4 KMP algorithm 2017-10-01 17:45:16 -06:00
e7f35ab8df Postfix Notation using Stack
Note- Give input in the form like "1 21 + 45 13 + *"
#96
2017-10-02 00:42:20 +05:30