Reported February 2024
Flexport

Get Expression Sums

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

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

Flexport's February OA included a problem called Get Expression Sums that doesn't have a published statement online yet. This is a gap in the problem bank. If your OA has this question, you're seeing a fresh or rotated prompt. The title hints at arithmetic evaluation or sum calculation from expressions. StealthCoder will read the problem on screen and give you the pattern in real time, so you won't be guessing on a live timer.

Pattern and pitfall

Without the verbatim problem text, the pattern could be arithmetic expression evaluation (parsing and computing sums), dynamic programming over subsets of an expression, or recursive sum computation over different groupings. The most common Flexport variant involves parsing an infix or postfix expression and computing all possible sums by choosing different operator precedences or groupings. The pitfall is off-by-one errors in tokenization, operator precedence bugs, or missing edge cases with negative numbers. If it's a DP problem, you'll need memoization on subexpression states. StealthCoder will parse the exact problem text on your screen and map it to the right approach the moment you see it.

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 Get Expression Sums 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

⏵ The honest play

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

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

Get Expression Sums FAQ

What does 'Get Expression Sums' actually ask for?+

The problem likely asks you to compute all possible sums from an expression by choosing different ways to evaluate it, or to find the sum of all valid interpretations of a given string. Without the full text, assume it involves parsing and combinatorial evaluation. The OA will make it clear on screen.

Is this a parsing problem or a DP problem?+

Likely both. You'll parse the expression into tokens, then use recursion or DP to explore different evaluation orders or operator choices. Memoization on substring ranges is a common pattern for this type of question.

How do I prepare in 24 hours if I don't have the problem text?+

Study expression evaluation (postfix/infix conversion), recursive descent parsing, and DP on intervals. Know how to tokenize strings and handle operator precedence. These are the building blocks for any expression-sum variant.

What's the gotcha with this problem?+

Negative numbers, zero, and operator precedence. Also, make sure you're exploring all possible groupings if the problem allows parentheses. Off-by-one errors in parsing are common. Test edge cases early.

Is this problem still asked at Flexport?+

It was reported in February 2024. Flexport rotates problems frequently, so it may or may not appear in your OA. But the pattern is classic enough that similar variants are likely in their pool.

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

OA at Flexport?
Invisible during screen share
Get it