Tip 1 : Practice more and more DSA questions and take part in contests regularly.
Tip 2 : Do at least 1 good project and you must be confident to elaborate on it. You must know in detail some basic questions about your project, for example: which data structure you have used? what is your contribution to that project if it is done in the group?
Tip 3 : Learn concepts in computer science Fundamentals - OOPS, OS, DBMS, Computer Networks
Tip 1 : Add your Achievements. for example- any hackathon that you have won.
Tip 2 : Do not put false things on your resume.
This round was an Online assessment in which there was 4 coding question Easy-medium level. All 4 questions were directly from Leetcode. The coding problems were from the topics like string, array, map, DFS, and sorting.
‘ARR[]’ = [1, 3, 1, 1, 2] has 3 different integers: 1, 2, and 3. And for ‘K’ = 2, following are the good subarrays.
1. [1, 3]
2. [1, 3, 1]
3. [1, 3, 1, 1]
4. [3, 1]
5. [3, 1, 1]
6. [1, 1, 2]
7. [1, 2]
step 1 : Using Map Data structure and modulo.
step 2 : Iterate over an array and store number modulo k.
step 3 : If number%k already exists in the map then return true.
If ‘ARR’ is {1,2,3,4} and ‘K’ = 4, then there exists 2 subsets with sum = 4. These are {1,3} and {4}. Hence, return true.
step 1 : Sort the array.
step 2 : Initialize answer = 0 and the length of nums as n.
step 3 : Iterate over the left index left from 0 to n - 1, for each index left:
- Use binary search to locate the rightmost index right which nums[right] <= target - nums[left].
- If left <= right, count the total number of valid subsequences as 2^(right - left)
- Increment answer by the number of valid subsequences.
step 4 : Return answer once the iteration ends.
After clearing the OA round I got selected for the Interview round 1. This round was mainly focused on your resume. They will discuss each and everything that is written on your resume like internships and projects, etc. They also asked about some data structure problems, C-language, and OOPS-related questions.
What is the difference between # include & #include "stdio. h"?
Explain garbage collection in C++?
Difference between Binary tree & Binary search tree.
What is virtual function in C++?
This round was mainly focused on my problem-solving skills, data structure, and C language. They ask me some questions related to data structure and after that, they give me a problem related to string and array topics in which I need to code in C language.
1. A subsequence is a sequence generated from a string after deleting some characters of string without changing the order of remaining string characters.
2. 'A' and 'B' will be non-empty strings.
What is HashMap? How it is working internally?
Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
Which array operation has O(n) worst-case time complexity?