DSA/algorithms
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
..
C chore(C): add bogo sort algorithm (#829) 2022-09-06 18:31:56 +05:00
CPlusPlus chore(CPlusPlus): add n-queens backtracking algorithm (#812) 2022-09-28 18:14:20 -04:00
CSharp chore(CSharp): add quick sort (#798) 2022-08-12 08:39:22 -04:00
Go enh(Go): import the string package on anagram (#838) 2022-09-11 20:44:32 -04:00
Haskell docs: replace ordered lists to unordered lists (#551) 2021-10-09 11:06:25 -04:00
Java added new algo. into : algorithms/java/Maths dir.. 2022-10-03 09:57:00 +05:30
JavaScript chore(JavaScript): add max heap (#842) 2022-09-24 21:47:06 -04:00
Python chore(Python): add find all permutations (#831) 2022-09-06 23:45:28 +05:30
Rust docs: replace ordered lists to unordered lists (#551) 2021-10-09 11:06:25 -04:00