Given two arrays of integers find numbers how can you find the numbers in both? What is the complexity?
Developer C Interview Questions
710,963 developer c interview questions shared by candidates
Very simply question of inserting latest 5000 records in container along with timestamp and retrieve them as needed and discard which are older then 5000.
A rustic village contains one million married couples and no children. Each couple has exactly one child per year. Each couple wants a girl, but also wants to minimize the number of children they have, so they will continue to have children until they have their first girl. Assume that children are equally likely to be born male or female. Let p(t) be the percentage of children that are female at the end of year t. What is p(t)? "Can't tell" is a potential answer if you don't have sufficient information.
Why is a manhole cover round?
-given a binary tree, and a number in each node. Select the nodes that will maximize the overall sum such that if a node is selected its parent and children cannot be selected. Return the sum of the selected nodes. - The buildings in a a city can be represented in 2D by linear array. Given an array that represents the heights of the buildings such that the value in a specific index in the array indicates the height of the building at that location in the city. How much rain will gather in the city if it rains?
Implement a queue using only stacks.
Determine if a binary search tree is valid or not.
This wasn't incredibly difficult, but one guy asked me to design Facebook (at a high level) and another asked me to design Twitter. I thought these were really cool questions because they tested overall design smarts instead of obscure algorithmic stuff.
Logical Reasoning, Very few Aptitude questions, and 4 program questions
Write a sql query to select the 213th highest score from a given table of student name and score.
Viewing 1291 - 1300 interview questions