Find the longest subsequence in a given array of numbers in O(n)
Programmer Trainee Interview Questions
713,076 programmer trainee interview questions shared by candidates
unlimited supply of coins of different demoninations. pick min number of coins to get given amount.
There are many conference room at Amazon, your manager want you to book a conference room for a meeting. The number of people and time is given. Please return a list of rooms which are available at that time and have enough capacity.
What is the fast sorting algorithm and why?
Reverse a string in-place.
String,String buffer,String builder difference. Can u write your own immutable class n how? hashmap implementation and hashcode(),equals() method he asked me to write 2 logical testing programs with reduced complexity( 0,1,1,2,4,5,3,3,1,0,1 traverse once only n get the duplicate number's along with the count). printing pascal triangle duplicate letter from a string with less complexity reversing words of string individually(this is a tree---o/p: siht si a eert)
Varied behavioral questions. Technical focused on oops concepts(explain 4 pillars of OOP with examples). Was asked to write code to print the largest number in an unsorted integer array of infinite size. Although the position was for C#, they were cool about me coding in java.
if p1 and p2 are two consecutive prime number, in which cases (p1 + p2) / 2 is a prime number.
Define Yourself
There are 4 people who want to cross a bridge. They each take 1, 2, 5 and 8 minutes. Only 2 people can cross at a time and they take as long as the slowest person. What is the fastest time you can get everyone across? Then I was asked to write the mathematical equation to determine the trade-off point between each of the 2 approaches to solving this.
Viewing 1571 - 1580 interview questions