Background: We all are home for the current pandemic situation. Leetcode has taken this opportunity to throw a challenge for the users (which is po...
For further actions, you may consider blocking this person and/or reporting abuse
While I like the XOR trick. Seeing as this is #c, here's some C code...
Nice code. My one is C++ though!
OK. I was maybe too subtle.
I was really just pointing out the fact that you posted C++ code to the #c topic, when you actually wanted the #cpp one...
Remember, C != C++, I see people conflating the two all too often...
Oh I see! My bad! Actually what happened is, I gave tag as 'c++' which I guess the editor cannot differentiate. It just omits the '++'. Now I have given cpp which works. Thanks for the correction though :)