ttgg
BAN USER- 0of 0 votes
Answersyou have a class A, where you set ctor to be private, so a client can't call
- ttgg
"A a;"
to create obj on stack.
But someday another developer add a new ctor:
"A(int)"
and try to call "A a(1);" inside main(). So this will create a obj on stack. How do you prevent that?| Report Duplicate | Flag | PURGE
Bloomberg LP Software Engineer / Developer C++ - 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| Report Duplicate | Flag | PURGE
Google Software Engineer / Developer Math & Computation - 0of 0 votes
AnswersGiven a cube. A ant is placed in a corner and cannot move. A spider starts from the opposite corner, and can move along cube edges in any direction (x,y,z) with probablity 1/3. What is the expected number of steps for this spider to get to the ant?
- ttgg| Report Duplicate | Flag | PURGE
Goldman Sachs Analyst Brain Teasers
very nice, thanks!
- ttgg February 26, 2010