Goldman Sachs Interview Question for Software Engineer / Developers






Comment hidden because of low score. Click to expand.
2
of 2 vote

explanation is here
campuscoke.blogspot.in/2014/12/add-two-numbers-without-using.html

- Jack December 28, 2014 | Flag Reply
Comment hidden because of low score. Click to expand.
1
of 1 vote

A->R
A-R->A // at this point A is zeroed out
B->R
A-R->A // A == -B
A->R   // R == -B
A-R->A // A == 0
A-R->A // A == B

- cristi.vlasceanu July 01, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

nice 1 :)

- asfd December 15, 2009 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

tat was a gud sol..But how did u come up with it ?? Did u use any logic..or was it trial and error ? if u used a definite logic can u share it with us ?

- hippl February 21, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

It took me half an hour to find the same solution. I was just thinking for 5 minutes then I want to sleep for 25 minutes. In the dream the solution popped up. So at the end of 30th minute I woke up and I found the solution.

- Anonymous March 03, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

Just like kekul.

- Anonymous March 03, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 2 vote

B->R
A-R->A // A == A-B
A->R
A-R->A // A == B

- Murali Mohan July 02, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

Wrong.

- GadhaGiri. July 02, 2009 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

No. Its right.

B -> R (R contains B)
A-R -> A (R contains B. A contains A-B)
A -> R (R contains A-B)
A-R -> A (A - [A-B] = A - A + B = B. So A contains B)

- AJ July 14, 2009 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

A-R -> A (A - [A-B] = A - A + B = B. So A contains B)
Now A contains A - B, not A

- Ted July 07, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

Sorry, I take that back. Rush of blood :) Problem is in 4th step.

A-R -> A => A-B - A-B which is wrong.

- AJ July 14, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

Too late. you prove yourself as a certified idiot.

- Anonymous March 03, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

be nice

- dushbag March 04, 2010 | Flag Reply


Add a Comment
Name:

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.

Books

is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More

Videos

CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More