Devesh Mehara
5fbf6934f7
added new algo. into : algorithms/java/Maths dir..
...
For a given number N check if it is prime or not. A prime number is a number which is only divisible by 1 and itself.
Example 1:
Input:
N = 5
Output:
1
Explanation:
5 has 2 factors 1 and 5 only.
PR Checklist:
My submission is formatted according to the guidelines in the contributing guide
My addition is on refer on the language README.md file
My addition does not have a spelling problem
My submission has a proper and user-friendly description of the algorithm
My submission has the time complexity of the algorithm
My submission has sample input-output of the program (NOT FOR PYTHON)
What kind of change does this PR introduce? (check at least one)
Bugfix
New algorithm
Optimization in previous algorithms
Code style update
Refactor
Documentation
Other, please describe:
Briefly describe the changes in this PR
code added for longest palindromic substring
2022-10-03 09:57:00 +05:30
Vivi Koutsoumanidou
62907b69ec
chore(Java) : add roman numerals conversion ( #849 )
...
* Add Roman Numerals Conversion
* roman numerals conversion, expanded description
* roman numerals conversion, expanded description
2022-10-01 02:41:58 +05:30
Vishnu Rai
b4cd97f55a
chore(Java) : add ternery search ( #850 )
...
* Add Ternery-search in java
* Updated Ternery Search
Added Time compleities and iterative method of the ternery search.
* Updated Ternery-Search
* Updated Ternery Search
Updated Again.
2022-10-01 02:37:07 +05:30
Chris Morin
368ec2e1db
fix (Java): random node of a binary tree link ( #841 )
...
Co-authored-by: Ming Tsai <37890026+ming-tsai@users.noreply.github.com>
2022-09-14 16:48:19 -04:00
Hemant Sharma
eb3d410c09
chore(Java): add left leaf sum binary tree ( #839 )
2022-09-14 16:44:31 -04:00
Ishantgarg-web
a5ae1dc091
chore(Java): add next greater element ( #833 )
...
* chore(Java): added Next Greater Element
* Update Next_Greater_Element.java file
2022-09-11 19:02:36 +05:30
Mohit Chakraverty
7fabd6432d
chore(Java): add square root using binary search ( #826 )
2022-09-04 20:55:17 -04:00
Ishantgarg-web
7dc2c928f7
chore(Java): add isomorphic strings ( #828 )
...
* chore(Java): added isomorphic strings
* added Time and space complexity
* update algorithms/Java/README.md
* update algorithms/Java/README.md file
* spelling Correct README.md file
2022-09-04 15:08:24 +05:30
Mohit Chakraverty
6e39b2bc60
enh(Java): binary search ( #800 )
...
* add Cycle-Sort.md
* corrected documentation
* add Cycle-Sort.md
* Fixed the broken link
* Added the file index for Cycle-Sort
* Fixed typo
* created new file for iterative binary search
* created binary-search.java
2022-08-17 11:20:07 -04:00
Rakshit Gondwal
bfcae851a0
enh(Java): add comments for binary search ( #776 )
...
Improved the code by adding the explanation of using (l + (r - l)) rather than using (l - r) while searching for the mid element.
2022-07-19 19:11:47 -04:00
Radhika Bansal
23595e9524
chore(Java): add target-sum-subsets problem ( #687 )
2022-02-07 10:58:35 -04:00
B Jagdish Reddy
676d1257e5
chore(Java): added fibonacci using matrix exponentiation ( #540 )
...
Co-authored-by: Ming Tsai <37890026+ming-tsai@users.noreply.github.com>
2022-01-17 14:29:19 -04:00
Suraj Kumar
2f056c5378
chore(Java): add random node in a binary tree ( #659 )
2022-01-05 09:23:09 -04:00
Suraj Kumar
fb5ab3cf65
chore(Java): add random node in linked list ( #641 )
2021-11-29 08:41:33 -04:00
Samruddhi Ghodake
51f7882701
chore(Java): add recursion algorithms ( #636 )
2021-11-20 10:12:57 -04:00
Chandana Akriti
25b0c63a8e
chore(Java): add finding min value on stack ( #622 )
2021-11-16 14:44:30 -04:00
Suraj Kumar Modi
787b2e9371
chore(Java): add check tree traversal ( #609 )
2021-10-25 09:23:35 -04:00
Shyam-12
998be025fa
chore(C): add circular queue ( #599 )
...
Co-authored-by: Ming Tsai <37890026+ming-tsai@users.noreply.github.com>
2021-10-25 08:49:58 -04:00
Suraj Kumar Modi
61f2f2323d
chore(Java): add nth geek-onacci number ( #608 )
2021-10-20 14:59:07 -04:00
Shyam-12
37f29504a3
chore(Java): add reverse string ( #591 )
2021-10-20 10:56:54 -04:00
Suraj Kumar Modi
df69cbbfb3
chore(Java): add Count Set Bits ( #600 )
2021-10-20 07:01:53 -04:00
Elena Mokeeva
3c973a8a52
chore(Java): add first non repeating character ( #596 )
2021-10-19 13:54:43 -04:00
Elena Mokeeva
72834f7a3a
chore(Java): add Min Heap ( #576 )
...
Co-authored-by: Ming Tsai <37890026+ming-tsai@users.noreply.github.com>
2021-10-19 09:18:08 -04:00
Suraj Kumar Modi
d4b94e4b27
chore(Java): add merge without extra space for two array ( #592 )
2021-10-19 09:10:00 -04:00
Suraj Kumar Modi
18a0ddb00c
chore(Java): add ugly-number ( #572 )
...
Co-authored-by: Ming Tsai <37890026+ming-tsai@users.noreply.github.com>
2021-10-18 10:52:09 -04:00
Muhammed Sabah
d04debeffb
chore(Java): add Catalan Numbers and Priority queue ( #577 )
2021-10-17 14:37:27 -04:00
Abiha Fatima
dcc53ee9e0
chore(Java): add N Queen Problem ( #570 )
2021-10-17 14:34:36 -04:00
Muhammed Sabah
72317205b9
chore(Java): add priority queue array ( #575 )
2021-10-14 08:51:33 -04:00
Ming Tsai
e08d853601
docs: replace ordered lists to unordered lists ( #551 )
2021-10-09 11:06:25 -04:00
Madhan Murugan
745fa3d92d
chore(Java): added longest common substring ( #509 )
...
Co-authored-by: Ming Tsai <37890026+ming-tsai@users.noreply.github.com>
2021-10-07 14:49:30 -04:00
Madhan Murugan
a012b6568f
chore(Java): added exponential search ( #523 )
...
Co-authored-by: Ming Tsai <37890026+ming-tsai@users.noreply.github.com>
2021-10-07 14:16:13 -04:00
Madhan Murugan
1e8175ca1f
chore(Java): added boyer moore search ( #511 )
2021-10-06 11:28:53 -04:00
Madhan Murugan
ea76010d17
chore(Java): added interpolation search ( #522 )
2021-10-06 08:58:10 -04:00
Ashwin Nair
effe802f8c
chore(Java): add cyclic sort algo ( #442 )
2021-09-06 11:40:52 -04:00
Ashwin S. Nair
5e9c247cc0
chore(Java): added anagram ( #407 )
2021-08-03 08:30:57 -04:00
Aayush
7d4045769e
chore(Java): add trapped rain water ( #367 )
2021-06-24 08:18:22 -04:00
Aayush
ca33830b3a
chore(Java): add k-th element of 2 sorted arrays ( #366 )
2021-06-22 12:17:02 -04:00
Aayush
595992b77a
chore(java): add longest consecutive subsequence ( #356 )
2021-06-14 14:49:11 -04:00
Aayush
c3b77367a1
chore(java): add majority element ( #354 )
2021-06-13 05:06:53 -04:00
Jayant Goel
bd71d9d805
chore(Java): add factorial of a number using Big Integer ( #339 )
2021-06-07 08:54:20 -04:00
Shivam Gupta
12138da6cb
enh(Java): more optimized way of bubble-sort ( #321 )
2021-05-24 08:24:21 -04:00
Aayush
70efa6fbfc
chore(Java): Zig-Zag Traversal of a Tree ( #319 )
2021-05-21 13:32:11 -04:00
Aayush
e3a9c61fe4
chore(Java): Right view of tree ( #315 )
2021-05-18 20:58:30 -04:00
Aayush
7663f38c6a
chore(java): left view of a tree ( #305 )
...
* Clone linked list with random pointer
* addition in reviewers list
* Queues in Java
* Allocate Min Pages
* Left view of tree
* typo fixed
* Added more comments
* typo fixed
* indentation fixed
2021-05-17 06:40:17 -04:00
priyanshu jain
e40e475d15
chore(Java): add celebrity problem and sliding window maximum ( #281 )
2021-05-05 12:36:49 -04:00
Kartick Gulati
194316cb60
chore(Java): add fold-linked-list ( #266 )
2021-04-28 09:56:17 -04:00
Vasu Manhas
190d51583c
chore(Java): add shell sort ( #262 )
2021-04-26 11:00:44 -04:00
Aayush Jain
32614a5956
chore: allocate minimum number of pages ( #252 )
2021-04-23 00:41:02 -04:00
Ming Tsai
8ca052d2c7
fix: files naming and remove unncessary index
2021-04-17 21:45:05 -04:00
Toihir Halim
76bbb1a443
fix: dead links in stacks folder ( #223 )
...
* fix dead links in stacks folder
* fix typos
2021-04-17 21:37:35 -04:00