Given two identical strings, where one string has a random character inserted, return the random inserted character.
Software Engineer 2 Interview Questions
666,374 software engineer 2 interview questions shared by candidates
Given an int array A, return an int array B that A[i + B[i]] is the first element in A after A[i] that is greater than or equal to A[i]
Q: List all comments in the given segment of codes.
Standard algorithms and data structures questions.
Extremely simple questions. First-round had a question like, given an object array, combine objects with one more matching fields and return the resulting array. The second round was behavioural and one question on removing trailing spaces. They don't ask any in-depth technical quesions.
Given a list L of n numbers. Write a function to return true if the sum of any two numbers of L equals to k; false otherwise.
Serialize and deserialize a collection of strings into a single one.
reverse a sentence such that the ordering of words is reversed but the words aren't changed
Get the two highest number in a binary search tree
I spent much time for answering a question. Q : In a grid, if points, which refer locations of people, are given, which point in the grid will be the best point to meet together that the sum of distances from each position to the point is shortest. Distance between two points p1 and p2 is |p1_x-p2_x| + |p1_y-p2_y|.
Viewing 2241 - 2250 interview questions