Difference between ArrayList and LinkedList ?
Programmer Analyst Ii Interview Questions
716,548 programmer analyst ii interview questions shared by candidates
Why do you want to work for Apple
sort binary array with minimum time complexity
Write a function that determines if a tree is a BST or not
You have 25 horses but only a single 5 lane race track. Only 5 horses can race at any time. You don't have a timer or other measurement tools. How many races do you need to run to find the fastest top 3 horses?
In technical round I was asked one puzzle. 3 tyres will be given whose lifetime is 5km each. For how many kilo-meters you can ride a bike ?
You have a pile of coins. One of them is counterfeit, and its weight is different from the other coins. All of the other coins weigh the same. You are given a balance. How would you find the counterfeit coin? Now code it up.
Given an int array, find the sequence of elements that has the largest sum
You have an array randomly filled with red, blue and green items. How do you order this list so the red items are at the beginning, followed by the blue ones, followed by the green ones? The algorithm should be in-place (no extra storage, or only constant extra storage) and the algorithm should only walk threw the array once (every position can only be read once).
Problem Statement : 18 Ralway Stations from Tamil Nadu are given. A passenger need ticket. Upto the 5 stations journey, fare is 10 Rs. After the 5 stations, for every 5 stations, 5 Rs extra will be charged. For the full stretch journey i.e. From 1st to the last station, fare is 20 Rs. Input 1 : StationFrom - Guindy, StationTo - Kadambakkam Output 1 : Print ticket. i.e. StationFrom : Guindy, StationTo : Kadambakkam, Total Stops : 3, Total Fare : 10 Input 2 : StationFrom - Guindy , StationTo - Chennai Fort Output 2 : Print ticket. i.e. StationFrom : Guindy, StationTo : Chennai Fort, Total Stops : 8, Total Fare :15 Code should follow design principles, patterns. Test Driven Development would be preferable, not mandatory though.
Viewing 1421 - 1430 interview questions