mirror of
https://github.com/yangshun/tech-interview-handbook.git
synced 2025-07-28 04:33:42 +08:00
contents: integrate best-practice-questions into rest of the docs
This commit is contained in:
@ -52,11 +52,11 @@ In algorithm interviews, graphs are commonly given in the input as 2D matrices w
|
||||
|
||||
`|V|` is the number of vertices while `|E|` is the number of edges.
|
||||
|
||||
| Algorithm | Big-O |
|
||||
| -------------------- | --------------------------------- |
|
||||
| Depth-first search | O(|V| + O|E|) |
|
||||
| Breadth-first search | O(|V| + O|E|) |
|
||||
| Topological sort | O(|V| + O|E|) |
|
||||
| Algorithm | Big-O |
|
||||
| -------------------- | -------------------------------- |
|
||||
| Depth-first search | O(|V| + |E|) |
|
||||
| Breadth-first search | O(|V| + |E|) |
|
||||
| Topological sort | O(|V| + |E|) |
|
||||
|
||||
## Things to look out for during interviews
|
||||
|
||||
|
Reference in New Issue
Block a user