Algorithm Interview
- 13 April
Boundary traversal of binary tree in java
If you want to practice data structure and algorithm programs, you can go through 100+ java coding interview questions. In this post, we will see boundary traversal of binary tree in java. Lets understand boundary traversal of binary tree with example: If you look closely to above diagram, boundary traversals can be divided into three essential […]
- 01 April
How to check if linked list is palindrome in java
In this post, we will see how to check if linked list is palindrome or not. Java Linked List Interview Programs: How to reverse a linked list in java How to reverse a linked list in pairs in java How to find middle element of linked list in java How to detect a loop in […]
- 01 April
Java program to reverse linked list in pairs
If you want to practice data structure and algorithm programs, you can go through data structure and algorithm interview questions. This is one of popular interview question. In this post, we will see how to reverse linked list in pairs. Java Linked List Interview Programs: How to reverse a linked list in java How to reverse […]
- 06 February
Find start node of loop in linkedlist in java
If you want to practice data structure and algorithm programs, you can go through data structure and algorithm interview questions. In this post, we will see how to find start node of loop in linkedlist in java. We have already seen how to detect a loop in linkedlist in java. This is extension of that post. […]
- 09 December
insertion sort in java
If you want to practice data structure and algorithm programs, you can go through data structure and algorithm interview programs. In this post, we will see how to implement insertion sort in java. Insertion sort is very much similar to bubble sort. Insertion sort Algorithm Insertion sort works by comparing values at index with all its […]
- 08 December
Bubble sort in java
If you want to practice data structure and algorithm programs, you can go through data structure and algorithm interview questions. In this post, we will see how to implement Bubble sort in java. Bubble sort is also known as sinking sort.Bubble sort is a comparison based sorting algorithm and is very easy to implement. Bubble sort […]
- 07 December
Merge sort in java
If you want to practice data structure and algorithm programs, you can go through data structure and algorithm interview questions. Merge sort is divide and conquer sorting algorithm. It is efficient, comparison based sorting algorithm. Merge sort Algorithm It works on below principle: Divide list into sublist of about half size in each iteration until each […]
- 17 November
Get Level of A Node in Binary Tree in Java
If you want to practice data structure and algorithm programs, you can go through 100+ java coding interview questions. 1. Overview In this article, we will explore how to get the level of node in a binary tree in Java using recursive and iterative solutions. 2. Introduction to Problem Statement We will search for a node […]
- 12 November
Add two numbers represented by Linked List in java
If you want to practice data structure and algorithm programs, you can go through data structure and algorithm interview questions. Java Linked List Interview Programs: How to reverse a linked list in java How to reverse a linked list in pairs in java How to find middle element of linked list in java How to detect […]