Given a set of inputs <number, userid> in a log file: log: <number, userid> example: 1,2 1,1 2,1 3,1 1,2 out: <number, count> 1,2 2,1 3,1 The output should be all the unique numbers and the count associated with them.
Developer Advisor Interview Questions
711,490 developer advisor interview questions shared by candidates
Design a linked list operation that takes a singly-linked list (only forward ptrs, no backward ptrs) as input and reverses the list.
You are given intervals of contiguous integers, like [1, 10), [15, 25), [40, 50), which are non-overlapping and of a fixed size. Design a data structure to store these intervals and have the operations of insert, delete, and find functions
The meeting room problem.
Q1: If there is a new Android engineer, how will you suggest the best practice of async jobs in Android? (And the detail about AsyncTask, Executor, Thread interrupt, memory leak...and so on) Q2: Give an unsorted array, find the kth smallest item (Can you do it more quickly?)
It was a mathematical questions about finding the greatest number (but less than the given number) by reordering the digits in the number.
Design an enumerator (e.g. named FBSuperEnumerator) that has two API's: - (id) nextObject; - (NSArray *) allObjects; // all objects remaining which, when given an input array that has content that can be either NSNumbers or NSArray, will expand all arrays embedded inside it. That is, given an input of something like @[@1, @[@2, @[@3, @4]], @[ ], @5], each call to nextObject will display items in the expected order.
Check if a string is a pallindrome Find the longest distance between any two nodes in a binary tree.
2 leetcode easies, 2 leetcode mediums (Codesignal)
Sort a matrix in diagonal order after manipulation
Viewing 2021 - 2030 interview questions