Reported March 2024
General Motorsqueue

Prepare Notification

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

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

General Motors served this one in March 2024, and it's a curveball. You get a notification system to build, and the OA wants you to think about state management, queuing, and the practical logic of when messages fire versus when they're held. You won't have time to overthink it during the live assessment. StealthCoder can be your safety net if the implementation details blur under pressure, letting you stay calm and methodical.

Pattern and pitfall

The trap here is conflating 'notification' with 'simple print.' Real notification systems track readiness state, timing, and delivery guarantees. You'll likely need a queue or priority structure, conditionals on notification metadata, and careful handling of edge cases like duplicate messages, race conditions, or notifications arriving before the system is ready. The pattern isn't always obvious from the name alone, but prepare for queue-like or state-machine logic. When you're live and the proctor's watching, StealthCoder reads the exact requirements off your screen and surfaces the core trick in seconds, so you don't waste cycles on false starts.

If this hits your live OA and you blank, StealthCoder solves it in seconds, invisible to the proctor.

If this hits your live OA

You can drill Prepare Notification 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. Built by an Amazon engineer who would have shipped this the night before his JPMorgan OA if he'd had it.

Get StealthCoder

Related leaked OAs

⏵ The honest play

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

General Motors reuses patterns across OAs. Built by an Amazon engineer who would have shipped this the night before his JPMorgan OA if he'd had it. Works on HackerRank, CodeSignal, CoderPad, and Karat.

Prepare Notification FAQ

Is this really just 'print all notifications'?+

No. The OA tests whether you handle state transitions, queueing, and timing. You'll need to implement logic that checks if the system is ready, buffers messages if not, and delivers them in the right order or priority. Read the problem constraints carefully.

What data structure should I use?+

Start with a queue for FIFO delivery, or a priority queue if the problem hints at urgency levels. You may also need a hash map to track notification metadata or prevent duplicates. Don't over-engineer; match the problem spec.

How much time should I spend designing before coding?+

Spend 2-3 minutes sketching the state transitions and one example on paper. Then code. The OA rewards working code, not perfect design. You can refactor if you have time left.

What's the most common failure point?+

Ignoring edge cases: empty queue, notifications queued before the system is ready, or duplicate notification IDs. Read the examples twice before you write the first line of code.

Can I still pass if I only get a partial solution?+

Maybe, depending on how General Motors grades. Full points require correct queueing, state handling, and edge case coverage. Partial credit usually goes to candidates who handle the happy path cleanly and show they understand the structure, even if delivery logic is incomplete.

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

OA at General Motors?
Invisible during screen share
Get it