Find local maxima in an unsorted array with n time
Engineer Developer Interview Questions
467,942 engineer developer interview questions shared by candidates
void sort(String s){ } void sort(Integer I){ } void sort(Object o){ } calling : sort(null) which function will be called?
What does the following function do: unsigned int doit(int x) { unsigned int z = 0; while (x &= (x-1)) z++; return z; }
Where is string constants stored in Memory? Ex: char * a = "Hello" ;
Given an integer array containing positive and negative numbers, how do you get the maximum sum of its sub-arrays? Continuous numbers form a sub-array of an array. For example, if the input array is {1, -2, 3, 10, -4, 7, 2, -5}, the sub-array with the maximum sum is {3, 10, -4, 7, 2} whose sum 18.
Showed a struct definition in C and asked its size?
Explain the graphics pipeline in a GPU core.
What is the difference between a class, an abstract class, and an interface?
how would you detect a cycle in a DAG.
How would you reverse a singly-linked list?
Viewing 2211 - 2220 interview questions