Java2Blog
  • Home
  • Core Java
  • Tutorials
    • Spring
    • Spring Boot
    • Spring MVC
    • Java 8
    • Hibernate
  • Categories
    • Interview Questions
    • Spring Frameworks
    • Core java
    • Python
    • C++
close
import_contacts

Java Tutorials

  • Core Java
  • Java Interview questions
  • Java 8 Stream
  • Java interview programs
import_contacts

Data structure and algorithm

  • Data structure in java
  • Data structure interview questions
import_contacts

Spring tutorials

  • Spring tutorial
  • Spring boot tutorial
  • Spring MVC tutorial
  • Spring interview questions

Algorithm

  • Algorithm Interview Binary Search Tree
    15 April

    Find minimum and maximum elements in binary search 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 how to find minimum and maximum elements in binary search tree. Finding minimum element: Minimum element is nothing but leftmost node in binary search tree, so traverse left until you get […]

    Read More
  • Algorithm Interview Binary Search Tree
    14 April

    Lowest Common Ancestor (LCA) of binary search 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 how to find lowest common ancestor(LCA) of two nodes in binary search tree. We have already seen how to find LCA in binary tree. It is much simple than that. Lets […]

    Read More
  • Algorithm Interview Binary Tree
    14 April

    Lowest Common Ancestor (LCA) 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 how to find lowest common ancestor(LCA) of two nodes in binary tree. Lets understand with example. As you can see here, LCA is nothing but lowest common parent of two nodes. […]

    Read More
  • Algorithm Interview Binary Tree
    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 […]

    Read More
  • Algorithm Binary Tree Data Structure
    07 April

    Reverse level order 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. This is part of java binary tree tutorial. In this post, we will see about Reverse Level Order binary tree traversal in java. In previous post, we have already seen Level order traversal. In reverse level order […]

    Read More
  • Algorithm Binary Tree Data Structure
    07 April

    Find Maximum Element 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 find the maximum element in a binary tree in Java using recursive and iterative solutions. 2. Introduction to Problem Statement Given a binary tree as below: Maximum […]

    Read More
  • Algorithm Data Structure Graph traversals
    27 December

    Depth First Search in java

    If you want to practice data structure and algorithm programs, you can go through 100+ java coding interview questions. In previous post, we have seen breadth-first search(bfs). In this post, we will see how to implement depth-first search(DFS) in java. Graph traversal Algorithms Breadth first search in java Depth first search in java In DFS,  You […]

    Read More
  • Algorithm Data Structure Graph traversals
    27 December

    Breadth first search in java

    If you want to practice data structure and algorithm programs, you can go through 100+ java coding interview questions. We have already seen about breadth first search in level order traversal of binary tree. Graph traversal Algorithms: Breadth first search in java Depth first search in java Breadth first search is graph traversal algorithm. In this […]

    Read More
  • Algorithm Interview Binary Tree
    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 […]

    Read More
  • keyboard_arrow_left Previous
  • 1
  • …
  • 6
  • 7
  • 8
  • 9
  • 10
  • Nextkeyboard_arrow_right

Newsletter


Let’s be Friends

  • Facebook
  • Twitter
  • LinkedIn

© 2020-22 Java2Blog Privacy Policy