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.
Senior Interview Questions
341,738 senior interview questions shared by candidates
What was I looking for in the future?
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.
Recruiter: Asked about why I want to move to this company, area, role.
SAT style aptitude test.
My way of getting transparency in a project and when to set yellow / red flags.
What are some difficulties do you expect to have in this position
what is you success story ?
Write a program to remove vowels from a given string
Explain SWAPS
Viewing 781 - 790 interview questions