Min Heap and Max Heap in Java.In this post we will see what is Min Heap, Max Heap, the operation it supports and the time and space complexity of each operation.Complete Binary Tree.
Min Heap and Max Heap uses the concept of Complete Binary Tree.A...
Home
»
Archives for July 2021
Find the angle between the hour and minute hands in Java
in
Interviews
- on 13:05:00
- No comments
Find the angle between the hour and minute hands on an analog clock.Given the time, calculate the smaller angle between the hour and minute hands on an analog clock in Java.Java Program to find angle between hour and minute hand.
In 60 mins, clock...
Visitor Design Pattern real world example in Java
in
Design Pattern
- on 00:20:00
- No comments

Visitor Design Pattern real world example in JavaIn this post we will see when to use visitor design pattern and the real life example of visitor design pattern in Java.Scenario for understanding Visitor Design Pattern. Consider a scenario below,You...