Given an array of numbers e.g. [1,3,7,7,8,8,9], create a function that returns the indeces of a target number. For example, target is 8, return [4,5] for the array mentioned before.
Senior Software Engineer Java Developer Interview Questions
95,558 senior software engineer java developer interview questions shared by candidates
Technical: 1. https://www.facebook.com/hackercup/problem/403525256396727/ 2. http://www.geeksforgeeks.org/count-ways-reach-nth-stair/ 3. In english alphabet "a-z and A-Z" letters. As we know all numbers can be represented by a fibonacci number. 1 2 3 5 8 13 21 34 55 89 Suppose 6 = 5 + 1, can be encoded as 1001 16 = 13 + 3 = 100100 4 = 3 + 1 = 101 Similarly, all the letters "a-z and A-Z" should be converted to ASCII number then convert them to Fibonacci encoded number Then read decode them back to origonal character. H E L L O ASCII values of all the letters from (HELLO) Then covert them to corresponding binary values e.g H = 72 = 55 + 13 + 3 + 1 = 100100101 And add "1" (number 1) to end of all charcter to find out the number ends there. So H = 100100101 + 1 = 1001001011 (Not mathematical add, string add or append) 4. What you like to do in leisure time? 5. What you have done something interesting beyond your scope? 6. How do you manage a day in your place when you are heavily loaded? 7. Why are you looking for a change? ....
Find Kth minimum node in a binary tree and suggest a complexity
Write a program to reverse words in a string
Write a query to get the required data regarding employees.
Very simply question of inserting latest 5000 records in container along with timestamp and retrieve them as needed and discard which are older then 5000.
A rustic village contains one million married couples and no children. Each couple has exactly one child per year. Each couple wants a girl, but also wants to minimize the number of children they have, so they will continue to have children until they have their first girl. Assume that children are equally likely to be born male or female. Let p(t) be the percentage of children that are female at the end of year t. What is p(t)? "Can't tell" is a potential answer if you don't have sufficient information.
Implement a queue using only stacks.
public class WhichReturns{ public String whichReturns(){ try{ return "1"; }finally{ return "2"; } public static void main(String argv){ System.out.println("Return val: " + WhichReturns.whichReturns()); } }
I had not expected to be asked logic questions, which made me nervous. The first one was a weigh nine items on a balancing scale to find the odd one out in the fewest scale uses
Viewing 101 - 110 interview questions