JavaByPatel: Data structures and algorithms interview questions in Java

Technical blog and complete tutorial on popular company interview questions with detailed solution and Java program on Data structure, Algorithms, Time and space complexity, Core Java, Advanced Java, Design pattern, Database, Recursion, Backtracking, Binary Tree, Linked list, Stack, Queue, String, Arrays etc asked in companies like Google, Amazon, Microsoft, Facebook, Apple etc. for beginners and professionals.

Tuesday, 31 January 2017

Count number of Bits to be flipped to convert A to B

›
Count number of bits to be flipped to convert A to B. OR Find number of Bit swaps required to convert one integer to another OR Given two ...
Sunday, 29 January 2017

Count number of Set Bits in Integer

›
Count set bits in Integer OR Count number bits set in an Integer OR Count number of ones in Binary. We need to write an algorithm to det...
Monday, 12 December 2016

Factorial of Number using Recursion in Java

›
Find Factorial of Number. OR Java Program to Find Factorial of Number. OR Recursive Program to find Factorial of Number. A factorial is ...
Sunday, 11 December 2016

Print Matrix Diagonally OR Diagonal order of Matrix.

›
Print Matrix Diagonally. OR Loop diagonally through two dimensional array. OR Traverse an array diagonally. OR Print elements of Matrix in...
Saturday, 3 December 2016

Find a Saddle point in Matrix

›
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 s...
Friday, 2 December 2016

Print nodes at K distance from Leaf node in Binary tree.

›
Print nodes at K distance from Leaf in binary tree. OR Print all nodes that are at distance k from a leaf node. Given a Binary Tree, Pri...
Wednesday, 30 November 2016

Print Nodes at K distance from Root in Binary Tree

›
Print nodes at K distance from root in binary tree. OR Print nodes at Level K. Given a Binary Tree, Print all Nodes that are at K distan...
Tuesday, 29 November 2016

Rotate matrix by 90 degree

›
Rotate matrix by 90 degree OR Turn an 2D array by 90 degree OR Rotate a two dimensional array OR Given N*M matrix, rotate it by 90 degr...
Monday, 28 November 2016

Rotate Matrix by 90 degrees clockwise Inplace

›
Rotate square matrix by 90 degrees Inplace OR Turn an 2D array by 90 degree OR Rotate a two dimensional array OR Given N*N matrix, rotat...
Thursday, 24 November 2016

Print Matrix in Spiral order using Recursion.

›
Print Matrix in Spiral order OR Given m*n matrix(m rows, n columns), print all elements of the matrix in spiral order OR Print two-dimens...
‹
›
Home
View web version
Powered by Blogger.