Resolve algorithmic problem