Talentd
FleetCode
Make and follow sheets.Sign in

Goldman Sachs Interview Questions (261)

Coding problems reported from Goldman Sachs interviews and online assessments.

Start practising
A private sheet of Goldman Sachs's most asked problems with a two-week finish date.
Questions261
Easy46
Medium167
Hard48
Asked in 30 days5as of 16 Aug 2026
TitleSolutionAcceptDifficultyAsked
Solution60.1%Hard
Solution55.7%Easy
134. Gas StationVideo
Solution48.4%Medium
135. CandyVideo
Solution49.3%Hard
Solution46.8%Medium
198. House RobberVideo
Solution53.6%Medium
Solution45.7%Hard
283. Move ZeroesVideo
Solution64.3%Easy
Solution40.3%Easy
Solution38.3%Medium
Solution48.2%Medium
Solution56.8%Medium
621. Task SchedulerVideo
Solution64.0%Medium
Solution65.2%Medium
Solution49.2%Medium
752. Open the LockVideo
Solution61.2%Medium
Solution50.4%Medium
994. Rotting OrangesVideo
Solution59.5%Medium
Solution68.6%Medium
Solution57.1%Hard
–34.2%Medium
Solution50.3%Medium
Solution46.1%Medium
36. Valid SudokuVideo
Solution64.9%Medium
37. Sudoku SolverVideo
Solution65.4%Hard
45. Jump Game IIVideo
Solution43.2%Medium
46. PermutationsVideo
Solution82.3%Medium
Solution64.3%Medium
48. Rotate ImageVideo
Solution80.7%Medium
Solution76.0%Medium
Solution52.4%Hard
75. Sort ColorsVideo
Solution69.9%Medium
78. SubsetsVideo
Solution82.7%Medium
79. Word SearchVideo
Solution48.2%Medium
Solution67.8%Easy
120. TriangleVideo
Solution59.9%Medium
Showing 51–100 of 153

More about Goldman Sachs interviews

Goldman Sachs is known for building highly reliable financial systems that process enormous volumes of transactions every day. Because of this, their engineering interviews focus heavily on strong fundamentals in data structures, algorithms, and problem solving. Candidates are expected to write clean, efficient code and clearly explain their reasoning while solving problems.

The typical Goldman Sachs coding interview evaluates how well you understand core DSA concepts and how you apply them under time pressure. Interviewers often prefer practical algorithmic thinking over memorized solutions. Many problems resemble real production challenges such as handling large datasets, optimizing performance, and designing scalable logic.

Across real interview experiences, Goldman Sachs frequently asks problems involving:

  • Arrays and Hash Maps for fast lookups and data processing
  • Two pointers and sliding window for optimized array and string operations
  • Binary search for performance-sensitive queries
  • Trees and graphs for hierarchical and relationship-based data
  • Dynamic programming for optimization problems

Difficulty is typically distributed across easy, medium, and challenging problems, with a strong emphasis on medium-level questions that test both coding ability and algorithmic intuition.

FleetCode helps you prepare efficiently with a curated set of collected from real candidate experiences. Each problem is categorized by difficulty and topic, and includes solutions in Python, Java, and C++. Instead of guessing what to practice, you can focus directly on the patterns Goldman Sachs interviewers repeatedly test.

If you're targeting a role at Goldman Sachs, practicing these company-specific problems will significantly increase your confidence and readiness for the coding rounds.

Interview tips

Preparing for a Goldman Sachs coding interview requires a solid understanding of core data structures and the ability to communicate your thought process clearly. While the exact process may vary slightly by role and location, most candidates go through multiple technical rounds focused on problem solving.

Typical Goldman Sachs interview format:

  • Online Assessment (OA):These typically focus on arrays, strings, and hash maps.
  • Technical Phone Screen: One or two algorithmic problems solved in a shared editor while explaining your approach.
  • Onsite or Virtual Onsite: 3–4 rounds including coding interviews, discussion of past projects, and sometimes a system design round for experienced candidates.

Most common DSA topics asked at Goldman Sachs:

  • Arrays, strings, and hash tables
  • Two pointers and sliding window techniques
  • Binary search and sorting-based problems
  • Trees and graph traversal (BFS / DFS)
  • Dynamic programming and recursion

Interviewers also pay close attention to code clarity and edge case handling. Even if you find the correct algorithm, failing to consider boundary conditions or writing messy code can impact your evaluation.

Common mistakes candidates make:

  • Jumping into coding without discussing the approach
  • Ignoring time and space complexity analysis
  • Not testing the solution with sample edge cases
  • Overcomplicating problems that have simple hash map or pointer solutions

Preparation strategy:

  • Start with arrays, strings, and hash map patterns.
  • Practice two-pointer and sliding window problems extensively.
  • Move to trees, graphs, and dynamic programming.
  • Simulate interviews by solving problems within 30–40 minutes.

Most candidates preparing seriously for Goldman Sachs spend 6–10 weeks practicing focused DSA problems.

Frequently asked questions

What DSA topics does Goldman Sachs ask most?

Goldman Sachs frequently asks questions on arrays, strings, hash maps, two pointers, and sliding window techniques. Trees, graphs, binary search, and dynamic programming also appear regularly. Medium‑difficulty algorithm problems that test optimization and edge case handling are very common.

How hard are Goldman Sachs coding interviews?

Goldman Sachs coding interviews are generally considered medium to moderately difficult. Most problems focus on strong fundamentals like arrays, hash maps, trees, and dynamic programming rather than extremely obscure algorithms. Interviewers also evaluate how clearly you explain your reasoning and optimize your approach.

Does Goldman Sachs ask system design questions?

Yes, but mainly for experienced or senior engineering roles. Entry-level and new graduate interviews are usually focused on data structures, algorithms, and coding problems. For experienced candidates, system design discussions may cover scalability, distributed systems, and real-world architecture decisions.

What is the Goldman Sachs interview process like?

The process usually starts with an online assessment containing coding questions. Candidates who pass move to one or two technical interviews focused on algorithms and problem solving. Final rounds often include multiple coding interviews along with behavioral or project discussions, and system design for experienced roles.

How many LeetCode problems should I solve for Goldman Sachs?

Instead of random practice, focusing on frequently asked Goldman Sachs patterns is more effective.

How long should I prepare for a Goldman Sachs coding interview?

Most candidates prepare for about 6 to 10 weeks depending on their current DSA knowledge. The first phase should focus on core data structures and algorithm patterns, followed by timed practice and mock interviews. Consistent daily practice is usually more effective than short intense cramming.