Skip to content

Commit 74ff5a2

Browse files
Sean PrashadSean Prashad
authored andcommitted
Improve formatting for Tips component
1 parent b3a8c4c commit 74ff5a2

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

web/src/components/Tips/index.js

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,39 +7,39 @@ const Tips = () => {
77
const input = `
88
\`\`\`md
99
If input array is sorted then
10-
- Binary search
11-
- Two pointers
10+
- Binary search
11+
- Two pointers
1212
1313
If asked for all permutations/subsets then
14-
- Backtracking
14+
- Backtracking
1515
1616
If given a tree then
17-
- DFS
18-
- BFS
17+
- DFS
18+
- BFS
1919
2020
If given a graph then
21-
- DFS
22-
- BFS
21+
- DFS
22+
- BFS
2323
2424
If given a linked list then
25-
- Two pointers
25+
- Two pointers
2626
2727
If recursion is banned then
28-
- Stack
28+
- Stack
2929
3030
If asked for maximum/minumum subarray/subset/options then
31-
- Dynamic programming
31+
- Dynamic programming
3232
3333
If asked for top/least K items then
34-
- Heap
34+
- Heap
3535
3636
If asked for common strings then
37-
- Map
38-
- Trie
37+
- Map
38+
- Trie
3939
4040
Else
41-
- Map/Set for O(1) time & O(n) space
42-
- Sort input for O(nlogn) time and O(1) space
41+
- Map/Set for O(1) time & O(n) space
42+
- Sort input for O(nlogn) time and O(1) space
4343
\`\`\``;
4444

4545
return <ReactMarkdown className="tips" source={input} />;

0 commit comments

Comments
 (0)