Date: March 14th 2022
Online Assessment:
Onsite:
Total 3 rounds each 45 mins
Round 1:
Implement functions which perform the following:
1. Get all files whose size is atleast 5MB in the given directory
2. Get all xml files in the given directoryRound 2:
Round 3:
Given list of jobs, divide them into batches of size atmost k such that jobs of same type are grouped.
Input:
[JobA,JobB,JobA,JobA,JobC,JobB,JobB]
k =2
Output:
[[JobA,JobA],[JobA],[JobB,JobB],[JobB],[JobC]]
class Job{
int id;
String type;
Date createdTime;
// other properties
}
FollowUp: Batches should be sorted according to the createdTime