Given the head pointers to two linked lists of unknown length, find the node of intersection if they do intersect.
Software Interview Questions
550,262 software interview questions shared by candidates
What are the first 2 integers that, when added together, equal 10 in a "very large" array of unsigned integers?
design a ADT to implement push(), pop() method as stack, and also has a getMinElement(). Require that getMinElement() is constant time but push()/pop() do not have to be constant time at first. Then for improvement, these three methods are all required to be constant time
A boy goes to his grandmother’s house. There he either does yoga in the morning / plays tennis in the evening / does neither. However he does not do both on the same day. We know that 22 days he did either 1 activity. 24 mornings he did nothing. 12 evenings he did nothing. How many min days did he stay there to have done this?
1) Given a array and a sum, find all the pairs in the array which have the given sum. 2) Given a BST you need to identify swapped nodes
Most questions are built around Amazon's 14 principles.
You have a long set of numbers. More than 400k. How would you search if a specific number is in set? They expect a better solution than looping the set until you find the number.
Hoeveel 'onderdelen' zitten er op de kanten van een magic cube (3x3x3?) Wat als we dat veranderen naar 3x3x4?
Een multiset is een set waar repetities zijn toegestaan (ex: MS1 = (1,1,2,2,2,3,3,4,4,4,4,4,5,7,7,9...) Probleem: schrijf een programma dat twee multisets ontvangt en twee intersecties teruggeeft (element 2 verschijnt drie keer op MS1 en vijf keer op MS2
Given two binary trees T1 and T2. Find if T2 is a sub-tree of T1.
Viewing 451 - 460 interview questions