![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构
pb_0219
944907482
展开
-
栈(添加尾部元素、删除尾部元素、返回尾部元素、返回长度、判空)
import 文件的地址 https://blog.csdn.net/qq_21944445/article/details/99705171 # coding:utf-8 from linklist import LinkList # 栈 class Stack(LinkList): def __init__(self): super().__init__() ...原创 2019-08-18 17:15:41 · 446 阅读 · 0 评论 -
单向不循环链表(创建、遍历、增、删、查找、判空)
# coding: utf-8 # 链表节点 class Node(object): def __init__(self, item): self.item = item self.next = None # 单向不循环链表 class LinkList(object): def __init__(self): self._h...原创 2019-08-18 15:28:27 · 192 阅读 · 0 评论 -
几种排序算法的python实现
#!/usr/bin/env python # -*- coding: utf-8 -*- import numpy as np import random def bubblesort(x): """ 冒泡排序 :param x: 待排序list :return: 排序后list """ n = len(x) for ...原创 2019-08-26 18:59:45 · 119 阅读 · 0 评论