Reported February 2024
IBM

Find Y Values

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

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

IBM's Find Y Values question landed on candidates in February 2024, and it's a pattern-matching problem that looks simpler than it is. You're given some input and need to extract or compute Y values based on a rule you have to infer from examples. The trick is figuring out what the rule actually is before you code. StealthCoder can read the examples on screen and help you spot the pattern in real time if you blank on the relationship.

Pattern and pitfall

This is a reverse-engineering problem. IBM gives you input-output pairs and expects you to deduce the transformation. The pattern could be mathematical (Y as a function of X), string-based (extracting characters at certain positions), or array-based (filtering or mapping). The common trap is hardcoding the first example instead of generalizing. Work through at least two examples by hand to confirm your hypothesis. If you freeze during the live OA, StealthCoder can analyze the examples visible on your screen and suggest the rule, so you're not guessing blindly. Pay attention to edge cases: empty input, single elements, negative numbers, or repeated values.

If you see this problem in your OA tomorrow, the play is to recognize the pattern in 30 seconds. StealthCoder buys you that recognition.

If this hits your live OA

You can drill Find Y Values 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 passed his OA cold and still thinks the filter is broken.

Get StealthCoder

Related leaked OAs

⏵ The honest play

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

IBM reuses patterns across OAs. Built by an Amazon engineer who passed his OA cold and still thinks the filter is broken. Works on HackerRank, CodeSignal, CoderPad, and Karat.

Find Y Values FAQ

Is this a math problem or a logic puzzle?+

Without the full problem text, it could be either. IBM tends to mix math formulas with pattern recognition. Work through the examples algebraically first (is Y = X * 2, Y = X^2, etc.), then consider string or array operations if math doesn't fit.

How much time should I spend inferring the rule?+

Three to five minutes maximum on examples. If the pattern isn't clear by then, code a brute-force attempt that handles the visible cases, then refactor. IBM doesn't usually hide the rule in obscure corner cases.

What if there are multiple Y values per input?+

Return them all, usually in order. Check whether IBM wants an array, a set, or a formatted string. Look at the expected output type in the examples. If unclear, ask in a comment or assume an array.

Can I hardcode the examples to get partial credit?+

No. IBM's grader will fail you on hidden test cases. Always generalize. Spend time understanding the rule, not copying output.

Is this still a common IBM question in 2024?+

Pattern inference and reverse-engineering are core to IBM OAs. Questions like this rotate in and out, but the skill (analyzing examples and building a general solution fast) never stops being tested.

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

OA at IBM?
Invisible during screen share
Get it