Design a data structure/algorithm to keep track of instruments, stock exchanges, and trades which supports an addInstrument, addTrade and getAllTradesBetweenTimes(time1, time2) operation.
Programmer Analyst I Interview Questions
717,277 programmer analyst i interview questions shared by candidates
What is the difference between a FlipFlop and a latch?
Why do you want to join wipro?
How would I implement the 'ls' command in Unix?
They asked me some behavioral questions like if I will be interested to work in software like Itunes in which you download a song but will not be able to play it in some other player.
Received solution for refactoring.
Tell me 3 hobbies. Not 2 or 4, only 3.
Given busy slots as a data-set in a person's outlook calendar (eg: {(1000, 1200), (1415, 1530),...}) and the time required for a meeting (eg: 45 mins) write a method to find an open available slot for scheduling a meeting.
It was all straight forward, I was very impressed the way they conducted all interviews.
1) I have class hierarchy and should create array of different instances of this hierarchy. They asked me to write a function which iterates this array and executes different methods according to the instance class. I suggested that downcasting is a bad idea and that it can violate Liskov substitution rule of the SOLID principles, and this problem should be solved using collections and generics, but they did not accept this answer 2) Create Queue N size using only N size array. 3) some Java concurrency related questions: synchronized volatile, atomic, etc....
Viewing 2051 - 2060 interview questions