Company-style OA practice sets with full problem statements, sample test cases, and solutions.
Have you recently taken Goldman Sachs's Online Assessment or coding test? Share the questions, test cases, or assessment patterns you encountered. Earn SWE180 Coins for every verified submission and use them to unlock other company OA sets and premium tools for free!
Given a list of test scores of different students, where items[i] = [IDi, scorei] represents one score of a student with IDi.
Calculate each student's top five average score (the average of their 5 highest scores using integer division).
Return the answer as an array of pairs [[ID1, topFiveAverage1], [ID2, topFiveAverage2], ...] sorted by student ID in increasing order.
Example 1
Input
6 1 91 1 92 2 93 2 97 1 60 1 65 1 87 1 100 2 77 2 65 2 87
Output
1 87 2 83
Explanation
Student 1 top 5 scores: 100, 92, 91, 87, 65. Average = 435 / 5 = 87.
Student 2 top 5 scores: 97, 93, 87, 77, 65. Average = 419 / 5 = 83.
In a Goldman Sachs sponsored chess tournament, there are n rooms situated along a straight line at positions positions[0], ..., positions[n-1].
You need to assign c players to rooms such that the minimum distance between any two players is as large as possible to prevent noise distraction.
Return that largest minimum distance.
Example 1
Input
5 3 1 2 4 8 9
Output
3
Explanation
Assign 3 players to positions 1, 4, and 8 (or 9).
Distances between adjacent players: |4 - 1| = 3, |8 - 4| = 4. Minimum distance = 3.
No assignment can achieve minimum distance > 3.
Gain complete transparency into the Goldman Sachs online assessment process. Prepare effectively with real, verified coding challenges, test patterns, and platform details.
Wondering what top companies are actually asking in their initial screening rounds? We provide exact Data Structures, Algorithms, and logical reasoning questions reported by candidates who recently took the Goldman Sachs online tests. Stop guessing and start practicing the right problems.
Understand exactly how many questions to expect, the typical time limits, and the platforms used (e.g., HackerRank, Codility, CodeSignal). Knowing the format in advance is the first step to clearing the Goldman Sachs OA.