You are given an array with n positive integers where all values in the array are repeated except for one. Return the one that is not repeated.
Intern Software Interview Questions
20,190 intern software interview questions shared by candidates
Given a sorted array, write a program to decide if two elements sum up to a third.
An optimal algorithm to check whether a hand of cards was a full house (in Poker) or not.
There is an NxM grid containing a robot at (1, 1) and a destination at (N, M). Robot can move only up or right. Some locations can have obstacles. Find the number of unique paths from (1, 1) to (N, M). What is the time complexity of your algorithm?
There are 20 floors in a building. If you're on an elevator and you're trying to get to the 20th floor, what is the probability that 4 people ahead of you click the 20th floor before you do? Assuming you click last.
25 racehorses, no stopwatch. 5 tracks. Figure out the top three fastest horses in the fewest number of races.
Write a function in language of your choice that takes in two strings, and returns true if they match. Constraints are as follows: String 1, the text to match to, will be alphabets and digits. String 2, the pattern, will be alphabets, digits, '.' and '*'. '.' means either alphabet or digit will be considered as a "match". "*" means the previous character is repeat 0 or more # of times. For example: Text: Facebook Pattern: F.cebo*k returns true
You are climbing a stair case. Each time you can either make 1 step or 2 steps. The staircase has n steps. In how many distinct ways can you climb the staircase ?
Write an algorithm to calculate the total number of paths possible from point (0, 0) to point (m, n) in an m by n grid. (You cannot retrace a line you already made when forming a path.)
Given an array of (unsorted) integers, arrange them such that a < b > c < d > e... etc.
Viewing 11 - 20 interview questions