Minimizing Worst-Case Complexity

d-viz

I recently received a very interesting submission to the Typescript Programming Test Problems Repo. The problem was given to a senior developer as part of a homework exercise in which he was supposed to analyze the…