Algorithms Reverse a Queue using another Queue In this article, we will explore how to reverse a Queue using another Queue.
Data Structures Sort a stack using another stack In this article, we have explored an algorithm to sort a stack using another stack that is by using stack operations like push and pop only. The time complexity of this approach is O(N^2) and space complexity is O(N).
Software Engineering Multiple Inheritance in Java (using Interface) Java is an Object Oriented Programming language and supports the feature of inheritance. We cannot have Multiple Inheritance in Java directly due to Diamond Problem but it can be implemented using Interfaces.