Java
Java copied to clipboard
All Algorithms implemented in Java
First approach (5): Here, I have used a HashMap and once the element is found in s frequency have increased by 1 and when found in frequency have decreased by...
heapsort() method gives an error when size < capacity. I want to fix this algorithm.
### **Describe your change:** Fixes https://github.com/TheAlgorithms/Java/issues/3515 - Fix a bug in the algorithm heapsort() in the MinPriorityQueue.java of com.thealgorithms.datastructures.heaps package. heapsort() method gave an error when size < capacity. Also...
An example can be found [here](https://github.com/TheAlgorithms/Go/pull/581#pullrequestreview-1152223321)
### **Describe your change:** - [x] Add an algorithm? - [ ] Fix a bug or typo in an existing algorithm? - [x] Documentation change? #### References ### **Checklist:** -...
### **Describe your change:** - [x] Add an algorithm? - [ ] Fix a bug or typo in an existing algorithm? - [ ] Documentation change? #### References ### **Checklist:**...
### **Describe your change:** - Implementation of a stack data structure using 2 queues . #### References ### **Checklist:** - [x] I have read [CONTRIBUTING.md](https://github.com/TheAlgorithms/Java/blob/master/CONTRIBUTING.md). - [x] This pull request...
### **Describe your change:** - [ ] Add an algorithm? - [ ] Fix a bug or typo in an existing algorithm? - [ ] Documentation change? #### References ###...
### **Describe your change:** - Equal Sum Partition #### References ### **Checklist:** - [x] I have read [CONTRIBUTING.md](https://github.com/TheAlgorithms/Java/blob/master/CONTRIBUTING.md). - [x] This pull request is all my own work -- I...
- Fix one bug; sorting doesn't work for empty array. - Add test cases for Radix_sort. - [x] This pull request is all my own work -- I have not...