A library to help people run Leetcode testcases without the Leetcode online IDE.
Project description
leetcodeDriverPY
A simple driver to allow you to use testcases in your own code :)
If you would like to use this in your project, its a simple as
just doing pip install leetcodeDriverPY
Then once you have done that inside of your python file you will want to do something like this:
top of the file:
from leetcodeDriverPY import driver
inbetween these two segments of code should be your solution class with the solution function inside.
sol = Solution() # this should be your solution class
testcases = { # create by doing: 'testcase': answer
'answer': 'correct_solution',
}
driver(sol, testcases)
# ^ sol should be your Solution class
# testcases should be the testcases that you want to use to test your program.
Change Log
0.0.1 (12/30/2022)
- First Release
0.0.2 (12/30/2022)
- I forgot to actually make it work
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
leetcodeDriverPY-0.0.2.tar.gz
(3.5 kB
view hashes)