1st phonescreen: 1) background 2) algorithmic question which i dont remember but it was average difficulty level 3) Pagination in java - Given an implemented method getFeed(userId, StartTimeStamp, EndTimeTimeStamp) which returns a List<Feed>, right an API to return feeds to a mobile client. Design the API from scratch
Software Engineer Interview Questions
467,307 software engineer interview questions shared by candidates
1.Write a C/C++ function that verifies the equation z*z*z + h*h = b*b*b and return true or false.
Online screen sharing interview questions Q) Remove html tags in a string Sample Input: <h1>Hello World!</h1> <p>something</p> Output: Hello World! something My Solution: public static String stripHtmlTags(String html){ html = html.replaceAll("<.*?>", " ");//replace tag with space html = html.replaceAll(" +", " ");//replace multi-spaces with a single space return html; } Q) Given an integer input array A, you need to create an integer output array B of same size such that each entry at index i, is stated as B[i] = A[0]*A[1]*....A[i-1]*A[i+1]*A[i+2]*.... So, it means we have to multiply all the numbers excluding the value at that index i. Sample Input: {3,1,6,4} Output: [24, 72, 12, 18] B[0] = 1*6*4, B[1] = 3*6*4, B[2] = 3*1*4, B[3] = 3*1*6 My Solution: /** * Assumptions: zero is not present in the numbers. * @param input int numbers * @return output int array */ public static int[] product(int[] input){ int prod = 1; int[] res = new int[input.length]; for(int ele:input) { prod *= ele; } for(int ind=0; ind<res.length; ind++) { res[ind] = prod/input[ind]; } return res; }
Write Hello World in C#.
What's interesting about an API? (Phrased exactly like that.)
How would you position an object side by side
How would we make Singleton thread protected except interviewer did not want to include Synchronized block in there.
Give an example of a good working team you have been on and a bad one. What would you have changed to make the bad team better and how would you pitch the ideas to the team/manager.
You are given a glass bottle which will be broken if thrown from a particular flat of 100 story building. What's the efficient way to find that flat.
given map entries (a,1)(b, 2)(c12, 3). Resolve {c{a}{b}} => 3
Viewing 2111 - 2120 interview questions