mirror of
https://github.com/yangshun/tech-interview-handbook.git
synced 2025-07-30 21:53:28 +08:00
contents: rearrange algo layout structure
This commit is contained in:
@ -41,6 +41,10 @@ Here we assume the other string is of length m.
|
||||
| Split (by token) | O(m) | |
|
||||
| Strip (remove leading and trailing whitespaces) | O(n) | |
|
||||
|
||||
## Things to look out for during interviews
|
||||
|
||||
Ask about input character set and case sensitivity. Usually the characters are limited to lowercase Latin characters, for example a to z.
|
||||
|
||||
## Corner cases
|
||||
|
||||
- Empty string
|
||||
@ -48,10 +52,6 @@ Here we assume the other string is of length m.
|
||||
- String with repeated characters
|
||||
- Strings with only distinct characters
|
||||
|
||||
## Things to look out for during interviews
|
||||
|
||||
Ask about input character set and case sensitivity. Usually the characters are limited to lowercase Latin characters, for example a to z.
|
||||
|
||||
## Techniques
|
||||
|
||||
Many string questions fall into one of these buckets.
|
||||
|
Reference in New Issue
Block a user