Tip 1 : Master the basics - The foundation of software development lies in strong knowledge of programming languages, algorithms, and data structures.
Tip 2 : Mock interviews and coding challenges.
Tip 3 : Thoroughly research the company.
Tip 1: Have some projects on resume tailored according to your role in the company.
Tip 2: Do not put false things on resume.
Tip 3: Always make one page resume.
Which of the following scheduling algorithms is based on the concept of time quantum or time slice?
a) First-Come, First-Served (FCFS)
b) Round Robin (RR)
c) Shortest Job Next (SJN)
d) Priority Scheduling
Correct answer: b) Round Robin (RR)
Which of the following is not a type of database normalization?
a) First Normal Form (1NF)
b) Second Normal Form (2NF)
c) Third Normal Form (3NF)
d) Fourth Normal Form (4NF)
Correct answer: d) Fourth Normal Form (4NF)
Which of the following is not a common component in system design architecture?
a) Load Balancer
b) Database
c) Cache
d) Compiler
Correct answer: d) Compiler
In a group of people, there are three types: engineers, doctors, and lawyers. The following statements are given:
1. Engineers always tell the truth.
2. Doctors sometimes lie.
3. Lawyers always lie.
If a person says, "I am an engineer," what is the person most likely to be?
a) Engineer
b) Doctor
c) Lawyer
Correct answer: a) Engineer



1. Initialize variables: Set start to 0, max_length to 0, and create an empty char_map hashmap to store characters and their positions.
2. Iterate through the string using a for loop.
3. Check if the current character s[i] is already in the char_map and if the start index is less than or equal to the position of the character in the char_map.
a. If the condition is true, it means the character is repeating within the current substring. Update the start index to the next position after the last occurrence of that character.
b. If the condition is false, it means the current character is not repeating within the current substring. Proceed to the next step.
4. Calculate the length of the current substring by subtracting the start index from the current index i and adding 1 (since indices are zero-based).
5. Update max_length by taking the maximum value between max_length and the length of the current substring calculated in the previous step.
6. Update the position of the current character in the char_map to the current index i.
7. Repeat steps 2-6 for the remaining characters in the string.
8. Return the max_length as the result, which represents the length of the longest substring without repeating characters.



We cannot use the element at a given index twice.
Try to do this problem in O(N) time complexity.
1. Create an empty hashmap called num_map to store the complement of each number and its index.
2. Iterate through the input array nums using a for loop.
3. For each number num at index i in the array:
3a. Calculate the complement by subtracting num from the target value.
3b. Check if the complement exists in the num_map hashmap:
If the complement is present, it means that the current number and its complement add up to the target. Proceed to step 6.
If the complement is not present, continue to the next step.
3c. Add the number num and its index i to the num_map hashmap.
4. If the loop completes without finding a solution, return an empty list since no two numbers in the array add up to the target.
5. If a complement is found in step 3, retrieve the index of the complement from the num_map hashmap.
6. Return an array containing the indices of the two numbers: the index from step 5 (complement) and the current index i.
7. End the function.
Tell me about yourself?
Tip 1: Start with a brief introduction, including your name and current position (if applicable).
Tip 2: Mention your educational background and any degrees or certifications you have obtained.
Tip 3: Discuss your previous work experience, highlighting key roles, responsibilities, and achievements.
Why do you want to work for our company?
Tip 1: Research the company thoroughly before the interview. Understand its mission, values, products/services, culture, and recent developments.
Tip 2: Highlight specific aspects of the company that attract you, such as its innovative solutions, impact on society, strong reputation, or opportunities for growth.
Tip 3: Connect your skills, experiences, and career goals to the company's needs and objectives. Explain how you can contribute to its success.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
How do you remove whitespace from the start of a string?