Senior Data Structure Tools.
Project description
Senior Data Structure Tools–SDStools
python标准库中没有链表、树、图等高级数据结构,所以整理了一些网上的代码到这个库中。仅供学习。
linkedlist
LinkList ## 单向链表
SinCycLinkList ## 单向循环链表
TwoWayLinkList ## 双向链表
tree
Binary Tree # 二叉树
Install & Usage:
pip install SDStools from SDStools.linkedlist.LinkList import SingleLinkList from SDStools.linkedlist.LinkList import linklist ## SingleLinkList实现的方法如下 is_empty() # 链表是否为空 length() # 链表长度 items() # 遍历整个链表 add(item) # 链表头部添加元素 append(item) # 链表尾部添加元素 insert(index, item) # 指定位置添加元素 remove(item) # 删除节点 find(item) # 查找节点是否存在 clear() # 清除链表数据 ## linklist 实现列表转链表 list_data = [1, 2, 3, 4] link_list = linklist(list_data) print(link_list) ## [(0, 1), (1, 2), (2, 3), (3, 4)]
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
SDStools-0.1.7.tar.gz
(6.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 SDStools-0.1.7.tar.gz.
File metadata
- Download URL: SDStools-0.1.7.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.3 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b0abc2745f974e1021d58ef97b56e094a588ef1de6fdecf81ba9f2de0fd818a2
|
|
| MD5 |
65f3b62beb5a1e3143fd0d645ec8f178
|
|
| BLAKE2b-256 |
2ebb57688b2ccb6cf0e7d1fdcccd9d930117433fd735f5ae1a78814ac0fc3a12
|
File details
Details for the file SDStools-0.1.7-py2.py3-none-any.whl.
File metadata
- Download URL: SDStools-0.1.7-py2.py3-none-any.whl
- Upload date:
- Size: 8.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.3 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00e6767a426c4c62f3dab91e805d91b43104bf515c5e5dba1d62d8fa8b1c775d
|
|
| MD5 |
303613f2a620ca773f1a80966f15ae2b
|
|
| BLAKE2b-256 |
a24f8b9d64ca9bc6096090e02502b0d7474227b06122f54b1e1fe4555e6dc4fe
|