Phone Interview: i) Find the number of inversions in an array (describe & code) ii) Find collinear points in a given set of 2D points (describe & code)
Software Engineers Interview Questions
420,038 software engineers interview questions shared by candidates
Write code that sorts a stack
Implement a power function similar to pow() function of c.
Given a sorted array [0-99] With input: [1, 5, 45, 86] Write a function that prints the empty regions, example Output: “0,2-4,6-44,46-85,87-99”
Given a array of numbers, output the array like this: a1 <= a2 >= a3 <= a4 >= a5...
Mostly, they asked to describe my current responsibilities in detail.
given 2 unsigned ints a and b, return 1 unsigned int = a/b, rounded to nearest int without float operation
Implement the functions for a stack and function getMinimum() all with O(1) complexity.
Print a binary search tree. Each level on a new line.
How can one implement a queue with only a stack implementation?
Viewing 1021 - 1030 interview questions