InterviewLegend

Stock Trades, Profitable Pairs & Swaps

Alex Chen45 min readGuide updated

Not every Akuna Capital coding question is a long build. Mixed in with the order books and rate limiters is a set of short problems: a sort, one pass and a counting argument. They're wrapped in a trading story, like projects with profits or stock quotes out of order. Some came up on the HackerRank OA and some on live technical screens. One of them reached data science and quant researcher candidates too.

The four below run from the most recent report to the oldest. Profitable pairs was listed as late as July 2026. A Premium question goes back to 2023 and was still listed in June 2026. The binary string ran from 2024 to May 2026, and the distinct-values swap problem came up in May 2026. What follows is a clean version of each shape. Your wording, limits and tie rules may differ, so read the real prompt twice.

The Akuna Capital angle
The story hides a classic, and the classic hides an edge case. Akuna's short problems rarely need a clever algorithm. They need you to see the greedy under the trading words, then catch the detail the story slipped in: a symbol with no price that day, or a count too big for 32 bits.

All four come down to one question: what can you decide safely right now? Pair the smallest profit with the largest. Carry the best cash and the best holding value through each date. Count, for every 0, the 1s that have to cross it. Spend a swap only when it trades a spare copy for a new value.

Akuna CapitalPremium lesson · Coding round

The 4 Akuna Capital problems are below.

  1. A Premium questionCoding · Medium
  2. A Premium questionCoding · Medium
  3. A Premium questionCoding · Medium

+ 1 more in this lesson

Each with hints, the follow-up and a tested solution.

Get the Akuna Capital questions

$49 a year · all 122 companies · instant access

21,000+ candidate reports

Akuna Capital interview guide

Know what Akuna Capital asks before you walk in.

30 coding · 5 system design · 16 behavioral questions

Get Premium$49 a year · Instant access
Or start freeNo card.

Get their questions first.

Had your Akuna Capital interview?How we research

InterviewLegend is independent and not affiliated with or endorsed by any company it covers.