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"
}
]
}
Metadata
Release files for leetcode-template 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| leetcode_template-0.1.3.tar.gz | 5.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| leetcode_template-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.9 kB
Release files / leetcode_template-0.1.3.tar.gz
| Download URL | leetcode_template-0.1.3.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ab30b9b08bc84cbd5501f305aa3aba43ed028a1820a92e224767c72e6d7e10c2
|
|
BLAKE2b-256 checksum How to use checksums |
6b724ad3e80033fa1109aae7bed33633841b405186d8b86e3c4f3fa52821c92c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.19
|
Release files / leetcode_template-0.1.3-py3-none-any.whl
| Download URL | leetcode_template-0.1.3-py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
510731e45482c347fc1f69c3c3e7f20e5b199e8320744c3502830c710517c2fd
|
|
BLAKE2b-256 checksum How to use checksums |
8f8db88deb3963eae2fccfa125520d663f1a6b4df892d2f0f8ed5807161f65e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.19
|