Tip 1 : Stay consistent, solve min 2 questions daily.
Tip 2 : Keep revising what you studied, make notes it easier to remember.
Tip 1 : Keep your resume concise and do not put false information.
Tip 2 : Mention at least two projects



We cannot use the element at a given index twice.
Try to do this problem in O(N) time complexity.
This was a technical interview round. The interviewer was friendly.



1. If the value is present in the array, return its index.
2. If the value is absent, determine the index where it would be inserted in the array while maintaining the sorted order.
3. The given array has distinct integers.
4. The given array may be empty.
Input: arr = [1, 2, 4, 7], m = 6
Output: 3
Explanation: If the given array 'arr' is: [1, 2, 4, 7] and m = 6. We insert m = 6 in the array and get 'arr' as: [1, 2, 4, 6, 7]. The position of 6 is 3 (according to 0-based indexing)



1. You can return the list of values in any order. For example, if a valid triplet is {1, 2, -3}, then {2, -3, 1}, {-3, 2, 1} etc is also valid triplet. Also, the ordering of different triplets can be random i.e if there are more than one valid triplets, you can return them in any order.
2. The elements in the array need not be distinct.
3. If no such triplet is present in the array, then return an empty list, and the output printed for such a test case will be "-1".
It was an HR round. She asked me about myself and the hobbies I mentioned in my resume. Why do I want to work there? My strengths and weaknesses?
Tip 1 : Be confident
Tip 2 : Never say a negative thing, present your weakness in a positive manner or how you will overcome that.

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