Commit Graph

8 Commits (0c2a362b1fdb4141694cffe5910ab87a9bd84cca)

Author SHA1 Message Date
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
Mohit Chakraverty 7fabd6432d
chore(Java): add square root using binary search (#826) 2022-09-04 20:55:17 -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 fb5ab3cf65
chore(Java): add random node in linked list (#641) 2021-11-29 08:41:33 -04:00
Suraj Kumar Modi 61f2f2323d
chore(Java): add nth geek-onacci number (#608) 2021-10-20 14:59:07 -04:00
Muhammed Sabah d04debeffb
chore(Java): add Catalan Numbers and Priority queue (#577) 2021-10-17 14:37:27 -04:00
Jayant Goel bd71d9d805
chore(Java): add factorial of a number using Big Integer (#339) 2021-06-07 08:54:20 -04:00