SarthiQ

SarthiQ

Interview Preparation Guide

Goldman Sachs
Questions & Answers

A comprehensive, expert-curated list of real interview questions to help you prepare effectively and land your dream job.

Document Details

Topic / Subject
Goldman Sachs
Content Length
20 Curated Q&A
Generated On
October 4, 2026
Provided By
SarthiQ.com
Want to explore more questions & mock interviews? Click on 👉www.sarthiq.com
© 2026 SarthiQ Platform. All rights reserved.
www.sarthiq.com
Resume Upload Get Job in 90 Days Resume Builder AI Interview Coach Interview Questions Placement Committee Self Assessment Get Internship

Need Help?

[email protected]

Top Goldman Sachs Interview Questions

NETFLIX
ORACLE
Adobe
NVIDIA
meta
IBM
wipro
TCS
cisco
intel
SAP
Uber

Goldman Sachs Interview Questions

Practice with real Goldman Sachs interview questions

01
A Software Engineer was asked
SarthiQ Goldman Sachs
Medium
Asked in 2024
Q. How would you reverse a linked list in Python? Provide a sample implementation along with edge case handling.
Ans. To reverse a linked list, we need to change the direction of the next pointers for each node. Here's a sample implementation:
python
**class Node:**
**    def __init__(self, value):**
        self.value = value
        self.next = None

**class LinkedList:**
**    def __init__(self):**
        self.head = None

**    def append(self, value):**
        new_node = Node(value)
**        if not self.head:**
            self.head = new_node
            return
        last = self.head
**        while last.next:**
            last = last.next
        last.next = new_node

**    def reverse(self):**
        prev = None
        current = self.head
**        while current:**
            next_node = current.next  # Store next node
            current.next = prev  # Reverse the link
            prev = current  # Move prev and current one step forward
            current = next_node
        self.head = prev  # Update head to new first element

**    def print_list(self):**
        current = self.head
**        while current:**
            print(current.value, end=' -> ')
            current = current.next
        print('None')

**Example usage**
ll = LinkedList()
ll.append(1)
ll.append(2)
ll.append(3)
ll.print_list()  # Outputs: 1 -> 2 -> 3 -> None
ll.reverse()
ll.print_list()  # Outputs: 3 -> 2 -> 1 -> None
In this implementation, we first append values to the linked list. The reverse function iteratively reverses the links until we reach the end of the list. Edge cases such as an empty list are handled since the method will simply do nothing if self.head is None.
Software EngineerCore Concept
02
A Backend Developer was asked
SarthiQ Goldman Sachs
Medium
Asked in 2024
Q. Explain SQL Joins with examples and how you would use a GROUP BY clause in a database query.
Ans. SQL Joins are used to combine rows from two or more tables based on a related column. Here are examples of different types of joins: 1. INNER JOIN: Returns records that have matching values in both tables.
sql
SELECT a.name, b.order_id
FROM customers a
INNER JOIN orders b ON a.id = b.customer_id;
2. LEFT JOIN: Returns all records from the left table, and matched records from the right table. If no match, NULL values are returned for right table columns.
sql
SELECT a.name, b.order_id
FROM customers a
LEFT JOIN orders b ON a.id = b.customer_id;
3. RIGHT JOIN: Returns all records from the right table, and matched records from the left table. If no match, NULL values are returned for left table columns.
sql
SELECT a.name, b.order_id
FROM customers a
RIGHT JOIN orders b ON a.id = b.customer_id;
4. FULL OUTER JOIN: Returns all records when there is a match in either left or right table records.
sql
SELECT a.name, b.order_id
FROM customers a
FULL OUTER JOIN orders b ON a.id = b.customer_id;
The GROUP BY clause groups rows that have the same values in specified columns into summary rows. It is often used with aggregate functions like COUNT, SUM, AVG, etc. Here’s an example:
sql
SELECT customer_id, COUNT(order_id) as total_orders
FROM orders
GROUP BY customer_id;
This query counts the total number of orders for each customer by grouping the results by customer_id.
Backend DeveloperCore Concept
03
Software Engineer
SarthiQ Goldman Sachs
Hard

Question:

How would you design a scalable system for XYZ...

04
Frontend Developer
SarthiQ Goldman Sachs
Hard

Question:

How would you design a scalable system for XYZ...