Tip 1 : Prepared well for how to approach the solution of problem.
Tip 2 : Start with bruit-force approach and gradually optimize further.
Tip 1: Whatever you write in resume, make sure you are enough confident and ready to explain it in a detail.
Tip 2: Keep your resume as simple as possible. Don't go with highly designed format.
It was in the evening 08:00 PM. Environment was quite good and no any additional disturbance was there. Internet connectivity was also decent and I was very confident about this round.
Job Scheduling Algorithm were asked to solve and find the correct answer from the options.
Tip 1: Practice a lot of job scheduling algorithm based question.
Tip 2: Also look at the advantages of various job scheduling algorithm as there can be many theoretical MCQs
asked in Online Assessment.
#include
int main() {
int a = 3, b = 5;
int t = a;
a = b;
b = t;
printf("%d %d", a, b);
return 0;
}
Debug the code and find the output.
Ans - 5 3
The above code swaps 2 numbers.
#include
void solve() {
int a[] = {1, 2, 3, 4, 5};
int sum = 0;
for(int i = 0; i < 5; i++) {
if(i % 2 == 0) {
sum += *(a + i);
}
else {
sum -= *(a + i);
}
}
printf("%d", sum);
}
int main() {
solve();
return 0;
}
Debug the code and find the output.
Ans - 3
This is an example of accessing an array element through pointer notation. So *(a + i) is equivalent to a[i], and we are adding all the even indices elements, and subtracting all the elements at odd indices, which gives a result of 3.
- Interviewer was good and quite friendly. Interviewer has asked to Introduce myself.
- He started with basic question like What is Operating System.
- How many types of Operating system are there.
- What is concept of single core and multi core processor. What is the better one and why ?.
- Then Interview jumped to OOPS concepts.
- What is Inheritance and Constructer.
- Types of Constructor and Why java don't have copy constructor.
class Employee{
float salary=40000;
}
class Programmer extends Employee{
int bonus=10000;
public static void main(String args[]){
Programmer p=new Programmer();
System.out.println("Programmer salary is:"+p.salary);
System.out.println("Bonus of Programmer is:"+p.bonus);
}
}
Output :
Programmer salary is: 40000.0
Bonus of programmer is: 10000
Conditions for valid parentheses:
1. All open brackets must be closed by the closing brackets.
2. Open brackets must be closed in the correct order.
()()()() is a valid parentheses.
)()()( is not a valid parentheses.
Declare a character stack.
Now traverse the string exp.
If the current character is a starting bracket ( ‘(‘ or ‘{‘ or ‘[‘ ) then push it to stack.
If the current character is a closing bracket ( ‘)’ or ‘}’ or ‘]’ ) then pop from stack and if the popped character is the matching starting bracket then fine.
Else brackets are Not Balanced.
After complete traversal, if there is some starting bracket left in stack then Not balanced, else Balanced.
It was a managerial kind of round.
- Interviewer told me to introduce myself first.
- Then interviewer asked me that 'What is the meaning of your name ?'
- Interviewer jumped to my resume and started asking question based on that like how is the culture and environment at
your college.
- Had a detailed discussion on project like where you got an idea to took up this project as I have mentioned 2-3 project in
my resume.
- What is your role in this project.
- How long you have been doing coding and interviewer asked me that do you participate in any coding consent ?
Design an Elevator System.
- which are the components required for the elevator system as I had to used OOPS concepts as well.
- I've simulate the elevator design.
- Identify the classes used in this system.
Note: As I've came across first time for any system design question. So, I was not able to answer it properly. (can be the reason of my rejection)
Tip 1: System Design - Elevator System (Most asked question in Interview). So prepared it well.
Tip 2: Make the eye contact and try to be there physically even if your interview mode is virtual because it
helps you and interviewer to communicate better.
Simple I got a call of rejection.
- I asked for the feedback and I got a nice feedback from my technical round. HR didn't told me where I was wrong
exactly.
Hr gives me feedback of my Technical round.
Basic HR question like introduce yourself.
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?