mirror of
https://github.com/yangshun/tech-interview-handbook.git
synced 2026-04-13 11:49:54 +08:00
chore: remove freeform questions
This commit is contained in:
@@ -11,7 +11,7 @@ Remember to always define a base case so that your recursion will end.
|
||||
|
||||
Recursion implicitly uses a stack. Hence all recursive approaches can be rewritten iteratively using a stack. Beware of cases where the recursion level goes too deep and causes a stack overflow (the default limit in Python is 1000). You may get bonus points for pointing this out to the interviewer. Recursion will never be O(1) space complexity because a stack is involved, unless there is [tail-call optimization](https://stackoverflow.com/questions/310974/what-is-tail-call-optimization) (TCO). Find out if your chosen language supports TCO.
|
||||
|
||||
## Recommended Leetcode questions
|
||||
## Recommended LeetCode questions
|
||||
|
||||
- [Subsets](https://leetcode.com/problems/subsets/) and [Subsets II](https://leetcode.com/problems/subsets-ii/)
|
||||
- [Strobogrammatic Number II (Leetcode Premium)](https://leetcode.com/problems/strobogrammatic-number-ii/)
|
||||
- [Strobogrammatic Number II (LeetCode Premium)](https://leetcode.com/problems/strobogrammatic-number-ii/)
|
||||
|
||||
Reference in New Issue
Block a user