How to come up with counterexamples for an approach.
I get the logic and I am pretty sure that this approach would work until I get to know the case where it would fail.
Only if I could come up with edge cases quickly it would help me avoid coding wrong answers and then changing the logic and coding again.
Has someone faced a similar problem and does anyone have any good tips for this?
Thank you!
May the compiler be with you.