Find the smallest positive integer that does not occur in a given sequence asked how to solve a particular Codility problem in Java (it was tagged with the java tag originally).
Since then, the page has acquired answers in a variety of other languages that Codility supports (and maybe others, I didn't really check all 118). Many of those answers are very well-received. Eventually, the asker removed the java tag.
Generally, we scope questions to one language/technology (with some exceptions for things like Java/Kotlin or JavaScript/TypeScript where there's interop between the two), which would make "solve this in any language" not especially well-scoped.
What should we do in a situation like this?
- Is it a problem? Or is it okay since all the answers address the problem of "how to pass this exercise in Codility?"
- If it is a problem, how should we solve it?