- Go to
./tutorials
- Use the below template
---
title: '<TITLE>'
description: 'Author: @<YOUR_ALIAS>'
hide_table_of_contents: true
---
import TutorialAuthors from '@site/src/components/TutorialAuthors';
<TutorialAuthors names="@<YOUR_ALIAS>"/>
## Overview
// Your content goes here
Examples: binary-exponentiation.md
- Go to
./solutions
- Create a new page called
<PROBLEM_ID>-<PROBLEM_TITLE>-<DIFFICULTY>.md
, e.g.0202-happy-number-easy.md
- Include basic meta info such as
description
andtags
.
Template
// The Meta and Problem Statement can be generated by using a Chrome extension under `converter` locally. If you do not know how to do it, leave it blank and @wingkwong will help add them.
## Approach 1: <APPROACH_NAME>
// Your explanation goes here or you can add it to your code
<Tabs>
<TabItem value="cpp" label="C++">
<SolutionAuthor name="@YOUR_ALIAS"/>
```cpp
// Your code goes here
```
</TabItem>
<TabItem value="py" label="Python">
<SolutionAuthor name="@YOUR_ALIAS"/>
```py
# Your code goes here
```
</TabItem>
<TabItem value="go" label="Go">
<SolutionAuthor name="@YOUR_ALIAS"/>
```go
// Your code goes here
```
</TabItem>
</Tabs>
## Approach 2: <APPROACH_NAME> (ADD IT IF NECESSARY)
// Your explanation goes here or you can add it to your code
<Tabs>
<TabItem value="cpp" label="C++">
<SolutionAuthor name="@YOUR_ALIAS"/>
```cpp
// Your code goes here
```
</TabItem>
<TabItem value="py" label="Python">
<SolutionAuthor name="@YOUR_ALIAS"/>
```py
# Your code goes here
```
</TabItem>
<TabItem value="go" label="Go">
<SolutionAuthor name="@YOUR_ALIAS"/>
```go
// Your code goes here
```
</TabItem>
</Tabs>
Examples:
-
For images, please copy and paste to Github editor (the image will be uploaded to github content) to get the image link (e.g. https://user-images.githubusercontent.com/35857179/168304432-fa9ac8bb-0eb9-49d9-bdcf-5e3509c1f835.png). Do not upload any images to this repository.
-
If your content includes variables or math equations, please highlight it with katex syntax. See binary-exponentiation.md as an example.