
数据结构和算法
Jumay0612
一个热爱生活,热爱编程的程序媛,擅长数据处理和分析,目前在做机器学习和数据挖掘方向。喜欢leetcode,虽然脑子不灵光,一直保持锻炼中,防止生锈。。。
展开
-
leetcode算法题(3)--不含重复字符的最长子串长度-Longest Substring Without Repeating Characters
整理自己对一些leetcode算法题的想法和实现,一直努力,每天都有新提高 –来自一个热爱编程的程序媛 1.LeetCode地址: Longest Substring Without Repeating Characters 2.难度:medium 3.题目: Given a string, find the length of the longest substring without repe...原创 2019-07-17 09:58:41 · 464 阅读 · 0 评论 -
python技能实践练习(一)---- 字典排序
python比较常用的数据结构就是字典,有时候我们需要按照value值对字典进行排序操作。 我们知道sorted能对list进行排序。我们就用sorted实现 下面写了3中方法。 1. 直接转成列表 d = {'a': 1, 'b': 4, 'c': 2} # d.items()以列表返回可遍历的(键, 值) 元组数组 a = sorted(d.items(), key=lambda x: x[1...原创 2019-04-23 18:44:57 · 263 阅读 · 0 评论 -
各种树--二叉排序树、红黑树、AVL树、B树,B+树和B*树
教你初步了解红黑树 剑指XX游戏(六) - 轻松搞定面试中的红黑树问题 二叉排序树、红黑树、AVL树最简单的理解转载 2019-04-17 16:46:43 · 312 阅读 · 0 评论 -
leetcode算法题(757)--Set Intersection Size At Least Two 找到能与每个集合相交保留至少2个元素的最小集合S
leetcode 找到能与每个集合相交保留至少2个元素的最小集合S leetcode题目: https://leetcode.com/problems/set-intersection-size-at-least-two/ 思路来自:大神太厉害,开始以为很难的题目,发现思想如此简单。 https://leetcode.com/problems/set-intersection-size-at-le...原创 2019-03-29 10:55:34 · 327 阅读 · 0 评论