Write a program to find diagonal sum of tree?
Software Development Engineer I Interview Questions
1,214 software development engineer i interview questions shared by candidates
1> Given a binary string of 0 and 1, check if it is divisible by 3 2> Given a graph weighted directed graph that represents cash flow among friends, restructure the graph to minimize cash flow. 3> Given a binary search tree and a number N, find two numbers in the tree whose sum is N. 4> Count number of 1's in a sorted array of 0's and 1's 5> Merge k arrays each of one is sorted. Each array has n elements.
Firstly they asked me about my self followed by discussion on my projects and then asked to write a code to find Kth closest element in b-tree.
1. Delete node from circular LL. 2. No of ways to reach a point in matrix? DP 3. Max in window of size k. 4. Max profit buy/sell shares.
To solve a given problem with optimize coding
There were many things...but for Software development engineer they are keen on data structures
Upgrade Junction Box - Return a sorted list of junction boxes. This question is present in Leetcode as Reorder Data In Logs File.
Optimal Route Pairs - Find the optimal list of route pairs that sums to or less than given maximum distance allowed to travel. There are pairs of forward and backward routes and a maximum distance that an airplane can travel. We need to find pair of forward and backward route whose distance sum is <= maximum distance an airplane can travel.
What was my favorite programming language and why?
Composition vs Inheritance
Viewing 1141 - 1150 interview questions