Showing posts from July, 2016

Implement Max Heap and Min heap in Java

Problem statement :- Implement Max and Min heap. Display elements in Ascending and Descending order. i.e: Max heap will display elements in Descending order and Min heap display elements in Ascending order. A min-heap is a binary tree such that - 1…

Longest Common Subsequence in Java

Problem : Given two sequences, find the longest subsequence present in both of them. A subsequence is a sequence that appears in the same relative order, but not necessarily contiguous.(Reference GeekForGeeks ). LCS for input Sequences “ABCDGH” and “…

Load More
That is All