Java
Java copied to clipboard
All Algorithms implemented in Java
Added a third way of reversing a string, which reduces the time complexity of the code. ### **Describe your change:** - [x] Add an algorithm? - [x] Fix a bug...
This algorithm takes input the binary number in 'String' data type, where there's no range limit. It works with decimal numbers as well. It works with both positive and negative...
This algorithm takes input the binary number in 'String' data type, where there's no range limit. It works with fractional numbers(in points) as well. It works with both positive and...
This algorithm takes input the binary number in 'String' data type, where there's no range limit. It works with fractional numbers(in points) as well. It works with both positive and...
### **Describe your change:** 1. Current implementation of Insertion sort is not the classic one, which is described here - [wikipedia](https://en.wikipedia.org/wiki/Insertion_sort) 2. Add additional function `sentinelSort` which is the modification...
Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.
**Is your feature request related to a problem? Please describe.** I would like to contribute a solution to the [Min Stack](https://leetcode.com/problems/min-stack/) problem **Describe the solution you'd like** I would basically...
Solved issue Number #3348
### **Describe your change:** - [ ] Add an algorithm? - [ ] Fix a bug or typo in an existing algorithm? - [ ] Documentation change? #### References ###...
### **Describe your change:** - [✅] Add an algorithm? - [ ] Fix a bug or typo in an existing algorithm? - [ ] Documentation change? ### **Checklist:** - [✅]...
### **Describe your change:** - [ ] Add an algorithm? - [x] Fix a bug or typo in an existing algorithm? - [ ] Documentation change? #### References ### **Checklist:**...