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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyleetcode_utils-0.1.3.tar.gz.
File metadata
- Download URL: pyleetcode_utils-0.1.3.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.1 Linux/6.5.0-1017-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f0008f65858a9460f8d4139119c23b4634366d73269787ee607a15d75b8b851e
|
|
| MD5 |
65036aaa025493cd4fba4107f597f9c5
|
|
| BLAKE2b-256 |
9e8213e474cccb2f9a425c1a39865da448a0c6f379e04fea0c9e9f9996f4dc60
|
File details
Details for the file pyleetcode_utils-0.1.3-py3-none-any.whl.
File metadata
- Download URL: pyleetcode_utils-0.1.3-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.1 Linux/6.5.0-1017-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c6ed2dcc21dc776ed072aa5950a8b70872e70a8ffd385779b112db0823330025
|
|
| MD5 |
c6fdf515fb304e5bd485a686f5cba7e3
|
|
| BLAKE2b-256 |
a881dd416f9db973a0f1029e0703aa8bf664eda0a20a35ee835e2c208156d054
|