Tip 1 : Practice standard questions of Data Structure.
Tip 2 : you should have atleast 2 or 3 projects if you are a fresher.
Tip 1 : Don't put false things in resume.
Tip 2 : good to have some projects and you should have some idea about the company and the job description. so that interviewer can relate with you.
It was in afternoon. Interviewer was very friendly. This round was based manly on coding area.They directly asked 2 standard coding question one by one.



n = 4, list: 1 -> 0 -> 1 -> 0.
Now in this example, the value in the linked list is 1010, which is 10 in Decimal.
Hence the answer is 10.
eg :
1101 = 13
so first
in ans = head.val ( first value of linked list )
then travel the linked list
using for loop
and in for loop
do the sum of ans like
ans = ans2 + head.next.val;
we get
ans = 12 + 1 = 3 ----------------- in first loop
ans = 32 + 0 = 6 ------------------in seond loop
ans = 62 + 1 =13 ------------------in 3rd loop
so we got ans
Here is my code:
int ans =head.val;
while(head->next!=NULL){
ans = ans*2 + head.next.val;
head = head.next;
}
return ans;


A connected trio means a set of three nodes, where all three are interconnected.
It was in evening. Interviewer was very friendly. This round was based manly on coding area.They directly asked 1 standard coding question.



Symbol Value
I 1
V 5
X 10
L 50
C 100
D 500
M 1000
2 is written as II in the roman numeral, just two one’s added together.
12 is written as XII, which is simply X(ten) + II(one+one).
The number 27 is written as XXVII, which is XX + V + II.
Roman numerals are usually written largest to smallest from left to right.
However, the numeral for four is not IIII. Instead, the number four is written as IV. Because the one is before the five we subtract it making four.
The same principle applies to the number nine, which is written as IX.
There are six instances where subtraction is used:
I can be placed before V (5) and X (10) to make 4 and 9.
X can be placed before L (50) and C (100) to make 40 and 90.
C can be placed before D (500) and M (1000) to make 400 and 900.
Stored values along with its roman number into 2 different list into decreasing order.
shrink the given integer till it becomes zero.
int[] values = { 1000, 900, 500, 400, 100, 90, 50, 40, 10, 9, 5, 4, 1 };
String[] romanLetters = { "M", "CM", "D", "CD", "C", "XC", "L", "XL", "X", "IX", "V", "IV", "I" };
StringBuilder sb = new StringBuilder();
for (int i = 0; i < values.length; i++) {
while (num >= values[i]) {
sb.append(romanLetters[i]);
num = num - values[i];
}
}
return sb.toString();
It was in afternoon. this was my last round with the team manager. it was based on my previous experience and 1 puzzle.
He asked me about myself.
Asked about previous experience.
Gave on puzzle.(25 horses in a race puzzle).
Tip 1 : Don't try to fake in managerial round.
Tip 2 : Be prepared on your projects and last experience.

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