Is there any algorithm to verify whether a linked list is circular or not?
Developer Interview Questions
269,410 developer interview questions shared by candidates
gave me a tree of 3 level and provided me a number that contains the level number and asked me to code a program that would print the nodes on that level in the tree.
Counting the number of anagrams of one string in another string
Rearrange the elements of an array so that all zeroes are at the end of the array, while preserving the ordering of the nonzero elements.
Given a list of integers, all from 1 to n, except for 2 which are marked as "0", find the 2 values that are missing. For example, for n = 5: arr = [1,5,0,0,3] => the two missing values are 2 and 4.
They asked what data structure i would have selected to implement a web browsing history and to print an ordered list of films form an array of random items
implement strstr
Phone interview: How to check if a function is called more than 10 times in a minute.
(1) Stack, Queue, Linked List and Array. Pros and Cons of each data structure. (e.g. if you read and delete a lot of data not insert too many data, which data structure will you pick?) (2) What's the average complexity and worse complexity of quick sort. (3) Reverse a string, and reverse a sentence. (4) Given 2 red balls 2 black balls and 1 white balls, and randomly pick 2 of them. What's the probability of having none of 2 balls that you picked is black?
Programming question: given a m by n grade, how many possible paths are there from (0, 0) to (m, n). Can only move in two directions, right and down.
Viewing 2851 - 2860 interview questions