Method overriding rules Java
Parameters that need to consider in method overriding is,
What is Method Overriding?
In case of Inheritance, where Parent-child relationship exist,
Parent class define a method say connect() which does connection...
Home
»
Archives for August 2016
Find the number of Islands using DFS.
in
Interviews
- on 01:52:00
- No comments

Count total number of Islands ORThe "Island Count" Problem
Given a Ocean in a form of 2D matrix as shown below in which there are few Island present
(or may not be present).
In a matrix given above, which has only two values ‘1’ and ‘0’.
1...
Find the number of Islands
in
Interviews,
Miscellaneous
- on 06:22:00
- No comments

Count number of islands where every island is row-wise and column-wise separated
Count total number of islands present in given matrix where every island is separated row-wise and column-wise.
Given a rectangular matrix which has only two values...
Stock Buy Sell to Maximize Profit
in
Interviews,
Miscellaneous
- on 14:38:00
- No comments
Maximum difference between two elements such that larger element appears after the smaller number. ORStock Buy Sell to Maximize Profit.
We are given an array of N integers representing Stock Prices on a single day. Find maximum profit that can be...
The Skyline Problem
in
Interviews,
Miscellaneous
- on 12:02:00
- No comments

Skyline Problem In Java.
A city's skyline is the outer contour of the silhouette formed by all the buildings in that city when viewed from a distance.
Now suppose you are given the locations and height of all the buildings as shown on a cityscape...