Interview
- 15 July
Binary Tree PreOrder Traversal in Java
If you want to practice data structure and algorithm programs, you can go through top 100+ data structure and algorithm interview questions. 1. Introduction In this article, we will explore the concept of InOrder traversal in binary trees, focusing on its implementation in Java. In computer science, a binary tree is a foundational data structure, and […]
- 11 July
Difference between sleep and wait in java
One of the common interview question is “What is difference between sleep and wait in java”.Before we actually see differences,let me give you brief introduction of both. sleep It causes current executing thread to sleep for specific amount of time. Its accuracy depends on system timers and schedulers. It keeps the monitors it has acquired, […]
- 09 July
Palindrome program in java
In this article, we will see how to implement palindrome program in java. A palindrome is a word, phrase, number, or other sequence of symbols or elements that reads the same forward or reversed. For example: 12121 is palindrome as it reads same forward or reversed. madam is also a palindrome . This is very […]
- 09 July
java program to check prime number
This is easy question. It may not be asked you directly, but you can use this program to create many other complex program. A prime number is a natural number greater than 1 that has no positive divisors other than 1 and itself. Program logic: If any number which is not divisible by any other […]
- 07 July
Reverse a linked list 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 reverse a linked list in java. This is one of popular interview question. Java Linked List Interview Programs: How to reverse a linked list in pairs How to […]
- 06 July
Find nth element from end of linked list
This is one of popular interview question. Java Linked List Interview Programs: How to reverse a linked list in java How to reverse a linked list in pairs How to find middle element of linked list in java How to detect a loop in linked list in java Find start node of loop in linkedlist […]
- 06 July
Find middle element of a linked list in java
If you want to practice data structure and algorithm programs, you can go through data structure and algorithm interview questions. This is one of the popular interview question. In this post, we will discuss how to find middle element in linkedlist in most efficient way. Java Linked List Interview Programs: How to reverse a linked list […]
- 05 July
How to detect loop in a linked list in java with example
If you want to practice data structure and algorithm programs, you can go through data structure and algorithm interview questions. One of the most popular interview question nowadays is “How to detect loop/cycle in LinkedList”. So I thought I should cover this question. This question is more related to data structure. You can also find start […]
- 19 June
Difference between Abstract Class and Interface in java
Some of the popular interview questions are “What are differences between abstract class and interface“. “When will you use abstract class and when will you use interface“. So in this article ,we will go through this topic. Before going through differences between them, Lets go through its introduction. Abstract class Abstract classes are created to […]