Tip 1 : Do one question from leet code daily
Tip 2 : If you have less time kindly go through coding questions
Tip 3 : Revise all the frameworks concepts that are there in your resume
Tip 1 : Your resume should not exceed more than one page
Tip 2 : Add all the links for your work and try to show data points in your resume. (For reg: Worked on a feature that has increase user base by 33%)
The test link was provided you can take the test as per your own convenience but it had to completed in a week's time.



An integer 'a' is closer to 'X' than an integer 'b' if:
|a - X| < |b - X| or ( |a - X| == |b - X| and a < b )
if X = 4, 3 is closer to 'X' than 9, as |3-4| < |9-4| i.e., 1 < 5 and if X = 4, 2 and 6 are equally close to it, as |2-4| == |6-4| = 2, but we say 2 is closer to 4 than 6, as 2 is smaller.
I used two pointers
Two pointer solution
private int[][] primeAirTime(int[][] in, int[][] out, int target)
{
// base checks
Arrays.sort(in, (a,b) -> a[1]-b[1]);
Arrays.sort(out, (a,b) -> a[1]-b[1]);
int low = 0, high = out.length-1;
int ans = 0;
List list = new ArrayList<>();
while(low < in.length && high >= 0)
{
int sum = in[low][1] + out[high][1];
if(sum <= target)
{
if(sum > ans)
{
ans = sum;
list = new ArrayList<>();
}
list.add(new int[]{in[low][0], out[high][0]});
low++;
}
else
{
high--;
}
}
return list.toArray(new int[list.size()][]);
}
It was a half an hour coding round where the interviewer asked me a coding question and asked me to solve it



A singly linked list is a type of linked list that is unidirectional, that is, it can be traversed in only one direction from head to the last node (tail).
If the number of nodes in the list or in the last group is less than 'K', just reverse the remaining nodes.
Linked list: 5 6 7 8 9 10 11 12
K: 3
Output: 7 6 5 8 9 10 12 11
We reverse the first 'K' (3) nodes and then skip the next 'K'(3) nodes. Now, since the number of nodes remaining in the list (2) is less than 'K', we just reverse the remaining nodes (11 and 12).
You need to reverse the first 'K' nodes and then skip the 'K' nodes and so on. 5 6 7 10 9 8 11 12 is not the correct answer for the given linked list.

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?