Reported September 2024
OpenAI

Maixmize the Hits

Reported by candidates from OpenAI's online assessment. Pattern, common pitfall, and the honest play if you blank under the timer.

Get StealthCoderRuns invisibly during the live OpenAI OA. Under 2s to a working solution.
Founder's read

OpenAI's September OA included a problem called 'Maximize the Hits,' and you've got no problem text to work from. That's the actual scenario: you'll see it cold on assessment day. The title alone hints at optimization under constraint. This is likely a greedy or dynamic programming problem where you're maximizing some count or score against a budget or rule set. StealthCoder will read the exact spec and give you the play once you're live.

Pattern and pitfall

Without the full problem text, the strategy shifts. 'Maximize the Hits' almost certainly means: you have actions (the 'hits'), some resource constraint, and a goal to get as many successful outcomes as possible. That maps to greedy (pick the highest-value hits first, respecting limits) or DP (track state and build up the best solution). The trap is overthinking it live. Most candidates freeze on OA day when they don't recognize the exact LeetCode cousin. That's where your real safety net sits: a tool that reads the problem, confirms the pattern, and gives you the skeleton code in seconds.

Drill it cold or hedge it with StealthCoder. Either way, don't walk into the OA hoping you remember the trick.

If this hits your live OA

You can drill Maixmize the Hits 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 for the candidate who got the OA invite this morning and has 72 hours, not six months.

Get StealthCoder

Related leaked OAs

⏵ The honest play

You've seen the question. Make sure you actually pass OpenAI's OA.

OpenAI reuses patterns across OAs. Made for the candidate who got the OA invite this morning and has 72 hours, not six months. Works on HackerRank, CodeSignal, CoderPad, and Karat.

Maixmize the Hits FAQ

Is 'Maximize the Hits' a known LeetCode pattern?+

Not by that exact name. It's likely a greedy or DP optimization problem. The title is intentionally vague to test how you parse the spec. Read the full problem statement carefully on OA day, not the title alone.

What should I do if I blank on a 'maximize' problem?+

Start with greedy: sort by value, highest first, and pick greedily until you hit the constraint. If that feels too simple, think DP: state = (index, remaining_budget), value = best_hits_count. Test both approaches mentally before coding.

How much time should I spend understanding the problem vs. coding?+

Spend 3-5 minutes on a full read and worked example. Many candidates jump to code after 30 seconds and hit a wall. OpenAI OAs test precision. Read twice.

Will this problem have a greedy gotcha?+

Possibly. Greedy doesn't always work for maximization. If your greedy solution feels off after coding, pivot to DP. Better to implement DP correctly than submit a fast greedy that fails hidden tests.

How do I prepare in 24 hours with no problem text?+

Drill greedy (interval scheduling, activity selection) and basic DP (knapsack, coin change). Those cover 80% of 'maximize' problems. On OA day, pattern-match the problem to one of those two and adapt.

Problem reported by candidates from a real Online Assessment. Sourced from a publicly-available candidate-aggregated repository. Not affiliated with OpenAI.

OA at OpenAI?
Invisible during screen share
Get it