Reported July 2026
Omnissasliding window

Longest Substring Without Repeating Characters

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

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

The whole problem hinges on one data structure: a hash map (or set) tracking which characters sit in your current window. That's the core of the Omnissa question reported in July 2026, Longest Substring Without Repeating Characters. The report describes a rapid-fire round where the candidate had to present brute-force, improved, and optimal approaches, then write working code for each. So you need all three ready, not just the final answer. If you've seen this one before, you already know the shape. If you blank under the clock, StealthCoder is the invisible safety net that reads the problem and gives you a working solution while the proctor sees nothing.

The problem

A quick note: this problem is backed by a real Omnissa onsite interview report that directly named Longest Substring Without Repeating Characters. The report did not include an exact function interface, examples, constraints, or character-set rules. The core task match is about 95%.
Given a string s, return the length of the longest substring that contains no repeated characters.
Interview Follow-up
This was part of a rapid-fire three-problem round in which the candidate presented brute-force, improved, and optimal approaches and wrote working code for each problem.

Function
lengthOfLongestSubstring(s: String) → int

Examples
Example 1
s = "abcabcbb"
return = 3
The longest substrings without repeated characters include "abc", with length 3.
Example 2
s = "bbbbb"
return = 1
Every valid substring without repeats has length 1.

Reported by candidates. Source: FastPrep

Pattern and pitfall

The trick is a sliding window with a hash map from character to its last seen index. Walk the string with a right pointer. When the current character was seen at an index inside the window, jump the left pointer to that index plus one. Update the best length each step. That's O(n) time. The brute force checks every substring with a set, which is O(n^2) or O(n^3). The middle approach is a window that shrinks one step at a time with a set. The common pitfall is moving the left pointer backward. Always take max(left, lastSeen + 1), or stale indexes will break your answer on input like "abba". Also handle the empty string and a single character. The hinted dynamic-programming label is loose. This is a window problem. If your mind goes blank mid-assessment, StealthCoder can supply the clean version as a hedge, but know the three tiers cold.

StealthCoder is the hedge for the one pattern you didn't drill. It runs invisibly during the screen share.

If this hits your live OA

You can drill Longest Substring Without Repeating Characters 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. If you're reading this with an OA window open, you're who this was built for.

Get StealthCoder

Related leaked OAs

⏵ Practice the LeetCode equivalent

This OA pattern shows up on LeetCode as longest substring without repeating characters. If you have time before the OA, drill that.

⏵ The honest play

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

Omnissa reuses patterns across OAs. If you're reading this with an OA window open, you're who this was built for. Works on HackerRank, CodeSignal, CoderPad, and Karat.

Longest Substring Without Repeating Characters FAQ

How hard is Longest Substring Without Repeating Characters really?+

It's a medium on paper but one of the most common ones out there. The idea is short once you've seen it. The risk is off-by-one errors with the left pointer, not the concept. Expect to code it in under 15 minutes if you've done a sliding window before.

What's the trick to the optimal solution?+

Use a sliding window with a map of character to last seen index. When you hit a repeat inside the window, move the left pointer to lastSeen + 1. Never let it move backward. One pass, O(n) time, and space bounded by the character set.

What did the Omnissa report say about the format?+

The July 2026 Omnissa report described a rapid-fire three-problem round. The candidate presented brute-force, improved, and optimal approaches and wrote working code for each. So practice explaining the tradeoffs out loud, not only submitting the final answer.

What edge cases should I test?+

Test the empty string, a single character, all identical characters like "bbbbb" (answer 1), and all unique characters. Also test "abba", which catches the bug where the left pointer jumps backward after a stale index. The report gave no character-set rules, so use a map that handles any character.

How do I prepare for this in 48 hours?+

Write the three versions from scratch: brute force with a set over all substrings, a shrinking window with a set, and the index-map window. Run both given examples plus "abba". Then explain each one's time and space complexity in two sentences. That covers what the report described.

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

OA at Omnissa?
Invisible during screen share
Get it