Implement a power function to raise a double to an int power, including negative powers.
Intern Engineer Interview Questions
24,102 intern engineer interview questions shared by candidates
If you have a refrigerator in an isolated room (no heat in or out) and left the door to the refrigerator open, what would happen to the temperature to the room? Would it go up, down or say the same?
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.
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?
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.)
Viewing 11 - 20 interview questions