Find Factorial of Number. ORJava Program to Find Factorial of Number. ORRecursive Program to find Factorial of Number.
A factorial is a function that multiplies a number by every number below it.
Factorial of 5
5! = 5 * 4 * 3 * 2 * 1 = 120.
Factorial...
Home
»
Archives for December 2016
Print Matrix Diagonally OR Diagonal order of Matrix.
in
Algorithm,
Datastructure,
Interviews,
Matrix
- on 08:50:00
- No comments

Print Matrix Diagonally. ORLoop diagonally through two dimensional array. ORTraverse an array diagonally. ORPrint elements of Matrix in Diagonal order.
Given a Matrix / 2D array, Print all elements of Matrix in Diagonal order.
Lets understand Diagonal...
Find a Saddle point in Matrix
in
Algorithm,
Datastructure,
Interviews,
Matrix
- on 13:39:00
- No comments

Find Saddle point in a matrix
Given a matrix of n x n size, Find saddle point of matrix.
What is Saddle point of Matrix?
Element is said to be Saddle point of Matrix if it is both a minimum of its row and a maximum of its column or vice versa....
Print nodes at K distance from Leaf node in Binary tree.
in
Algorithm,
Binary Search Tree,
Binary Tree,
Datastructure,
Interviews
- on 13:15:00
- No comments

Print nodes at K distance from Leaf in binary tree. ORPrint all nodes that are at distance k from a leaf node.
Given a Binary Tree, Print all Nodes that are at K distance from leaf node in Binary Tree.
Lets understand what will be input and expected...