Add office photos
Goldman Sachs logo
Employer?
Claim Account for FREE

Goldman Sachs

3.5
based on 1.2k Reviews
Filter interviews by
Associate
Clear (1)

Goldman Sachs Associate Interview Questions and Answers

Updated 3 Oct 2024

Q1. What are immutable classes? Write an immutable class.

Ans.

Immutable classes are classes whose instances cannot be modified after creation.

  • Immutable classes have all fields marked as final and private.

  • They do not have any setter methods to modify the state of the object.

  • Any modification to an immutable object results in a new object being created.

  • Example of an immutable class: public class Person { private final String name; private final int age; public Person(String name, int age) { this.name = name; this.age = age; } public String...read more

Add your answer
right arrow

Q2. How to improve model performance beyond hyperopt?

Ans.

To improve model performance beyond hyperopt, consider ensemble methods, feature engineering, and data augmentation.

  • Implement ensemble methods like bagging, boosting, or stacking to combine multiple models.

  • Perform feature engineering to create new informative features or transform existing ones.

  • Apply data augmentation techniques to increase the size and diversity of the training data.

  • Consider using advanced algorithms like XGBoost, Random Forest, or Neural Networks.

  • Regularize...read more

Add your answer
right arrow

Q3. How to tune the model performance?

Ans.

To tune model performance, adjust hyperparameters, preprocess data, increase training data, and use ensemble methods.

  • Adjust hyperparameters such as learning rate, regularization, and batch size.

  • Preprocess data by scaling, normalizing, or handling missing values.

  • Increase training data to reduce overfitting and improve generalization.

  • Use ensemble methods like bagging or boosting to combine multiple models.

  • Perform cross-validation to evaluate model performance and select the bes...read more

Add your answer
right arrow

Q4. How to handle class imbalance

Ans.

Handling class imbalance involves techniques such as resampling, adjusting class weights, and using ensemble methods.

  • Resampling techniques like oversampling the minority class or undersampling the majority class can help balance the classes.

  • Adjusting class weights during model training can give more importance to the minority class.

  • Using ensemble methods like bagging or boosting can improve the performance on imbalanced datasets.

  • Applying anomaly detection or one-class classif...read more

Add your answer
right arrow
Discover Goldman Sachs interview dos and don'ts from real experiences

Q5. Find the first non repeating character

Ans.

Use a hashmap to store the frequency of each character and then iterate through the string to find the first non-repeating character.

  • Create a hashmap to store the frequency of each character in the string.

  • Iterate through the string and update the frequency in the hashmap.

  • Iterate through the string again and return the first character with frequency 1.

Add your answer
right arrow

Q6. Difference between xgboost and gbm

Ans.

XGBoost is an optimized version of Gradient Boosting Machine (GBM) with additional features and improvements.

  • XGBoost is a scalable and efficient implementation of gradient boosting algorithm.

  • XGBoost uses a more regularized model formalization to control overfitting.

  • XGBoost supports parallel processing and can handle large datasets.

  • XGBoost provides built-in regularization techniques like L1 and L2 regularization.

  • XGBoost has a variety of objective functions and evaluation metri...read more

Add your answer
right arrow

Q7. Design a distributed rate limiter.

Ans.

Design a distributed rate limiter for managing incoming requests.

  • Use a distributed key-value store like Redis to store request counts and timestamps.

  • Implement a token bucket algorithm to control the rate of incoming requests.

  • Use a distributed messaging system like Kafka for communication between rate limiter instances.

  • Consider using consistent hashing to evenly distribute requests among rate limiter instances.

Add your answer
right arrow

Q8. gas and track problem

Ans.

The gas and track problem involves determining the amount of gas required to complete a track.

  • Calculate the distance of the track

  • Determine the fuel efficiency of the vehicle

  • Divide the distance by the fuel efficiency to get the required amount of gas

Add your answer
right arrow

More about working at Goldman Sachs

Back
HQ - New York, New York, United States (USA)
Contribute & help others!
Write a review
Write a review
Share interview
Share interview
Contribute salary
Contribute salary
Add office photos
Add office photos

Interview Process at Goldman Sachs Associate

based on 19 interviews
4 Interview rounds
One-on-one Round - 1
One-on-one Round - 2
One-on-one Round - 3
One-on-one Round - 4
View more
interview tips and stories logo
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Associate Interview Questions from Similar Companies

Morgan Stanley Logo
3.7
 • 20 Interview Questions
WNS Logo
3.4
 • 19 Interview Questions
Deutsche Bank Logo
3.9
 • 16 Interview Questions
UNO Minda Logo
4.0
 • 10 Interview Questions
View all
Recently Viewed
INTERVIEWS
Indus Towers
No Interviews
INTERVIEWS
Goldman Sachs
70 top interview questions
INTERVIEWS
Aditya Birla Housing Finance
No Interviews
INTERVIEWS
Indus Towers
No Interviews
INTERVIEWS
Goldman Sachs
No Interviews
INTERVIEWS
Indus Towers
No Interviews
INTERVIEWS
Goldman Sachs
No Interviews
INTERVIEWS
Goldman Sachs
No Interviews
INTERVIEWS
Indus Towers
No Interviews
INTERVIEWS
Indus Towers
No Interviews
Share an Interview
Stay ahead in your career. Get AmbitionBox app
play-icon
play-icon
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
75 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter