Generate leetcode template
Project description
Leetcode Template
Quick Start
pip install leetcode-template
generate # A config file will be generated in the current directory
# Edit the config file to suit your needs
generate # Rerun the command to generate the directory structure based on the config file
Config File
{
"problemNumber": 605,
"returnType": "bool",
"functionName": "canPlaceFlowers",
"parameters": [
"std::vector<int>& flowerbed",
"int n"
],
"includeList": ["vector"],
"testCases":[{
"testName": "Test1",
"input": [
"std::vector<int> flowerbed {1,0,0,0,0,0,1};",
"int n = 1;"
],
"inputParams": ["flowerbed", "n"],
"expectedOutput": "true"
},
{
"testName": "Test2",
"input": [
"std::vector<int> flowerbed = {1,0,0,0,1,0,1,0,0,1};",
"int n = 2;"
],
"inputParams": ["flowerbed", "n"],
"expectedOutput": "false"
}
]
}
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file leetcode_template-0.1.3.tar.gz.
File metadata
- Download URL: leetcode_template-0.1.3.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab30b9b08bc84cbd5501f305aa3aba43ed028a1820a92e224767c72e6d7e10c2
|
|
| MD5 |
fcc8ce338135017f7edc4e88bb11fd6e
|
|
| BLAKE2b-256 |
6b724ad3e80033fa1109aae7bed33633841b405186d8b86e3c4f3fa52821c92c
|
File details
Details for the file leetcode_template-0.1.3-py3-none-any.whl.
File metadata
- Download URL: leetcode_template-0.1.3-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
510731e45482c347fc1f69c3c3e7f20e5b199e8320744c3502830c710517c2fd
|
|
| MD5 |
f20d9ad616d50bf18092ccb111a1027d
|
|
| BLAKE2b-256 |
8f8db88deb3963eae2fccfa125520d663f1a6b4df892d2f0f8ed5807161f65e1
|