At most a suggestion: fixed.
Its both experience and logical thinking and understanding of python fundamentals.
We can excel at 2/3 of those which will be good enough.
developing logical thinking is also possible but it comes to some ppl naturally i guess.
Same dude, it took me like 2 hours. When I saw this I wanted to cry. How are people so good at this? Is it just an experience thing?
This is very nice. Even updating it to reflect the slightly updated requirements of the problem (i.e return (a,b,True) or (a,b, False) would just add only a line or two.
Sheesh that's a great solution. Well done 👍
I also stored waaaaay too much data.. I spent way too much time on the math for this one too.
This solution is so elegant and beautiful
really like this solution .i exhausted too much brain on my solution.
took me minute to figure out. Holy snikees. Love this solution.
That's a bit easy for a 6kyu. You don't even have to think, the solution is given.