Min Heap and Max Heap in Java

Min Heap and Max Heap in Java
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...

Find the angle between the hour and minute hands in Java

Find the angle between the hour and minute hands in Java
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

Visitor Design Pattern real world example in Java
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...
Page 1 of 2812345...28Next »