Compute Parameter Value
Reported by candidates from Goldman Sachs's online assessment. Pattern, common pitfall, and the honest play if you blank under the timer.
Goldman Sachs pulled this one in January 2024, and it's a deceptively simple title that masks what you're actually solving. You get a problem called 'Compute Parameter Value' with no context, no examples, and no obvious formula. The trick is that the problem text itself is the puzzle. You need to reverse-engineer what parameter they want from the vague problem statement. If you blank on the logic, StealthCoder will read the problem on screen and hand you the pattern in real time.
Pattern and pitfall
This is a math or brainteaser problem dressed up as a parameter extraction task. The Goldman Sachs OA loves problems where the 'hard part' isn't the code, it's understanding what you're actually computing. You'll likely face a formula, a sequence, or a constraint buried in prose. The common pitfall is jumping to code before you've decoded the English. Map out what the input represents, what the output should be, and which mathematical relationship connects them. Work through a small example by hand first. If the logic doesn't click within 5 minutes, StealthCoder becomes your safety net by surfacing the pattern you missed.
Memorize the pattern. If you can't, run StealthCoder. The proctor sees the IDE. They don't see what's behind it.
You can drill Compute Parameter Value cold, or you can hedge it. StealthCoder runs invisibly during screen share and surfaces a working solution in under 2 seconds. The proctor sees the IDE. They don't see what's behind it. Made by an engineer who treats the OA as theater. If yours is tonight, you don't have time to grind. You have time to hedge.
Get StealthCoderRelated leaked OAs
You've seen the question.
Make sure you actually pass Goldman Sachs's OA.
Goldman Sachs reuses patterns across OAs. Made by an engineer who treats the OA as theater. If yours is tonight, you don't have time to grind. You have time to hedge. Works on HackerRank, CodeSignal, CoderPad, and Karat.
Compute Parameter Value FAQ
Will the problem give me a formula or do I have to derive it?+
Expect the formula to be hidden in the problem statement as prose. No explicit equation. You'll read something like 'the value such that X equals Y' and need to reverse the math. Work through the examples first before writing code.
How much math do I actually need to know?+
High school algebra and maybe one discrete math concept. It's not calculus or number theory. If you can solve for a variable and understand sequences or simple recursion, you're fine. The barrier is reading comprehension, not math depth.
Is this a DP problem or just straightforward math?+
Almost certainly just math. Goldman Sachs uses this slot to test whether you can read a vague problem, extract the constraint, and implement it. No memoization tables needed. If you're thinking recursion with caching, you're probably overcomplicating it.
What if I can't figure out the formula in the first 10 minutes?+
Reread the problem statement word by word. Write out what you know: input type, output type, and any examples. Then list all operations mentioned: add, multiply, count, compare. The formula usually falls out once you organize the constraints. If it doesn't, brute force a small answer set and look for a pattern.
Is this problem still asked at Goldman Sachs OAs?+
This specific problem title was reported in January 2024. Goldman Sachs rotates problems, but the 'hidden formula in English prose' style is their signature. If you see a vaguely titled problem with minimal examples, expect to decode it yourself.