contents: rearrange algo layout structure

This commit is contained in:
Yangshun
2022-04-06 09:47:25 +08:00
parent 0acd6749ca
commit 73dd64f96d
16 changed files with 151 additions and 147 deletions

View File

@ -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.