Count number of total possible squares in a chessboard.
Developer Interview Questions
269,106 developer interview questions shared by candidates
Mention two root class in Cocoa
The interview lasted for one hour. There were two interviewer. They first asked me for 30 minutes about what projects I have worked on and what my research is about. For the rest of 30 minutes, two technical questions were asked. 1. Given a number of double type "a" and an integer "b", write a function "pow(a,b)" that returns the value "a" raised to the power of "b". They will ask you to improve the efficiency if your code runs slower than O(b log b). 2. Implement an interface in which the first method "store(int val)" stores "val" in the data structure you chose to use and the other method "twosum(int value)" returns true if and only if two numbers stored in the data structure add up to "value". They will ask you to improve the efficiency if your code runs slower than O(n), where "n" is the number of numbers stored in the data structure.
Is String immutable?
Given a list of integers positive and/or negative numbers. Find the largest consecutive sum of the list.
Write a Program to Count Trailing no of zeros in factorial of given number
Reversal of all words in a sentence(e.g: "This is a good question" becomes "question good a is This")
Java 8 vs 1.6
Question was not difficult. In fact they asked the same queston from almost every interviewee. Qeustion: Given a number N and an array Arr[], search find two numbers which sum up to number N. When you will suggest binary search for this problem. They will ask about the complexity difference between two nested loop and binary search solution. After discussion of algorithm/solution, they will ask you to write down the code on paper. Both interviewers look like of Chinese origin. Only manager got involved in discussion and asked questions. The other one stayed silent. He sounds shy and asocial but was not pyschologist for sure. Maybe he was hired based on his extra-ordinary technical skills or strong internal (possibly Chinese) connection. The whole interviewed lasted for an hour.
One of the questions was reverse a string and capitalize the front and end letter of the word .
Viewing 671 - 680 interview questions