Reported February 2024
Oraclestring

Last Letters

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

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

Oracle's Last Letters problem hit the OA circuit in February 2024, and it's a string manipulation question that looks simpler than it is. You're probably staring at the title thinking it's about extracting final characters, but the trick is usually in how those letters relate to each other or what you're actually extracting from the input structure. This is the kind of problem where the first 10 minutes feel uncertain. StealthCoder is your safety net if you blank on the exact pattern during the live assessment.

Pattern and pitfall

Last Letters typically requires you to identify and return the final character from each element in a collection, or extract characters at specific positions that represent 'last' in some logical order. The common pitfall is overthinking the string traversal or missing an indexing edge case. Some versions ask you to track the last occurrence of a character, others to return the last letter of each word or line. The pattern leans toward basic string iteration with careful boundary handling. During the live OA, if the exact wording escapes you, StealthCoder reads the problem statement directly from your screen and delivers the solution approach in real time, so you can code with confidence rather than guessing the intent.

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 Last Letters 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 Oracle's OA.

Oracle 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.

Last Letters FAQ

Is this a string iteration problem or something deeper?+

It's fundamentally string iteration with an indexing or positional twist. The 'last' part is the key. You're likely looping through input elements and grabbing the final character or the character at a specific 'last' position. Edge case: empty strings or single-character inputs. Handle those explicitly.

How much time should I spend on Last Letters?+

15-20 minutes max. If you understand the input format and what 'last' means in context, the solution is usually a simple loop. If you're stuck after 10 minutes, you're probably overcomplicating it. Re-read the problem statement for clarity on what counts as a 'last' element or character.

Are there any off-by-one traps?+

Yes. String indexing is 0-based in most languages. If you're grabbing the 'last' character, use index length-1, not length. Also watch for newlines or whitespace in input parsing. Oracle assessments sometimes include them deliberately to trip up quick submissions.

What if the input is empty or has only whitespace?+

Test those cases before submitting. Return an empty string, null, or an empty array depending on the output format specified. The problem statement should clarify, but if it doesn't, try the edge case on a test input. Don't assume.

Does this problem require any data structures beyond strings?+

Unlikely. It's probably just string indexing and possibly a list or array to store results. No hash tables, trees, or complex structures needed. Keep it simple. If you find yourself using a data structure, step back and reconsider.

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

OA at Oracle?
Invisible during screen share
Get it