leetcode precompiled package
Project description
LeetCode Python 预编译库
欢迎使用 LeetCode Python 工具库!
本库包含
- leetcode 官方声明的所有数据结构
- 本地测试所需的各种工具函数 api说明
安装
目前稳定版本为0.1.8。 可以通过以下命令安装该库:
bash
pip install precompiled
pdm
pdm add precompiled
使用说明
安装完成后,您可以在 Python 代码中使用以下导入语句来访问leetcode所有数据结构:
python
复制
from precompiled.listnode import ListNode
from precompiled.nestedinteger import NestedInteger
from precompiled.treenode import TreeNode
常用数据结构和方法
- ListNode:链表节点
- 默认实现eq方法
- array_to_list_node 将数组转换成链表,返回头结点
- arrays_to_list_node 将多个数组转成多个链表,返回以链表为元素的元组
- index: 返回链表第 idx 个节点, 下标从 0 开始。
- NestedInteger:嵌套整数
- TreeNode:树节点
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
precompiled-0.1.11.tar.gz
(5.6 kB
view details)
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 precompiled-0.1.11.tar.gz.
File metadata
- Download URL: precompiled-0.1.11.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: pdm/2.19.1 CPython/3.10.12 Linux/6.5.0-1025-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f86fd784aa0348dc24be18cc960982c830d54aa729a2dcc87188e7f05626f112
|
|
| MD5 |
c071adac99feff763f5616c5117c091c
|
|
| BLAKE2b-256 |
2c195842b2eea532b24459adf8ca104a91610222c2135455dfc6f6b1664d60ec
|
File details
Details for the file precompiled-0.1.11-py3-none-any.whl.
File metadata
- Download URL: precompiled-0.1.11-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: pdm/2.19.1 CPython/3.10.12 Linux/6.5.0-1025-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
76324807f4d2e4eda37e12ecec511e799c285a99557325f25f96b8ac181c43aa
|
|
| MD5 |
b64503782003c706bd82544865bb6b36
|
|
| BLAKE2b-256 |
a52f9c3724144f52903b50fb5f4f8e1a515a5e549785707d561ff3337f466574
|