Engineer Senior Interview Questions

107,122 engineer senior interview questions shared by candidates

Give an API: int read4(char *buf) which reads 4 characters at a time from a file. The return value is the actual number of characters read. For example, it returns 3 if there is only 3 characters left in the file. By using the read4 API, implement the function int read(char *buf, int n) that reads n characters from the file.
avatar

Senior Software Engineer

Interviewed at iStreamPlanet

3.5
Mar 8, 2018

Give an API: int read4(char *buf) which reads 4 characters at a time from a file. The return value is the actual number of characters read. For example, it returns 3 if there is only 3 characters left in the file. By using the read4 API, implement the function int read(char *buf, int n) that reads n characters from the file.

1. Implement LinkedHashMap , how does it ensure O(1) for a get call. 2. Sort employee list , sorting can be applied on name,salary that will be decided on runtime. So we need to implement multiple comparators and pass the same to Collections.sort(list,new ComparatorName()). 3. In the above list make sure there is no duplicates, if fname and lname are same, they are duplicates.
avatar

Senior Software Engineer

Interviewed at Ezetap

4.2
Mar 22, 2019

1. Implement LinkedHashMap , how does it ensure O(1) for a get call. 2. Sort employee list , sorting can be applied on name,salary that will be decided on runtime. So we need to implement multiple comparators and pass the same to Collections.sort(list,new ComparatorName()). 3. In the above list make sure there is no duplicates, if fname and lname are same, they are duplicates.

Viewing 321 - 330 interview questions

Glassdoor has 107,122 interview questions and reports from Engineer senior interviews. Prepare for your interview. Get hired. Love your job.