← Questions

Resolve package versions from dependency constraints

0
OpenAICodingLast asked May 2026

Packages have versions, and each version may require other packages within a version range. Parse the dependency specs, answer queries about which versions satisfy a constraint, and finally pick one version of every needed package so that all constraints hold at once, or report that no such choice exists.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding