-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathqa-template.code-snippets
94 lines (94 loc) · 2.55 KB
/
qa-template.code-snippets
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
{
"Leetcode Problem Template": {
"prefix": "mdproblem",
"body": [
"# [${6:Header}](${7:Link})",
"",
"## 🚨 Problem",
"<!-- Explanation of problem. -->",
"${1:Explain the problem}",
"",
"**Example 1:**",
"<!-- An example of problem. -->",
"",
">**Input:** ${2} </br> <!-- Input example. -->",
"**Output:** ${3} </br> <!-- Output example. -->",
"**Explanation:** ${4} <!-- Basic explanation of example. -->",
"",
"**Constraints:**",
"<!-- Constraints of problem. -->",
"- ${5}",
"",
"**Follow-up:** ",
"<!-- Do more! -->",
"",
"## 🔐 Solutions",
"<!-- Solutions of problem and their links. -->",
"",
"| ID | METHOD |",
"| :-- | :--------------------: |",
"| 1 | [example](1-answer.md) |",
""
],
"description": "It creates a problem template for leetcode"
},
"Leetcode Solution Template": {
"prefix": "mdsolution",
"body": [
"# [${6:Header}](${7:link})",
"",
"## 🧑🏻💻 Approach",
"<!-- Describe your approach to solving the problem. -->",
"${1:Explain the approach}",
"",
"## 🔐 Code",
"",
"``` ${2:Programming language}",
"${3:printf(\"Hello World\");}",
"```",
"",
"## 🧩 Complexity",
"",
"- Time complexity:",
"<!-- Add your time complexity here, e.g. \\$O(n)$ -->",
"${4:Time Complexity}",
"",
"- Space complexity:",
"<!-- Add your space complexity here, e.g. \\$O(n)$ -->",
"${5:Space Complexity}",
""
],
"description": "It creates a solution template for leetcode problem"
},
"Leetcode Example Template": {
"prefix": "mdexample",
"body": [
"**Example ${1}:**",
"<!-- An example of problem. -->",
"",
">**Input:** ${2} </br> <!-- Input example. -->",
"**Output:** ${3} </br> <!-- Output example. -->",
],
"description": "It creates a example template for leetcode problem"
},
"Leetcode Example Template w/ Explanation": {
"prefix": "mdexamplewithexplanation",
"body": [
"**Example ${1}:**",
"<!-- An example of problem. -->",
"",
">**Input:** ${2} </br> <!-- Input example. -->",
"**Output:** ${3} </br> <!-- Output example. -->",
"**Explanation:** ${4} <!-- Basic explanation of example. -->",
""
],
"description": "It creates a example template with explanation for leetcode problem"
},
"Leetcode Heading Template for Solution": {
"prefix": "mdheading",
"body": [
"✅ ${1:Method} to solve the 🧑🏻💻 ${2:Question Name} Problem on 🐍 ${3:Language Name}"
],
"description": "It creates a heading for leetcode solution"
}
}