Skip to content

PrepBytes Blog

ONE-STOP RESOURCE FOR EVERYTHING RELATED TO CODING

Menu
  • Language
    • C
    • C++
    • Java
    • Javascript
    • Python
  • Data Structure
    • Array
    • Graphs
    • Heap
    • Linked List
    • Segment Tree
    • Stack
    • Trees
    • Queue
  • Algorithm
    • Backtracking
    • Dynamic Programming
    • Greedy Algorithm
    • Searching
    • Sorting
  • CSE Subjects
    • Operating System
  • Company Placement
  • Interview
    • Interview Tips
    • General Interview Questions
    • Algorithms
    • Data Structure
    • Languages
    • Other Topics
  • Competitive
    • Data Structure
      • Array
      • Graph
      • Heap
      • Segment Tree
      • Stack
      • Queue
      • Tree
      • Tries
    • Algorithm
      • Backtracking
      • Dynamic Programming
      • Greedy Algorithm
      • Searching
      • Sorting
    • Other Topics
      • Computational Geometry
      • Game Theory
      • Maths
      • Pointers
      • Recursion
      • String
  • Others
    • Computational Geometry
    • Game Theory
    • Hashing
    • Maths
    • Pointers
    • Recursion
    • String

Category: Trees Interview Questions

Trees Interview Questions

Min Query

HarshJuly 27, 2020April 8, 2022
Concepts Used Segment Trees Difficulty Level Easy Problem Statement : Given an array of N elements and Q queries. In each query he is given two values l, r. We...
Trees Interview Questions

Plagiarism Test

HarshJune 22, 2020March 30, 2022
Concepts Used BFS , Recursion Difficulty Level Easy Problem Statement : Given a binary tree, and a node X, we have to sum all the nodes except the node X....
Trees Interview Questions

Check SumTree

HarshJune 12, 2020March 28, 2022
Concepts Used DFS , Recursion Difficulty Level Hard Problem Statement : "A SumTree is a Binary Tree where the value of a node is equal to sum of the nodes...
Trees Interview Questions

Valid Binary Search Tree

HarshJune 11, 2020March 23, 2022
Concepts Used DFS , Recursion Difficulty Level Medium Problem Statement : Given a binary tree, determine if it is a valid binary search tree (BST). See original problem statement here...
Trees Interview Questions

Convert SumTree

HarshJune 11, 2020March 28, 2022
Concepts Used DFS , Recursion Difficulty Level Medium Problem Statement : Given a binary tree and the task is to convert that tree into SumTree. See original problem statement here...
Trees Interview Questions

Mirror Reflection

HarshJune 11, 2020March 30, 2022
Concepts Used DFS , Recursion Difficulty Level Medium Problem Statement : Given two binary trees, we need to find whether one tree in the pair is the mirror image of...
Trees Interview Questions

Maximum Turns

HarshJune 11, 2020March 23, 2022
Concepts Used DFS , Recursion Difficulty Level Hard Problem Statement : Given a binary tree, find the path length having maximum number of bends. See original problem statement here Solution...
Trees Interview Questions

LevelOrder Traversal

HarshJune 11, 2020March 29, 2022
Concepts Used BFS , Queue Difficulty Level Easy Problem Statement : Given a binary tree, our task is to print the level order traversal of the tree. See original problem...
Trees Interview Questions

Ancestors

HarshJune 11, 2020March 28, 2022
Concepts Used DFS , Recursion Difficulty Level Medium Problem Statement : "Lowest common ancestor of two node n1 and n2 is the lowest node in the tree that has both...
Trees Interview Questions

Inorder Traversal

HarshJune 11, 2020March 28, 2022
Concepts Used DFS , Recursion, Stack Difficulty Level Easy Problem Statement : Given a binary tree, our task is to print the inorder traversal of the tree. See original problem...
Trees Interview Questions

Height of Tree

HarshJune 11, 2020March 23, 2022
Concepts Used BFS , Recursion Difficulty Level Easy Problem Statement : Given a binary tree, our task is to print the height of the tree. Consider root node height as...
Trees Interview Questions

Maximum Distinct

HarshJune 11, 2020March 29, 2022
Concepts Used DFS , Recursion, Hashing Difficulty Level Hard Problem Statement : Given a binary tree, our task is to return the maximum count of distinct integers present in a...
Trees Interview Questions

Student Marks

HarshJune 11, 2020April 14, 2022
Concepts Used Queue, Basic Implementation Difficulty Level Easy Problem Statement : You are given a binary tree, you need to print the average of each level of the tree. See...

Pages

  • ALGORITHMS
  • ARRAY
  • BACKTRACKING
  • C PROGRAMMING LANGUAGE
  • C++ PROGRAMMING LANGUAGE
  • COMPANY PLACEMENT PROCEDURE
  • COMPETITIVE CODING
  • COMPUTATIONAL GEOMETRY
  • CSE SUBJECTS
  • DATA STRUCTURE
  • DYNAMIC PROGRAMMING
  • GAME THEORY
  • GRAPHS
  • GREEDY ALGORITHM
  • HASHING
  • HEAP
  • INTERVIEW PREPARATION
  • INTERVIEW TIPS
  • JAVA PROGRAMMING LANGUAGE
  • JAVASCRIPT PROGRAMMING LANGUAGE
  • Languages
  • LINKED LIST
  • MATHEMATICS
  • OPERATING SYSTEM
  • POINTERS
  • PYTHON PROGRAMMING LANGUAGE
  • QUEUE
  • RECURSION
  • SEARCHING
  • SEGMENT TREE
  • SORTING
  • STACK
  • STRING
  • TREES
  • 1
    21 Dec 2021

    Preparing For Placement Season? Learn About Intuit’s Recruitment Process!

  • 2
    21 Dec 2021

    How Does Infosys Hire & What Is Its Recruitment Process?

  • 3
    21 Dec 2021

    How to crack a job interview at Wipro? Know more about the recruitment process!

  • 4
    10 Nov 2021

    TCS Is Hiring & You Can Be Their Next Best Recruit!

Close
Menu
  • Language
    • C
    • C++
    • Java
    • Javascript
    • Python
  • Data Structure
    • Array
    • Graphs
    • Heap
    • Linked List
    • Segment Tree
    • Stack
    • Trees
    • Queue
  • Algorithm
    • Backtracking
    • Dynamic Programming
    • Greedy Algorithm
    • Searching
    • Sorting
  • CSE Subjects
    • Operating System
  • Company Placement
  • Interview
    • Interview Tips
    • General Interview Questions
    • Algorithms
    • Data Structure
    • Languages
    • Other Topics
  • Competitive
    • Data Structure
      • Array
      • Graph
      • Heap
      • Segment Tree
      • Stack
      • Queue
      • Tree
      • Tries
    • Algorithm
      • Backtracking
      • Dynamic Programming
      • Greedy Algorithm
      • Searching
      • Sorting
    • Other Topics
      • Computational Geometry
      • Game Theory
      • Maths
      • Pointers
      • Recursion
      • String
  • Others
    • Computational Geometry
    • Game Theory
    • Hashing
    • Maths
    • Pointers
    • Recursion
    • String
FOLLOW US
CONTACT US
+91-8800 2588 17
contact@prepbytes.com
QUICK LINKS
Interview NotesMock TestsPlacement ProgrammeCoding CoursesMock InterviewAbout UsBlog