Stock Trades, Profitable Pairs & Swaps
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.
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.
- A Premium questionCoding · Medium
- A Premium questionCoding · Medium
- 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 guideKnow what Akuna Capital asks before you walk in.
30 coding · 5 system design · 16 behavioral questions
Get their questions first.
InterviewLegend is independent and not affiliated with or endorsed by any company it covers.