Do you deliberately give a solution that's suboptimal (though better than brute force) even though you have memorized a more optimal one, to avoid raising expectations in the mind of the interviewer in terms of future questions he may throw at you. Assuming the suboptimal solution is already quite decent and you understood very well. Example, recover binary search tree, which is leetcode number 99. The "straight forward" solution has space of o(n), while a solution using Morris traversal has o(1) space, same time complexity.
I don’t know why you would sabotage yourself like that. A suboptimal solution might be the difference between an offer or not.
I only come up with shitty answers to interview questions to avoid raising expectations. Probably why I still work here...
Sandbagging an interview? 🤔
Since it's warfare, you need to go with dagger in tow.
Why would you even MEMORIZE a solution? Just use your critical thinking and do the best you can provide. Memorizing a solution gives the employer false promise of their sense of your skills.
Blind is full of people who want SWE jobs but can't write their own code, apparently.
Turns out that critical thinking doesn't cut it in terms of going above the bar.
You should not be memorizing anyway tho...
Working Parents
14h
1097
Closed now - thank you all
Working Parents
Yesterday
955
What do you think is wrong with a kid who got rejected by 9 colleges?
Tech Industry
Yesterday
2266
The end of Backdoor Roth?!
Software Engineering Career
Yesterday
414
Google L4 vs Linkedin L3
India
Yesterday
1009
Modi is a legend, will be remembered for centuries to come
You are over thinking this. In the end, they'll compare the best you came up with with what the others came up with