## Math & Computation Interview Questions

- 0of 0 votes

Answersthree points are randomly chosen on a circle.what the probability that

- David August 02, 2011

1.triangle formed is right angled triangle.

2.triangle formed is acute angled triangle.

3.triangle formed is obtuse angled triangle.| Report Duplicate | Flag | PURGE

Facebook Software Engineer / Developer Math & Computation - 0of 0 votes

Answershow to find out if a point lies inside a triangle or not??

- dheeraj2311 July 20, 2011| Report Duplicate | Flag | PURGE

Adobe Software Engineer / Developer Math & Computation - 0of 0 votes

Answersangle between hands of the clock.. the interviewer was expecting me to have a formula memorized. i told him i dont know any formula so i derived an equation which worked. he was still very skeptical abt it, until i did some testing n showed him it works.

- Abhi April 15, 2011| Report Duplicate | Flag | PURGE

NVIDIA Software Engineer / Developer Math & Computation - 0of 0 votes

AnswersIf you were writing a function in a calculator to compute sine/cosine/tangent, and all you had was basic math operations (+, -, *, /) how would you do it? You cannot use lookup tables.

- rkt November 21, 2010| Report Duplicate | Flag | PURGE

Mathworks Development Support Engineer Math & Computation - 0of 0 votes

AnswersSay, you have an nXn grids of alphabets. If you are at (i,j), you can concat with all character adjacent to you except yourself. For example, you have grids like:

- realquant November 04, 2010

abc

def

ghi

from (2,2), you can form substrings:

e, eb,ec,ed,ef,eg,eh,ei

ead,eadg,eadgh,eadghi,edghif,edghifc...

Note that the string never visit a character twice.

How many such substrings can be formed in an nXn grid? Can you write it in closed form?| Report Duplicate | Flag | PURGE

Software Engineer / Developer Math & Computation - 0of 0 votes

Answersif u have a N steps staircase u standing at 1 step now you have options to step up to 2step or you can skip one step and go to 3rd step... so at ith step you have a option to go to i+1 step or i+2 step.. so how many ways you can climb the stairs...??

- TheDewarist August 29, 2010| Report Duplicate | Flag | PURGE

Amazon Software Engineer / Developer Math & Computation - 0of 0 votes

Answerspuzzle - 2 trains traveling in opposite direction, bird starts from one and reaches other and flies back and forth like this till train collide. Find the time taken to collide, total distance traveled by the bird, and no. of times bird makes a U turn.

- Mr. XYZ May 10, 2010| Report Duplicate | Flag | PURGE

Microsoft Program Manager Math & Computation - 0of 0 votes

AnswersAn Activity to Further Your Gambling Addiction

- raady April 12, 2010

If you roll 5 standard six-sided dice, whatâ€™s the probability that you get at least two 4s?

Also: you were offered the following bet: we pay you $1003 if you roll at least two 4s but you have to pay Rapleaf $1003 if you don't. Would you take the bet? Why or why not?| Report Duplicate | Flag | PURGE

Rapleaf Software Engineer / Developer Math & Computation - 0of 0 votes

AnswersGiven an array of integers from 1 to N, and given a number X, how many ways are there to pick X elements from the array such that no two elements in the selected X elements are consecutive.

- AnonymousUser March 28, 2010| Report Duplicate | Flag | PURGE

Amazon Software Engineer / Developer Math & Computation - 0of 0 votes

AnswersGiven stock values for a share per day for a company for last say 1 year. Find the maximum loss that any share holder could have made?. Assume that share holder can buy and sell only once. Code and mail after interview.

- AnonymousUser March 28, 2010| Report Duplicate | Flag | PURGE

Amazon Software Engineer / Developer Math & Computation - 0of 0 votes

AnswersYou have a stream of sentences. you don't know total number of sentences until you exhaust the stream. you have to choose one sentence randomly from the input stream. you don't have space to store all sentences at your end. randomly means probability of choosing any sentence is equal.

- Anonymous March 20, 2010| Report Duplicate | Flag | PURGE

Amazon Software Engineer / Developer Math & Computation - 0of 0 votes

AnswersGiven a diagonalizable square matrix A and a noise matrix E, find conditions on A and E such that for each eigenvalue L of A, there is an eigenvalue M of (A+E) such that abs(L-M) < K for a given K. (this is obviously an open ended question, try to tighten the bounds to the best of your ability)

- ttgg February 26, 2010| Report Duplicate | Flag | PURGE

Google Software Engineer / Developer Math & Computation - 0of 0 votes

AnswersIn a clock, calculate the angle between hour and minute handle

- myanything February 02, 2010| Report Duplicate | Flag | PURGE

Amazon EFI Software Engineer / Developer Math & Computation C - 0of 0 votes

AnswersFibonacci sequence and optimization

- myanything February 02, 2010| Report Duplicate | Flag | PURGE

Amazon Software Engineer / Developer Math & Computation - 0of 0 votes

Answerscheck a number whether is Power of 2

- myanything February 02, 2010| Report Duplicate | Flag | PURGE

Amazon Software Engineer / Developer Math & Computation - 1of 1 vote

AnswersGiven an array of n numbers in which all the members are less than or equal to k (k<n). device an algorithm of order O(k) to find the first repeating element.

- Ramesh January 14, 2010| Report Duplicate | Flag | PURGE

Microsoft Software Engineer / Developer Algorithm Arrays Brain Teasers Data Structures Ideas Math & Computation Sorting - 1of 1 vote

AnswersGiven a set of coordinates (x_i, y_i), i ranges from 1 to n, the coordinate values are integers, write a function 'bool isCenterInteger(int points[][])' which returns true if at least one of the midpoints of the line joining the points is an integer.

- DC December 20, 2009| Report Duplicate | Flag | PURGE

Microsoft Software Engineer in Test Math & Computation - 0of 0 votes

AnswersYou have one dice.

- kcoder December 18, 2009

If I roll a 1, I win.

If you roll a 6, you win.

What is the probability that you will win?| Report Duplicate | Flag | PURGE

Bloomberg LP Math & Computation Brain Teasers - 0of 0 votes

AnswersWrite a c code for multiplying 64 bits numbers using 32 bit processor.

- t2 November 23, 2009| Report Duplicate | Flag | PURGE

Microsoft Software Engineer / Developer Math & Computation - 0of 0 votes

AnswersOne-fourth of X is one half of a number that, if quadrupled and added to X, would result in a number that is three times X. Which of the following numbers could not be X?

- Annonymous.... November 01, 2009

60

32

45

All of the following numbers could be X

40| Report Duplicate | Flag | PURGE

Microsoft Software Engineer / Developer Math & Computation - 0of 0 votes

AnswersHow to find distance between two lines in a 3D plane

- RKB October 17, 2009| Report Duplicate | Flag | PURGE

Yahoo Software Engineer / Developer Math & Computation - 0of 0 votes

AnswersFind a two-line program to output the Nth Fibinacci number

- Joe Shmoe August 19, 2009| Report Duplicate | Flag | PURGE

Chegg.com Amazon Consultant Software Engineer / Developer Algorithm Math & Computation - 0of 0 votes

AnswersImplement a function to return a ratio from a double (ie 0.25 -> 1/4). The function will also take a tolerance so if toleran ce is .01 then FindRatio(.24, .01) -> 1/4

- DPS Prog May 17, 2009

int FindRatio(double val, double tolerance, int& numerator, int& denominator)| Report Duplicate | Flag | PURGE

Bloomberg LP Software Engineer / Developer Math & Computation - 0of 0 votes

AnswersGiven a point how can you tell if it is inside a circle?

- webchic April 06, 2009| Report Duplicate | Flag | PURGE

Bloomberg LP Financial Software Developer Math & Computation - 0of 0 votes

AnswersProve that 2^(2n) = O( 2^(2n) )

- Big O February 11, 2009

^ = power of| Report Duplicate | Flag | PURGE

Adobe Software Engineer / Developer Math & Computation

**CareerCup**is the world's biggest and best source for software engineering interview preparation. See all our resources.

Open Chat in New Window