I and my SO solve leetcode individually(while facetiming :P), and most of the time we write similar code. Are we on the correct path of marrying each other or should we stay apart to avoid plagiarism? Combined TC: 400K
Hahah.. something interesting
lol combine TC 🤣🤣🤣🤣
Another nit, you are still thinking 2 individual by declaring two variables In seperate lines. She’s thinking as couple already. My advice, she is ready, you should propose. Best wishes!
Saving r and c in a var makes no sense. Also no comments about the matrix input requiring to be sorted from left to right and top to bottom. This explains why your TC is only 400k.
No doubt you are still in Microsoft. >>Also no comments about the matrix input requiring to be sorted from left to right and top to bottom. "Do you even know what is Leetcode?"
Actually, I'm not at Microsoft anymore and you are triggered because you're arguing against the readability of code... If you leave out the comments, you should at least throw an exception if the matrix traversal is not valid
Solving lc easy ones?
You sure she doesn't have some spyware set up on your machine?
How do u get a SO to leetcode with u?
It was love at first DFS
My SO and I did the LC contests weekly for several months together. Our code however is completely different (style and language)
Check space vs tab, very important
That is already in our marriage agreement :P
@OP, you guys are hilarious 😂. Btw, Can I get a referral at blooming please?😬