given an array of n unsorted integers and each number is at most k positions away from its final sorted position, give an efficient sorting algorithm.
Engineer Interview Questions
934,946 engineer interview questions shared by candidates
Assuming you have a large cube shaped by small cubes together, their number is 1000 How many cubes will be visible?
1) How to reverse a string?
Find the second largest number in the array.
What will be the sizeof the following structure on a 32-bit machine: struct s { int i; char c; long d; void *p; int a[0]; };
Explain theory of elasticity and some questions related to it. Some formulaes such as bending moment equation and torsion equation.
Tell me why you want to work for Openreach
Given a stack containing values, implement min() operation to find minimum of all the values in O(1) time. Push() and Pop() should run in O(1) as well.
When you have multiple classes in C++ in a hierarchy, what was the way in which the ctors and dtors are called.
Why is your average pointer around 8 only?
Viewing 1591 - 1600 interview questions