Tip 1 : Be consistent.
Tip 2 : Keep your basics clear
Tip 3 : Never lose your heart
Tip 1 : Make it concise and detailed
Tip 2 : Be confident about everything on ur resume.
Morning around 10 am. No interviewer was present only a test link was given.



1. All the elements are in the range 0 to N - 1.
2. The elements may not be in sorted order.
3. You can return the duplicate elements in any order.
4. If there are no duplicates present then return an empty array.



If the given string 'STR' = ”I am a student of the third year” so you have to transform this string to ”I Am A Student Of The Third Year"
'STR' will contains only space and alphabets both uppercase and lowercase. The words will be separated by space.
Describe any one of your project on the whitespace.[ I started making a flowchart of my project which I did recently. Try to explain the project like you are explaining to a child so that even if he doesn’t know anything he can understand it otherwise he will not be interested]
He asked me to design a model to get the top 20 relevant pages from 10,000 pages on the web.



The traversal should proceed from left to right according to the input adjacency list.
Adjacency list: { {1,2,3},{4}, {5}, {},{},{}}
The interpretation of this adjacency list is as follows:
Vertex 0 has directed edges towards vertices 1, 2, and 3.
Vertex 1 has a directed edge towards vertex 4.
Vertex 2 has a directed edge towards vertex 5.
Vertices 3, 4, and 5 have no outgoing edges.
We can also see this in the diagram below.
BFS traversal: 0 1 2 3 4 5

1)In the various levels of the data, you can mark any node as the starting or initial node to begin traversing.
2)The BFS will visit the node and mark it as visited and places it in the queue.
3)Now the BFS will visit the nearest and un-visited nodes and marks them. These values are also added to the queue. The queue works on the FIFO model.
4)In a similar manner, the remaining nearest and un-visited nodes on the graph are analyzed marked, and added to the queue. These items are deleted from the queue as received and printed as the result.



Step 1: Loop through all the elements in the given range.
Step 2: Check for each number if it has any factor between 1 and itself.
Step 3: If yes, then the number is not prime, and it will move to the next number.
Step 4: If no, it is the prime number, and the program will print it and check for the next number.
Step 5: The loop will break when it is reached the upper value.
As I had machine learning and deep learning as my area of interest. So he asked me questions related to it like what is deep learning and how it is different from machine learning.
Explain a Deep Learning algorithm
What is the difference between Abstraction and encapsulation? Explain with an example.
What is an abstract class and what is an Interface? When do we use an abstract class?
What is polymorphism? How many types of polymorphism are there in java?
What is multithreading in java?
What is the difference between an array and a linked list data structure? Discuss the advantages and disadvantages of both.
What is inheritance? Why do we need inheritance?
Suppose you are doing a project in a team and there is a conflict between you and your teammate. What will you do?
Suppose there are members of your team who are not as good as you. What will you do?
Suppose you are unable to meet your deadline for a project. What will u do?
What is your view regarding a good teacher and a bad teacher?
What was your role in your team project?
Tell me about your strength and weakness?
Where do you see yourself five years later?
What is your area of interest?
Suppose you are given work which you u don’t like, What will you do in this situation?
What are the struggles of living in a small town?
Tell me about your hobbies?
How are you spending your time in this lockdown period?
How is this lockdown going for you?
What is your view regarding the present COVID situation?
What do you feel should be qualities in a team lead?
Do you have any questions for me?[for this I asked -How is the work culture at SAP?]
How was your previous round of experience? How was the interview?

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?