Hacker News new | ask | show | jobs
by HNArg024 932 days ago
Very cool OP! Just a suggestion. I would like to always have the option to see the solution link, or at least, once I pass print what was your expected solution.

Like, for the optional challenge I wrote foo(x: Optional[int] = None) and it passed but your solution was simpler with x: int|None = 0

1 comments

As long as it passed, it's considered a valid solution. The provided solution is only for reference.

I like the proposal, I can change it to showing the solution link once user has run it.