Algorithm · OpenAI · Medium
A software product maintains a chronologically sorted list of released versions. Every version string is formatted as "MAJOR.MINOR.PATCH" (e.g., "103.3.2"). A particular feature was first introduced in one of these releases; once a version supports it, every later version in the list also supports it. You are given the sorted list versions and a VersionChecker API (defined below). Use this API to locate the earliest version in versions that supports the feature, while…
Checking your access…