Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.
Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.
This was a technical interview round which lasted for 60 minutes. Questions based on DSA, OS and DBMS were discussed.



Consider if ‘N’ = 4, the Factorial of 4 will be the product of all numbers from 1 to 4, which is 1 * 2 * 3 * 4 = 24. Hence, the answer is 24.
Factorial of a number is basically the product of all integers smaller than or equal to that number.
Iterative solution :
Run a for loop from 1 to n and take the product of all the numbers.
The final product will be the desired answer.
Time Complexity : O(n)
Space Complexity : O(1)
Recursive solution :
The following recursive formula can be used for recursive solution :
n! = n * (n-1)!
n! = 1 if n = 0 or n = 1
Time Complexity : O(n)
Space Complexity : O(n)



Binary search is an efficient algorithm for finding an item from a sorted list of items. It works by repeatedly dividing in half the portion of the list that could contain the item, until you've narrowed down the possible locations to just one.
Pseudocode :
binarySearch(low,high,key)
{
while(low<=high)
{
mid=(low+high)/2
if(a[mid]key)
{
high=mid-1;
}
else
{
return mid;
}
}
return -1; //key not found
}
What is a semaphore?
Semaphore is a non-negative variable shared between threads. It is a signaling mechanism, and a thread that is waiting on a semaphore can be signaled by another thread. It uses two atomic operations, 1)wait, and 2) signal for the process synchronization. There are two types of semaphore :Counting and binary semaphores
Difference between RDBMS and DBMS
1.In DBMS, the data is stored as a file, while in RDBMS, the information is stored in tables.
2.DBMS can only be used by one single user, whereas multiple users can use RDMBS.
3.Client-server side interaction and architecture are only supported in RDBMS, whereas DBMS does not support client-server side interaction.
4.DBMS is lighter in its hardware and software requirements than RDMBS.
A 60 minute technical round to test programming concepts. Questions on DBMS, OOPS, OS were also discussed.



Bubble Sort implementation for the given array: {6,2,8,4,10} is shown below :-
Bubble sort is a sorting algorithm that works on the repeatedly swapping of adjacent elements until they are not in the intended order. Algorithm :
BubbleSort(arr)
for all array elements
if arr[i] > arr[i+1]
swap(arr[i], arr[i+1])
return arr
Time Complexity : O(n^2)



Merge Sort Algorithm -
Merge sort is a Divide and Conquer based Algorithm. It divides the input array into two-parts, until the size of the input array is not ‘1’. In the return part, it will merge two sorted arrays a return a whole merged sorted array.

The above illustrates shows how merge sort works.
It is compulsory to use the ‘Merge Sort’ algorithm.
Merge sort works on the principle of Divide and Conquer. Merge sort repeatedly breaks down a list into several sub lists until each sub list consists of a single element and merging those sub lists in a manner that results into a sorted list.
Algorithm :
MergeSort(arr[], l, r)
If r > l
1. Find the middle point to divide the array into two halves:
middle m = l+ (r-l)/2
2. Call mergeSort for first half:
Call mergeSort(arr, l, m)
3. Call mergeSort for second half:
Call mergeSort(arr, m+1, r)
4. Merge the two halves sorted in step 2 and 3:
Call merge(arr, l, m, r)
The time complexity of merge sort is O(nlogn) and auxiliary space is O(n).
Given 2 tables : (empid,empname,dept) and (empid,salary).
Write sql query to list the details of employee having 5 maximum salaries
SELECT E.empid, E.empname, E.dept, F.salary
FROM Table1 E, Table2 F
where E.empid == F.empid and ( select count(*) from F where salary > F.salary ) < 5order by salary desc;
What is normalization?
Normalization is the process of reorganizing data in a database so that it meets two basic requirements:
1.There is no redundancy of data, all data is stored in only one place.
2.Data dependencies are logical, all related data items are stored together.
Normalization is important for many reasons, but chiefly because it allows databases to take up as little disk space as possible, resulting in increased performance.
This was a HR round. The interviewer asked me a number of questions about myself and gave a puzzle as well to solve.
1. Tell me about yourself
2. I was also asked many questions from my projects and resume. He asked number of persons involved in my projects and made note of it. Then asked “what is the difference b/w working as a team and working alone in projects.
3.If given the project, which you can do it alone and also u can take a team to work on it. what will u choose(team or doing alone)?and why?
4. If you are selected in SAP LABS and another company in chennai selecting you and giving you more salary than SAP, what will you do?
5. Your native is chennai, if you are selected you have to shift to bangalore? what u feel about it?
1. Speak clearly and vary your tone to show you’re interested and enthusiastic.
2. Take time to think about each question before answering so you can give a good response.
3. Give examples from your experience that demonstrate your knowledge and skills.
Four people need to cross a rickety bridge at night. Unfortunately, they have only one torch and the bridge is too dangerous to cross without one. The bridge is only strong enough to support two people at a time. Not all people take the same time to cross the bridge. Times for each person: 1 min, 2 mins, 7 mins and 10 mins. What is the shortest time needed for all four of them to cross the bridge and explain how?
General Tips :
As the interviewer is looking to see how you think, rationalize and deal with complex problems, you should also explain your thought process so the interviewer can see the logic behind it.
As brainteaser questions are deliberately complex, it’s a good idea to practice them before the interview, to prepare you for the kind of questions you’re going to see.

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