Python Leetcode utilities
Project description
pyleetcode-utils
Features
Currently, only LeetCode TreeNode implemented.
- Converting
[5, 3, 6, 2, 4, null, 7]
->TreeNode(5, TreeNode(3,...), TreeNode(6,...))
Installation
pip install pyleetcode-utils
Example
TreeNode usage:
from pyleetcode_utils import null
from pyleetcode_utils.datatypes import tree
class Solution:
@tree.make_tree
def findTarget(self, root: tree.TreeNode, k: int) -> bool:
...
Solution().findTarget([5, 3, 6, 2, 4, null, 7], 9)
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
pyleetcode_utils-0.1.3.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for pyleetcode_utils-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6ed2dcc21dc776ed072aa5950a8b70872e70a8ffd385779b112db0823330025 |
|
MD5 | c6fdf515fb304e5bd485a686f5cba7e3 |
|
BLAKE2b-256 | a881dd416f9db973a0f1029e0703aa8bf664eda0a20a35ee835e2c208156d054 |