In Array find largest second number ?
Programmer Analyst Intern Interview Questions
719,569 programmer analyst intern interview questions shared by candidates
You are given 1000 containers of water with exactly one container containing poison. You can use pigs to test which container contains poison. The conditions are that: A pig drinking the poisoned water woudl die exactly after 1 hour and that a pig could be used for sampling multiple containers. Assume that the pig takes 0 time to drink water from any number of containers. What is the minimum number of pigs would you use to identify the poisoned container within 1 hour.
I had a difficult question about a cuboid composed of smaller cubes. How many cubes are there where exactly two faces of the cube are exposed?
There are 199 elements in array. It has only one distinct value? How will find this distinct value? Also for solution please tell about O(n)?How can you make it more efficient?
Given a binary tree with only upwards (parent) node references, re-construct the tree adding in child references. You are given a list of leaf nodes (sorted in left to right order). Tricks include making sure to account for extremely unbalanced trees.
How would you count the number of words in a string consisting of uneven number of spaces between words( not dictionary words)? With and without library functions.
Print all permutations of a given string.
print all permutations of a string
You have a 3 and a 5 gallon jug, how do you get exactly 4 gallons?
They asked about programming and analytical questions.
Viewing 1711 - 1720 interview questions