There's a fine line between abandoning an idea saying "nah it's a shit idea" and asking "why it isn't working?" that comes from experience and experience comes from practicing . I adore your thought process
The solution just popped into my head as soon as I understood the problem. It's fun but a little anoying when you think so fast you can't expain your thought process but I know my mind went into the direction of mathologers video on tiling with dominos.
Fun fact. If there is a 0 somewhere you can just move the single negative number in the end and have it eaten by the zero. Also fun fact is that you dont have to bother with finding a 0 cuz, when you do the calculation u will subtract 2*0 anyway )))))
He explains it, I think, but: it"s because you have an odd amount of negative numbers. Without a 0 you can't flip all of them. Prove is either intuitive or by induction.
Because we have to always take 2 numbers and flip them. If you have an odd number of negative numbers there's no possible way to make them all positive since we need to take two at a time
Sir I request you to make a video on solving the icpc contest questions which happened yesterday and upload the video Pls don't ignore sir this will be most helpful pls sir
managed to solve this one on my own, feeling so proud man..
Man, this was mind-blowing, the way you explain your thought process is ❤❤❤❤❤
There's a fine line between abandoning an idea saying "nah it's a shit idea" and asking "why it isn't working?" that comes from experience and experience comes from practicing . I adore your thought process
10:11 new python logo just dropped
The solution just popped into my head as soon as I understood the problem.
It's fun but a little anoying when you think so fast you can't expain your thought process but I know my mind went into the direction of mathologers video on tiling with dominos.
Wow, this thought process is absolutely mind-blowing!
Fun fact. If there is a 0 somewhere you can just move the single negative number in the end and have it eaten by the zero. Also fun fact is that you dont have to bother with finding a 0 cuz, when you do the calculation u will subtract 2*0 anyway )))))
thank you for your explanation, it helps me a lot!
Love this thanks❤
thank you for great explanation
Mind freakin' brilliant
thank you so much for this
Such an obvious one, can't believe I missed it. Was a good question though
If someone instantly solves a leetcode hard problem are they grandmaster level coder?
@@ceciljoel9577maybe, but prob no since leetcode hards are ton easier than 3600* codeforces problems
love snake 9:57
9:59 SNEK!
amazing!!
Actually true the problem was not difficult it was fun :)
love this
Thanks brother
wow i was complicating this so much
it was a very nice problem
6:49
Why isn't it possible?
He explains it, I think, but: it"s because you have an odd amount of negative numbers. Without a 0 you can't flip all of them. Prove is either intuitive or by induction.
Because we have to always take 2 numbers and flip them. If you have an odd number of negative numbers there's no possible way to make them all positive since we need to take two at a time
thanks :)
Can someone explain me the last step ? i'm really confused
Damn this was one hell of an observation
please solve leetcode 493.Reverse Pairs
i code in java but always sees your video for approacha
wow
Sir I request you to make a video on solving the icpc contest questions which happened yesterday and upload the video
Pls don't ignore sir this will be most helpful pls sir
Bro thinks he’s neetcode’s boss 😂