Tip 1: Practice medium-level coding problems.
Tip 2: Brush up computer fundamentals from subjects like OS, DBMS, and CN.
Tip 3: Have a good project or internship experience and in-depth knowledge of what you have done.
Tip 1 : Have some projects on resume.
Tip 2 : Do not put false things on resume.



For a string “qaacde”, This string has two same adjacent characters.
So, one possible way to rearrange the string is “qacade”. Now, this string does not have two adjacent characters that are the same.



1. A binary tree is a tree in which each node has at most two children.
2. The given tree will be non-empty.
3. The given tree can have multiple nodes with the same value.
4. If there are no nodes in the tree which are at distance = K from the given node, return an empty list.
5. You can return the list of values of valid nodes in any order. For example if the valid nodes have values 1,2,3, then you can return {1,2,3} or {3,1,2} etc.

Consider this tree above. The target node is 5 and K = 3. The nodes at distance 1 from node 5 are {2}, nodes at distance 2 from node 5 are {1, 4} and nodes at distance 3 from node 5 are {6, 3}.
Given a system API to manage memory, which allocates memory of size 1024 bytes only, create a wrapper to allocate memory efficiently. Provide a deep discussion about why I used data structure X and not Y.




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