OpenAI

Verified interview challenge

Find the earliest supported version

Search for the first supported version while adapting to changing assumptions about the support pattern.

Unlock with Full Access

The challenge

Version strings are not supplied in numeric version order, and checking support is expensive. The parts move from one support boundary to regressions and a more structured support pattern. Choose a search strategy justified by the current contract rather than assuming binary search is valid in every part.

What you'll practise

  • Version ordering

    Compare numeric version components while returning the original representation.

  • Search assumptions

    Use the available structure to control probe calls without skipping possible answers.

Your coding workspacePreview
Current partFurther parts unlock as you progress
solution.pyPython 3.13
# Build on your implementation

# Run checks for the current part

# Full starter code included
Current-part checks

Run your code to see results.

The complete sequence, starter code and checks are included with Full Access.