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
1,136,609 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?
Given 9 ball with only one differ in weight, how to find out by measuring them only twice?
1) How to reverse a string?
Find the second largest number in the array.
public class WhichReturns{ public String whichReturns(){ try{ return "1"; }finally{ return "2"; } public static void main(String argv){ System.out.println("Return val: " + WhichReturns.whichReturns()); } }
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.
Viewing 1751 - 1760 interview questions