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

Uploaded Source

Built Distribution

leetcode_template-0.1.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: leetcode_template-0.1.0.tar.gz
  • Upload date:
  • Size: 3.6 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.0.tar.gz
Algorithm Hash digest
SHA256 42a546e09bd994adc19754dac33d4f06a68457fb01c638c6e7eb12e921367812
MD5 806fc39ad64003627a69caf872e4eeff
BLAKE2b-256 9d345afdd75e4f9671249277e89c979bb5eb91eacaa5d00405f99c3f82be3ff1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for leetcode_template-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 416156e1161d92c8204f116f88a0ea998794b95b482a31a230bc94c4b272eb93
MD5 cb5bfd568ab44aa2efbc01a8792d592e
BLAKE2b-256 7039abb0a71a443210680f39ea60f75378f814fe6ba65f3665e141c84cf8c489

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