Tip 1: Focus on the concept, not on the number of questions (quality matters a lot).
Tip 2: Make sure to do the most asked and most liked questions.
Tip 3: Make sure to do development; even a simple HTML, CSS, and JavaScript project can work.
Tip 1: Know everything on your resume (don’t include false information).
Tip 2: Your resume should not be longer than one page.
Tip 3: Highlight your job-related achievements and experience (make sure they are visible).
Firstly, the interviewer asked me to introduce myself, and then he started asking questions related to my project and discussed it for around 15 minutes. After that, he began asking DSA questions and asked me 2 DSA questions.
ARR_2D = [
[0, 1],
[2, 3, 4],
[],
[5]
]
The computed ‘ARR_1D’ should be as follows:
ARR_1D = [0, 1, 2, 3, 4, 5]
So, the printed output will be: 0 1 2 3 4 5
• The reference to the head of the linked list is not given.
• The node to be deleted is not a tail node.
• The value of each node in the Linked List is unique.
• It is guaranteed that the node to be deleted is present in the linked list.
Copy the next value to the current node and delete the node.
Timing was around 2 PM. I was alone in the room. The interviewer was very supportive and humble.
Let the array 'ARR' be [1, 2, 3] and 'B' = 5. Then all possible valid combinations are-
(1, 1, 1, 1, 1)
(1, 1, 1, 2)
(1, 1, 3)
(1, 2, 2)
(2, 3)
If the sum of the current combination is greater than the target, then even if we move forward with this combination, the sum will only increase. Therefore, there is no point in moving further with such a combination, as we can never achieve the target sum from this. So, backtrack from here.
If the sum of the current combination is equal to the target, then we have found a solution, so store this combination in the answers. Moving forward with this combination will only increase the sum, and we can't achieve the target sum again from this. So, backtrack from here.
If we are here, it means the sum of the combination is still less than the target sum, and there is still a possibility of finding a combination whose sum can be equal to the target.
i) Now, consider all possible options for this combination, one at a time.
ii) Check if considering the current option can give us the solution.
iii) When this option backtracks to this point again, remove it and try the next option. For example, at [2, 2, _], we have 3 options to fill the 3rd place: [2, 3, 5]. First, we will go with [2, 2, 2]. Then, when this backtracks to this point again, remove the last 2 and try the next option, which is 3, resulting in [2, 2, 3]. When this also backtracks, remove 3 and try 5, resulting in [2, 2, 5].
Now, after all options are exhausted for [2, 2, _], backtrack to its previous state, which is [2, 2], and so on...
1. There might be duplicates present in the array.
2. The order of the permutations in the output does not matter.
3. Do not use any kind of in-built library functions to find the answer.
We created a vector of vectors, 'v', for our answer.
We created a vector, 'a', to push into the answer.
We created a vector, 'b', to check if a number has been taken or not.
We traversed through all possibilities using backtracking and finally returned the answer.
Firstly, he asked me to introduce myself. Later, he started asking about my hobbies, background, extracurricular activities, and also focused on my situation-based skills.
Tell me about yourself.
Tip 1: Do not ask the interviewer what they want to know about you. You may be asking genuinely, but it sounds rude.
Tip 2: Do not repeat what is already in the resume. The interviewer wants to know what they have not seen there. Also, avoid speaking about anything personal.
Tip 3: Introduce yourself by including adjectives like problem-solving, innovative, tech-savvy, creative, quick learner, etc., that best describe you in your professional life to boost your chances.
What are your greatest strengths and weaknesses?
Tip 1: Be honest.
Tip 2: Start by stating the strongest skills and qualities that would be a great match for the job role.
Tip 3: Be ready with a backup claim for each of the strengths you mention. Therefore, avoid speaking about strengths you do not possess.
Tip 4: Do not mention any weaknesses that could potentially jeopardize your candidacy.
Why should we hire you?
Tip 1: How well you would perform the job and how you would be a great addition to the team.
Tip 2: How you possess the right talent that makes you stand apart.
Tip 3: Everything should boil down to how you can add great value to the organization.
Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
How do you select an element by class name in CSS?