I am Software Developer, currently interested in static type languages (TypeScript, Elm, ReScript) mostly in the frontend land, but working actively in Python also. I am available for mentoring.
Good hack Rahul. Unfortunately you can also do the same for all these solution and hack them. I don't think it is possible to prevent such, in the same way we can hack almost every type by as any as X thing.
In any way I think the wanted behavior was achieved, even though we can hack it, the hack is explicitly visible in the code.
But thanks for the comment!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thanks for the answers Maciej.
However the first solution doesn't complain 😢 if i use this input -
Good hack Rahul. Unfortunately you can also do the same for all these solution and hack them. I don't think it is possible to prevent such, in the same way we can hack almost every type by
as any as X
thing.In any way I think the wanted behavior was achieved, even though we can hack it, the hack is explicitly visible in the code.
But thanks for the comment!