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.3.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

leetcode_template-0.1.3-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

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

Hashes for leetcode_template-0.1.3.tar.gz
Algorithm Hash digest
SHA256 ab30b9b08bc84cbd5501f305aa3aba43ed028a1820a92e224767c72e6d7e10c2
MD5 fcc8ce338135017f7edc4e88bb11fd6e
BLAKE2b-256 6b724ad3e80033fa1109aae7bed33633841b405186d8b86e3c4f3fa52821c92c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for leetcode_template-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 510731e45482c347fc1f69c3c3e7f20e5b199e8320744c3502830c710517c2fd
MD5 f20d9ad616d50bf18092ccb111a1027d
BLAKE2b-256 8f8db88deb3963eae2fccfa125520d663f1a6b4df892d2f0f8ed5807161f65e1

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