Tip 1 : Practice DSA from Leetcode, Geeksforgeeks, etc.
Tip 2 : Go through the subjects from Geeksforgeeks, Javatpoint, etc.
Tip 1 : Keep it one-pager
Tip 2 : Try to cover maximum points by keeping each crisp. No need to go into details.


Subsequences of string "abc" are: ""(empty string), a, b, c, ab, bc, ac, abc.


1. String ‘s’, ‘t’ and ‘str’ consist of only lowercase English letters from ‘a’ – ‘z’.
2. String ‘s’ and ‘t’ are of same length.
Let s = “abc” , t = “xyz” and str = “xbc” then all strings that we can generate are “abc”, “abz”, “ayc”,”ayz”, “xbc”, “xbz”, “xyc”, “xyz” and smallest of all these is “abc”.
The idea is to place the character just before the first character which is lexicographically greater than the character ch in the string. If no character in the string is found to be greater than ch, insert the character at the end.



The diameter of a binary tree is the length of the longest path between any two end nodes in a tree.
The number of edges between two nodes represents the length of the path between them.
Input: Consider the given binary tree:

Output: 6
Explanation:
Nodes in the diameter are highlighted. The length of the diameter, i.e., the path length, is 6.
Find the maximum path length from the current node to the leaf for both the left and right child. Add 1 to the sum of these lengths and find the maximum value among each node in the tree.
Asked the High-Level and Low-Level design for the project I was currently working on and asked few use cases where the design can be optimized.
Asked subjective questions:
Difference between Mutex and Semaphore
Write some code to explain the Critical Section problem
Difference between Interface and Abstract classes
Write code to explain Banker's Algorithm
Asked few SQL queries for Joins, Update, Insert, Upsert, Delete, etc.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
How do you remove whitespace from the start of a string?