Skip to content

Latest commit

 

History

History
109 lines (73 loc) · 2.52 KB

CONTRIBUTING.md

File metadata and controls

109 lines (73 loc) · 2.52 KB

Contributing

Tutorials

  • 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

Solutions

  • 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 and tags.

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:

Misc