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

Uploaded Source

Built Distribution

leetcode_template-0.1.2-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: leetcode_template-0.1.2.tar.gz
  • Upload date:
  • Size: 5.0 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.2.tar.gz
Algorithm Hash digest
SHA256 db1982faaec51daa27b566ee294d37fdbcdcd17bbde4f2b6c4322d904b5846e4
MD5 ed08a5df43eb585b1dd7f08e4bddb536
BLAKE2b-256 66d56cf10db82481bd78221f3bdbb37227c3fd0f002c896aafe3b34699d7970d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for leetcode_template-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 71b109034b961244d5254d0133c9078cd6f26c8210c9fdcaa704547839308154
MD5 8737c7aded6be66ce81860c84456b185
BLAKE2b-256 297951cda05aa434db3c18d11bae103b6da789e2a1149b9f95d1d9f0ed625ddc

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