Tip 1 : Stay smiling
Tip 2 : Be confident
Tip 3 : Follow STAR Approach
Tip 1 : Bold important things
Tip 2 : Keep it short and crisp
Tip 3 : Have some projects on resume.
Coding round on
1. Array
2. linked list



If two or more such subarrays exist, return any subarray.
lass Solution
{
//Function to find a continuous sub-array which adds up to a given number.
static ArrayList subarraySum(int[] arr, int n, int s)
{
ArrayList list = new ArrayList(2);
int sum=0;
int start=1;
int end =0;
for(int i=0;is){
++start;
sum=sum-arr[start-2];
}
if(sum==s){
list.add(start);
list.add(end);
return(list);
}
}
// ArrayList array =new ArrayList(1);
list.add(-1);
return(list);



The given linked list is 1 -> 2 -> 3 -> 4-> NULL. Then the reverse linked list is 4 -> 3 -> 2 -> 1 -> NULL and the head of the reversed linked list will be 4.
Can you solve this problem in O(N) time and O(1) space complexity?
sweet simple shortest possible cpp solution :-
struct Node* reverseList(struct Node *head)
{
Node *ptr=head,*temp=NULL;
while(ptr->next!=NULL){
temp=ptr->next;
ptr->next->next !=NULL
? ptr->next=ptr->next->next
: ptr->next=NULL;
temp->next=head;
head=temp;
}
return head;
}
HR Round
Tell me about yourself.
What are your strengths and weaknesses?
Have you faced any challenging situations? ...
Where do you see yourself in the next five years?.
Why should I hire you?
Tip 1 : Be confident
Tip 2 : STAR approach
Tip 3 : Be short and crisp

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What can be the possible extension for the HTML5 file?