DSA/algorithms/Java
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
..
Maths added new algo. into : algorithms/java/Maths dir.. 2022-10-03 09:57:00 +05:30
arrays chore(Java): add merge without extra space for two array (#592) 2021-10-19 09:10:00 -04:00
backtracking chore(Java): add target-sum-subsets problem (#687) 2022-02-07 10:58:35 -04:00
bit-manipulation chore(Java): add Count Set Bits (#600) 2021-10-20 07:01:53 -04:00
graphs Algorithms Documentation [Java] 2021-04-17 02:49:56 +02:00
linked-lists chore(Java): add fold-linked-list (#266) 2021-04-28 09:56:17 -04:00
queues chore(Java): add priority queue array (#575) 2021-10-14 08:51:33 -04:00
recursion chore(Java): add recursion algorithms (#636) 2021-11-20 10:12:57 -04:00
scheduling Algorithms Documentation [Java] 2021-04-17 02:49:56 +02:00
searching chore(Java) : add ternery search (#850) 2022-10-01 02:37:07 +05:30
sorting chore(Java): add cyclic sort algo (#442) 2021-09-06 11:40:52 -04:00
stacks chore(Java): add next greater element (#833) 2022-09-11 19:02:36 +05:30
strings chore(Java): add isomorphic strings (#828) 2022-09-04 15:08:24 +05:30
trees chore(Java): add left leaf sum binary tree (#839) 2022-09-14 16:44:31 -04:00
README.md chore(Java) : add roman numerals conversion (#849) 2022-10-01 02:41:58 +05:30

README.md

Java

Arrays

Graphs

Linked Lists

Maths

Queues

Scheduling

Searching

Sorting

Stacks

Strings

Trees

Backtracking

Bit Manipulation

Recursion