Online Round: The test consisted of 30 MCQs and 2 Coding questions. MCQs were based on Java, C, Python, DBMS, and some aptitude questions. Java solution to Codility MissingInteger problem (Lesson 4 – Counting Elements) which scored 100%. The problem is to find the smallest positive integer that does not occur in a given array. The main strategy is to use two java.util.TreeSets, which order their elements: 1) a perfect set and 2) the actual set and check for the. I applied through a recruiter. The process took 1 day. I interviewed at Barclays (New York, NY) in August 2018. The interview started with a short talk about my previous experience according to the resume, then moved on to a 'write a function' test on a shared screen (sorted merge), the interviewer asked a couple of technical questions. Java solution to Codility OddOccurrencesInArray problem (Lesson 2 – Arrays) which scored 100%. The problem is to find the single unpaired element in an odd numbered integer array. A brute force method will take too long so I had to find a more creative solution. The main strategy is to use a hash table to.
Java solution to Codility MaxCounters problem (Lesson 4 – Counting Elements) which scored 100%. The problem is to calculate the final values of counters in an array, after applying a sequence of two different operations: 1) increment a specific counter by 1 and 2) set all counters to the maximum of any counter.
- It consisted of one coding question and 6 sections including verbal, output questions, aptitude questions etc. Worst thing about test was you cannot navigate back to the question.
- First he asked me in detail about my recent project. He asked which technology I used, what are advantages of this technology, what challenges I faced etc. Here I would suggest you to deeply study whatever you are putting in your resume because you should be able to answer reasonably whatever is given in your resume.
- Then he asked me to write a program to find greater of 2 dates with all if else loops without any mistake.
- Then he asked me to give a data structure to store when there are millions of data and we want it to be search efficient. I told hashmap. Then he asked me how hashmap is implemented.
- Then he asked is there a better data structure to handle duplicates. I first answered BST, but he said BST is mainly used when we want our to be in sorted order which was right. I couldn’t think of any better data structure which I frankly told him. He only answered this question. It’s answer is to use SETS.
- Then he started asking about OOPS.
- First he asked what is inheritance. I answered him with an example. Then he asked about interface and why java doesn’t allow multiple inheritance.
- Then he asked the term for redefining the function. I told him it’s called overloading.
- Then he asked me what is the difference between overloading and overriding. I answered when we redefine the function in same class it’s called overloading but when we redefine the function in derived class it’s called overriding.
- He asked what are the constraints on arguments number and datatype in these two cases. In overloading you can redefine the function with different number of arguments and datatype but in overriding you cannot change it.
- He asked can we have function overloading with different return types. I said no as it is not allowed in either c++ or java.Actually it is allowed when the argument list is changed
- He asked what is third normal form which is DBMS question. This switch was so sudden. But I answered him and he looked satisfied.
- He asked me how would you contribute to integrity.
- Then he asked me if I have done some leadership roles.
- He asked me how is my interaction with juniors.
- Finally he asked if I have any questions.
Codility Questions And Answers
If you like GeeksforGeeks and would like to contribute, you can also write an article and mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above