Skip to main content

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

leetcode_template-0.1.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

leetcode_template-0.1.1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file leetcode_template-0.1.1.tar.gz.

File metadata

  • Download URL: leetcode_template-0.1.1.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for leetcode_template-0.1.1.tar.gz
Algorithm Hash digest
SHA256 fca8470bb9310cbf631aaa6bcaa3f587435fdeeb12ee957cd0f670d23ccf4d1f
MD5 5c961af8f03c651dd387e631ab686049
BLAKE2b-256 ff8e64f4787754ff38abc20fa21f59f93dae40365ca481b36d82a90bad7fe63b

See more details on using hashes here.

File details

Details for the file leetcode_template-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for leetcode_template-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a872caf147deada9f5c22b2eeb36257ca8bec768250ae2eea043c7964f414cb7
MD5 9acee7dc9d8a30e56282d0d6586c2788
BLAKE2b-256 8789a307df2aeb3057be67fe6a314b8031c1e61c96edf138fa4a684ad353eee5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page