Interview questions

Goldman Sachs interview questions for AI and ML engineers

What candidates report from Goldman Sachs's interviews in India: how the loop runs and the questions they were asked, reworded and grouped by round.

How the Goldman Sachs loop runs

A HackerRank test with two coding problems, then live coding rounds in Java or another language, with follow-ups on optimising your answer.

Questions candidates were asked

Reworded and trimmed to the question. Companies change their questions often: practise the pattern, not the exact wording.

  1. Online testGiven names with scores, find the student with the highest average score.
  2. Live codingFind the longest prefix of a string that is also a suffix (a hard problem; think of the failure function).
  3. FundamentalsHow does a HashMap work inside, and what changes in Java 8? Lambdas, streams, indexing and caching.

3 more questions, with what a strong answer covers

The full question bank, by round and company, with what interviewers look for in each answer, is part of Pro.

Roles Goldman Sachs is hiring for

Common questions

What are the interview rounds at Goldman Sachs?

Candidates describe Goldman Sachs's loop as a set of rounds covering coding, design and a final conversation with the hiring manager; the section above lists them as reported. The rounds vary by team and level.

How should I prepare for a Goldman Sachs AI interview?

Practise coding problems out loud, prepare one ML or LLM system you can design end to end, and have two projects you can explain in depth. Read the job description closely: the skills it lists are what the rounds check.

Is Goldman Sachs hiring AI engineers in India now?

Goldman Sachs has 3 open jobs for AI, ML and data engineers in India on The GCC Engineer right now, in AI Engineer, AI Platform / MLOps and Data Engineer.

More on Goldman Sachs

Browse by company

Employers with the most open AI roles.

Prepare for it