Write a java program to encode data in a specific way - NDA
Graduate Software Engineer Interview Questions
4,496 graduate software engineer interview questions shared by candidates
How would you deal with a task you need to do despite you hating to do it?
Print a MxN matrix in spiral.
- Find indices of elements for 2-sum, 3-sum, and 4-sum all in optimal time. 2-sum is easy, but 3-sum and 4-sum should be O(n^2) which is tricky because you need to find indices, not just the elements and there can be duplicate elements. Still don't understand solution to this day - Connect next pointers of all leaf nodes in binary tree. Tricky part is you must do it without extra space so you can't create a queue. I solved using a queue at first and thought solving without extra space was just a followup but I got rejected so seems like you have to do optimal space or else you'll get no hire.
Tell me about your summer project.
Compute the longest group of characters in a given string. (e.g. Given "aabbbaabaa", the output should be b3, as "bbb" is the longest substring consisting of the same character in the string.)
Questions about myself and then tested my programming skills.
Why bloomberg, why SWE, what projects I have worked on that are relative to the job, technologies I have used?
Given a function cipher(c) that takes a char and returns it's encryption (another char), write two functions: one to encrypt a string and one to decrypt it (takes the encrypted string and returns the original)
Given a collection of objects and a method equiv(Object a, Object b) that returns true if a is equivalent to b, false otherwise, return a collection that groups the objects such that all objects in one group are equivalent.
Viewing 1731 - 1740 interview questions