Skip to main content

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)

Source distribution for leetcode-template 0.1.3
File Size Uploaded
leetcode_template-0.1.3.tar.gz 5.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for leetcode-template 0.1.3
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page