by jennyyang · 6y ago · 0 comments
So side projects or even real projects that are used by millions are literally meaningless.
Study LeetCode instead to get a job and focus on your job at work.
If you think things like LeetCode makes you a better programmer then you only show how inexperienced you are. You can know a lot about theory and algorithms and still write shitty, unmaintainable code.
Yes, I think it's really limited in utility. But it can offer some insight into how quick and flexible you are generally speaking.
My first impression is you can do a quick DFS recursive function that does a swap (can prolly use xor operator) on the left & right pointers