Java2Blog
  • Home
  • Core Java
  • Tutorials
    • Spring
    • Spring Boot
    • Spring MVC
    • Java 8
    • Hibernate
  • Categories
    • Spring Frameworks
    • Core java
    • Python
  • Tech Jobs
  • NM
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

Binary Tree

  • Algorithm Binary Tree
    17 November

    Lowest Common Ancestor (LCA) for n-ary Tree

    If you want to practice data structure and algorithm programs, you can go through Java coding interview questions. In this post, we will see about Lowest Common Ancestor for n-ary Tree. Problem Given a n-ary tree also known as a Generic Tree and also two nodes. You need to find the Lowest common ancestor of the […]

    Read More
  • Algorithm Binary Search Tree Binary Tree Data Structure
    16 September

    Check if a binary tree is binary search tree or not 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 check if given binary tree is binary search tree or not. This is one of important interview questions on binary tree. We will see two approaches to check if […]

    Read More
  • Algorithm Binary Search Tree Binary Tree Data Structure
    16 April

    Delete a node from 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 delete a node from binary search tree. There are two parts to it. Search the node After searching that node, delete the node. There are three cases which we […]

    Read More
  • Algorithm Algorithm Interview Binary Tree
    29 January

    Count subtrees with Sum equal to target in binary tree

    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 about how to count subtrees with Sum equal to target in binary tree Problem Given a Binary tree and an integer. You need to find the number of subtrees having the […]

    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 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. This is 11th part of java binary tree tutorial. Java Binary tree tutorial: Binary tree in java Binary tree preorder traversal Binary tree postorder traversal Binary tree inorder traversal Binary tree level order traversal Binary tree spiral […]

    Read More
  • Algorithm Binary Tree Data Structure
    06 November

    Vertical sum 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 10th part of java binary tree tutorial. In this post, we will see how to print vertical sum of binary tree nodes in java. Below diagram will show vertical sum for binary tree. Algorithm: Steps […]

    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. This is 11th part of java binary tree tutorial. In this post, we will see about program to find maximum element  in a binary tree in java. There can be two solutions for it. Recursive Iterative Recursive […]

    Read More
  • 1
  • 2
  • 3
  • Nextkeyboard_arrow_right

Newsletter


Let’s be Friends

  • Facebook
  • Twitter
  • LinkedIn

© 2020 Java2Blog