02/16/2023
Important questions on bst are posted on the website, now posting the binary tree questions.
Find below question on website.
Write a function that takes in a Binary Tree and returns a list of its branch sums ordered from leftmost branch sum to rightmost branch sum.
A branch sum is the sum of all values in a Binary Tree branch. A Binary Tree branch is a path of nodes in a tree that starts at the root node and ends at any leaf node. Each BinaryTree node has an integer value, a left child node, and a right child node. Children nodes can either be BinaryTree nodes themselves or None / null.
BRANCH SUMS
This site contains paid content for free, data structures and algorithms, system design questions, project based queries, Fast preparation material.
02/11/2023
An array of integer makes a bst obtained by inserting values from left to right in bst.
Write a function that takes 2 arrays and determines whether they are same bst or not.
NOTE : CONSTRUCTING BST IS NOT ALLOWED.
Can you solve it ?
Check below link for detailed explanation.
SIMILAR/SAME/EQUAL BST
An array of integer makes a bst obtained by inserting values from left to right in bst. Write a function that takes 2 arrays and determines...
02/10/2023
Most Frequently asked interview topics in product based companies :
1. Binary tree
2. Arrays
3. Dynamic Programming
4. Graph
Percent of questions asked varies from company to company.
But if you want to excel interviews then the best way is get hold over recursion.
If you are well versed with recursion you can easily solve above topics.
Have a look on below link to quickly prepare for interviews.
Fast Interview Preparation
DSA, System Design, Python
02/09/2023
One of the most loving topics for interviewers is tree.
Many programmers often are unable to solve questions during live interviews, this is due to lack of practice and because of recursion.
Even I was unable to dry run my own code properly.
Almost every beginner finds tree to be a difficult topic because we do not have good command over recursion.
But do not worry, if your interview is aligned up you can quickly revisit the most important concepts and frequently asked questions for technical interview on :
Fast Interview Preparation
DSA, System Design, Python