InterviewLegend

Dates, Strings and Shapes

Alex Chen40 min readUpdated 63 real interview reports

Some Optiver sittings put a short question or two beside the long simulation. These read quickly, but they're easy to get slightly wrong, so it helps to have the details settled before the test. Two of the four problems here are about dates, and both ban the date library, so you do the calendar math yourself.

The shape question checks that you know your language's inheritance syntax well. The fourth problem is a string DP, and a small observation inside it cuts the work down.

Keep all four quick, since the simulation needs most of the clock. On the date problems, century years cause the most bugs. 1900 had no February 29, and 2000 did, so check both by hand before you submit. And when a problem asks for distinct dates, a date that repeats still fills only one place.

OptiverPremium lesson · Coding round

The 4 Optiver problems are below.

  1. A Premium questionCoding · Easy · Frequently asked
  2. A Premium questionCoding · Easy
  3. A Premium questionCoding · Easy

+ 1 more in this lesson

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

Get the Optiver questions

$49 a year · all 100 companies · cancel anytime

From 20,000+ candidate reports, forum threads behind logins and write-ups in Chinese.

Had your Optiver interview?Tell us what they asked. Reviewed before it goes in, never with your name.
Optiver interview guide

Know what Optiver asks before you walk in.

21 coding · 2 system design · 19 behavioral questions

Get Premium$49 a year · Cancel anytime
Or start freeNo card.

Get their questions first.

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