Tip 1 : Be consistent in solving DSA
Tip 2 : Keep revising core subjects
Tip 1 : Don't fake any thing
Tip 2 : Mention skills at the top



You have an infinite number of elements of each type.
If N=3 and X=7 and array elements are [1,2,3].
Way 1 - You can take 4 elements [2, 2, 2, 1] as 2 + 2 + 2 + 1 = 7.
Way 2 - You can take 3 elements [3, 3, 1] as 3 + 3 + 1 = 7.
Here, you can see in Way 2 we have used 3 coins to reach the target sum of 7.
Hence the output is 3.



1) Every candidate in the paid group should be paid in the ratio of their skill compared to other candidates in the paid group.
2) The minimum salary expectation of every candidate in the paid group should be fulfilled.
Answers which are within the range 10^-6 of the correct answer will be considered correct.



Cost of searching a key is its frequency multiplied by its level number in the BST.
Input keys = [ 1, 3, 5 ]
Frequency = [ 3, 10, 7 ]
All the unique BST possible from the given keys are:

Among all these possible BST, the minimum cost is obtained from the below BST:

Cost = 1 * (freq of 3) + 2 * (freq of 1) + 2 * (freq of 5) = 30
where 1 is the level of node 3, 2 is the level of the node 1 and node 5.
This is a standard DP problem first calculate for lower size and then keep building up


Subsequences of string "abc" are: ""(empty string), a, b, c, ab, bc, ac, abc.
Design a service which will count how many times a video was refreshed by user.
Was asked DB schema
Core logic
Data structures to be used
Optimization
Design splitwise app
Only approach was asked not the full design
Basic managerial questions about deadline and work ethics.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is recursion?