Goldman Sachs Interview Questions
- 0of 0 votes
AnswersWrite a program to which takes an array of digits and prints the histogram of the distribution of digits in horizontal manner. (Vertical histogram and cap on the max value for bonus points)
- interviewguy April 11, 2010| Report Duplicate | Flag | PURGE
Goldman Sachs Software Engineer in Test Coding - 0of 0 votes
AnswersShare knowledge about JVM parameters/variables.
- cuppanomics March 30, 2010| Report Duplicate | Flag | PURGE
Goldman Sachs Software Engineer / Developer Java - 0of 0 votes
AnswersAn investment, 16% chance to lose money on a quarter, and each quarter follows i.i.d. normal distribution.
- screwedupagain March 20, 2010
Q: what is the probability of losing money by the end of the year?| Report Duplicate | Flag | PURGE
Goldman Sachs Analyst - 0of 0 votes
AnswersA point in 3-d is defined by (x,y,z). Distance d between any two points (X,Y,Z) and (x,y,z) is d= Sqrt[(X-x)^2 + (Y-y)^2 + (Z-z)^2].
- chethan March 06, 2010
Now there are a million entries in a file, each entry is some point in space, in no specific order. Given any point (a,b,c) find the nearest 10 points to it. How would you store the million points and how would you retrieve those 10 points from that data structure.| Report Duplicate | Flag | PURGE
Goldman Sachs Software Engineer / Developer Algorithm - 0of 0 votes
Answers1) There are two hashmaps with string as keys and double as values. Construct a method which takes in these two hashmaps and returns another data structure which returns difference between the values with corresponding keys.
- chethan March 06, 2010| Report Duplicate | Flag | PURGE
Goldman Sachs Software Engineer / Developer Algorithm - 0of 0 votes
AnswersWritten test followed by Interview
- Raghu March 06, 2010
Written Test: 1 hour 20 minutes Duration
15 questions on java, SQL,C++ total 45 Q
you need to pick up 2 sections , i choose Java and C++
total 30 q + 15 q on Analytical its mandatory
all together 45 questions
there is one Subjective questions on java, SQL,C++
you need to pick 2 out of 3
So all of them need to be answered in 1 hr 20 min ....
after 2 hours results are announced
i cleared Written test
then interview : asked about singleton model , som basics of java and 10! recursion .. later genral questions...| Report Duplicate | Flag | PURGE
Goldman Sachs Software Engineer / Developer Experience - 0of 0 votes
AnswersImplement a Singleton
- bizz March 04, 2010| Report Duplicate | Flag | PURGE
Goldman Sachs Software Engineer / Developer Java - 0of 0 votes
AnswersVirtual Functions and its implementation
- bizz March 04, 2010| Report Duplicate | Flag | PURGE
Goldman Sachs Software Engineer / Developer C++ - 0of 0 votes
AnswerExplain Indexing, Mining algorithms, Joins, SQL
- bizz March 04, 2010| Report Duplicate | Flag | PURGE
Goldman Sachs Software Engineer / Developer Database - 0of 0 votes
AnswersHashmap and its implementation.
- bizz March 04, 2010| Report Duplicate | Flag | PURGE
Goldman Sachs Software Engineer / Developer - 0of 0 votes
AnswersGiven a IP address, Validate the IPaddress. The IP address lies between [000.000.000.000]-[255.255.255.255] .
- bizz March 04, 2010
IP address is in String, hence you can fetch the characters in the string and move ahead. Hint: use Regex| Report Duplicate | Flag | PURGE
Goldman Sachs Software Engineer / Developer - 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 February 25, 2010| Report Duplicate | Flag | PURGE
Goldman Sachs Analyst Brain Teasers - 0of 0 votes
AnswersYou are given a segment with length 1. Randomly pick two points from it. What is the expectation of the distance of the two points?
- Anonymous February 22, 2010| Report Duplicate | Flag | PURGE
Goldman Sachs Software Engineer / Developer - 0of 0 votes
AnswersGiven a n-by-n matrix, and computers as many as you want. Design a distributed algorithm for self-multiplication of the matrix, which is stored in one of the computers. What is the time complexity of your algorithm? You need to reduce the time from O(n^3) that is the time for multiplication on a single computer.
- Anonymous February 22, 2010| Report Duplicate | Flag | PURGE
Goldman Sachs Software Engineer / Developer - 0of 0 votes
AnswersCan Java constructor has private or protected access type?
- peter January 03, 2010| Report Duplicate | Flag | PURGE
Goldman Sachs Software Engineer / Developer Java - 0of 0 votes
AnswersIf you want to implement a class includes firstname and lastname, then implement equals() and hashcode()
- peter January 03, 2010| Report Duplicate | Flag | PURGE
Goldman Sachs Software Engineer / Developer Java - 0of 0 votes
AnswersTalk about collection framework of Java.
- peter January 03, 2010
What will happen if we add the same object to the Set?| Report Duplicate | Flag | PURGE
Goldman Sachs Software Engineer / Developer Java - 0of 0 votes
AnswersGiven one million integers, find a solution(data structure and algorithm)to find an integer inside.
- peter January 03, 2010| Report Duplicate | Flag | PURGE
Goldman Sachs Software Engineer / Developer Algorithm - 0of 0 votes
Answerswrite a method to calculate the acute angle between a clock: clock(int hours, int minutes)in java.My suggestion is to attemp these programmes 1st.public int clock(int hours, int minutes){// 360/12 = 30 360/60 = 6
- Ashis October 28, 2009
int angle = ((hours*30 - minutes *6)<0 )? minutes *6 - hours*30 : hours*30 - minutes *6 ;
angle = (angle > 180)? 360-angle: angle;return minutes;}| Report Duplicate | Flag | PURGE
Goldman Sachs Software Engineer / Developer Algorithm - 0of 0 votes
AnswersGiven two classes:
- offer September 19, 2009
class B
{
public:
B(args_1);
B(args_2);
// and many constructors with different arg lists
};
class D : public B
{
public:
D(args_1) : B(args_1) {}
D(args_2) : B(args_2) {}
// and many constructors with different signatures similarly implemented
// some additional stuff specific to D
};
Assume that the arg list for B's constructors are quite long and may be
revised pretty often in the future, in which case D's constructors have
to be recoded correspondingly. Duplicating the update by copy-and-paste
will certainly work here. Can you propose a better way so that the
update can be done in one place without copy-and-paste duplication?| Report Duplicate | Flag | PURGE
Goldman Sachs Financial Software Developer C++ - 0of 0 votes
AnswersGiven the Function F(N) = F(N-1) + F(N-2), write an efficient implementation. What is the run time?
- Anonymous June 30, 2009| Report Duplicate | Flag | PURGE
Goldman Sachs Software Engineer / Developer Algorithm - 0of 0 votes
AnswersA computer has three registers, A, B and R. It has only three instructions:
- Anonymous June 30, 2009
A->R : Load R with A
B->R : Load R with B
A-R->A : Subtract R from A and store the result in A
Using these instructions how can you do the follwoing?
B->A : Load A with B| Report Duplicate | Flag | PURGE
Goldman Sachs Software Engineer / Developer Algorithm - 0of 0 votes
AnswersWhat are the advantages of using spring?
- ThatDude April 20, 2009| Report Duplicate | Flag | PURGE
Goldman Sachs Software Engineer / Developer Java - 0of 0 votes
AnswersDesign an inventory tracking system using database tables. Customers, inventory, and orders are tracked.
- ThatDude April 20, 2009
Then, write a query to find an order when you only have a lastname| Report Duplicate | Flag | PURGE
Goldman Sachs Software Engineer / Developer Database - 0of 0 votes
AnswersWhat is static method? What is a static initializer?
- ThatDude April 20, 2009| Report Duplicate | Flag | PURGE
Goldman Sachs Software Engineer / Developer C++