Skip to content

Commit 23553f4

Browse files
committed
init question
1 parent ce813c4 commit 23553f4

File tree

13 files changed

+100
-0
lines changed

13 files changed

+100
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## Problem
2+
3+
Write a concise problem description here.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"input": "...",
3+
"output": "...",
4+
"reasoning": "Explain why the output follows from the input."
5+
}
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
## Solution Explanation
2+
3+
Add intuition, math, and step-by-step reasoning here.
4+
5+
### Writing Mathematical Expressions with LaTeX
6+
7+
This editor supports LaTeX for rendering mathematical equations and expressions. Here's how you can use it:
8+
9+
1. **Inline Math**:
10+
- Wrap your expression with single `$` symbols.
11+
- Example: `$E = mc^2$` → Renders as: ( $E = mc^2$ )
12+
13+
2. **Block Math**:
14+
- Wrap your expression with double `$$` symbols.
15+
- Example:
16+
```
17+
$$
18+
\int_a^b f(x) \, dx
19+
$$
20+
```
21+
Renders as:
22+
$$
23+
\int_a^b f(x) \, dx
24+
$$
25+
26+
3. **Math Functions**:
27+
- Use standard LaTeX functions like `\frac`, `\sqrt`, `\sum`, etc.
28+
- Examples:
29+
- `$\frac{a}{b}$` → ( $\frac{a}{b}$ )
30+
- `$\sqrt{x}$` → ( $\sqrt{x}$ )
31+
32+
4. **Greek Letters and Symbols**:
33+
- Use commands like `\alpha`, `\beta`, etc., for Greek letters.
34+
- Example: `$\alpha + \beta = \gamma$` → ( $\alpha + \beta = \gamma$ )
35+
36+
5. **Subscripts and Superscripts**:
37+
- Use `_{}` for subscripts and `^{}` for superscripts.
38+
- Examples:
39+
- `$x_i$` → ( $x_i$ )
40+
- `$x^2$` → ( $x^2$ )
41+
42+
6. **Combined Examples**:
43+
- `$\sum_{i=1}^n i^2 = \frac{n(n+1)(2n+1)}{6}$`
44+
Renders as:
45+
$\sum_{i=1}^n i^2 = \frac{n(n+1)(2n+1)}{6}$
46+
47+
Feel free to write your own mathematical expressions, and they will be rendered beautifully in the preview!
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"id": "XXX",
3+
"title": "TITLE GOES HERE",
4+
"difficulty": "medium",
5+
"category": "Machine Learning",
6+
"video": "",
7+
"likes": "0",
8+
"dislikes": "0",
9+
"contributor": [],
10+
"tinygrad_difficulty": "",
11+
"pytorch_difficulty": ""
12+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
def your_function(...):
2+
...
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
def your_function(...):
2+
pass
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[
2+
{
3+
"test": "print(your_function(...))",
4+
"expected_output": "..."
5+
}
6+
]
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
def your_function(...):
2+
# reference implementation
3+
...
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Implement your function below.
2+
3+
def your_function(...):
4+
pass
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[
2+
{
3+
"test": "print(your_function(...))",
4+
"expected_output": "..."
5+
}
6+
]

0 commit comments

Comments
 (0)