6 ms·
> correct base solution in the first 2-3 minutes Not only correct solution but also generate alternatives to showcase what other things you know to get strong-
by devnull3 5y ago
> correct base solution in the first 2-3 minutes
Not only correct solution but also generate alternatives to showcase what other things you know to get strong-hire.
Example:
This problem was asked in Google: https://leetcode.com/problems/cat-and-mouse/ https://leetcode.com/problems/cat-and-mouse/
It is actually based on a paper [1]. Plus it seems it is expected that one needs to know about 'alpha-beta' pruning algos for such problems.
If you solve this using dfs ... its basically gtfo
[1] https://www.semanticscholar.org/paper/Undirected-Cat-and-Mouse-is-P-complete-Huq/2ee617f10fa115a94ff7b59a6120ff33dd1dde87?p2df https://www.semanticscholar.org/paper/Undirected-Cat-and-Mou...
- rejectedandsad 5y agoI don't know how I'm ever going to be happy. I just straight up don't have the intellect to be considered competent in this field. What's worse is how people downplay the difficulty of this or say it's easily gameable if you just "grind leetcode", as if the rest of us aren't trying already but failing because of our genetic failings.
- VonGallifrey 5y agoWhen people say "grind leetcode" they don't mean it as a tool to get better at these kinds of problem solving. What they basically mean is that if you "grind leetcode" you have a better chance of being asked a question in these interviews that you have solved before and simply write down the solution during the interview.