Interview Questions in Product Based Companies on Tree

Easy

  • Largest value in each level of Binary Tree (asked in Amazon)
  • Diameter of Tree (asked in Microsoft)
  • Maximum GCD of siblings of a binary tree (asked in Samsung)
  • Mirror tree (asked in Adobe)

Medium Problems:

  • Single Valued Subtree (asked in Media.net)
  • Minimum distance between two given nodes (asked in Amazon)
  • Connect nodes at same level (asked in Amazon)
  • Maximum sum leaf to root path (asked in Morgan Stanley)
  • Check if Subtree (asked in Paytm)
  • Construct Tree from Preorder Traversal (asked in Amazon)
  • Clone Binary Tree with random pointer (asked in DE Shaw)
  • Maximum sum of non-adjacent nodes (asked in Morgan Stanley)

Hard Problems:

  • Burn Binary Tree (asked in Adobe, Amazon, Google)

Recently Asked Interview Questions in Product Based Companies

Getting a job in a product-based company might be a dream for every Software Developer. However preparing for their interview process is not an easy task, particularly for the Coding Round. If you are thinking about covering so many questions and need some selected coding round questions, then you are in the right place!

w3wiki is providing a curated list of recently asked coding interview questions designed by industry experts from several interview experiences in 2024 and 2025.

You can also take part in our mock placement contests which will help you learn different topics and practice at the same time, simulating the feeling of a real placement test environment.

Similar Reads

Interview Questions in Product Based Companies on Maths

Easy Problems:...

Interview Questions in Product Based Companies on Arrays

Easy Problems:...

Interview Questions in Product Based Companies on Searching and Sorting

Easy Problems:...

Interview Questions in Product Based Companies on Matrix

Easy Problems:...

Interview Questions in Product Based Companies on Strings

Medium Problems:...

Interview Questions in Product Based Companies on Bit Magic

Easy Problems:...

Interview Questions in Product Based Companies on Recursion

Medium Problems:...

Interview Questions in Product Based Companies on Linked List

Easy Problems:...

Interview Questions in Product Based Companies on Stack

Medium Problems:...

Interview Questions in Product Based Companies on Queue

Medium Problems:...

Interview Questions in Product Based Companies on Heap

Medium Problems:...

Interview Questions in Product Based Companies on Tree

Easy...

Interview Questions in Product Based Companies on Binary Search Tree

Medium Problems:...

Interview Questions in Product Based Companies on Graph

Medium Problems:...

Interview Questions in Product Based Companies on Greedy

Easy Problems:...

Interview Questions in Product Based Companies on Dynamic Programming

Easy Problems:...

Interview Questions in Product Based Companies on Trie

Medium Problems:...

GeeksforGeeks Courses:

1. Language Foundation Courses [C++ / JAVA / Python ] Learn any programming language from scratch and understand all its fundamentals concepts for a strong programming foundation in the easiest possible manner with help of GeeksforGeeks Language Foundation Courses – Java Foundation | Python Foundation | C++ Foundation...