README.md 8.5 KB
Newer Older
梦境迷离's avatar
梦境迷离 已提交
1
Leetcode Rust 实现
梦境迷离's avatar
梦境迷离 已提交
2
--
梦境迷离's avatar
梦境迷离 已提交
3

梦境迷离's avatar
梦境迷离 已提交
4
超简单的算法题目,主要为了熟悉rust语法。源码在Solution.rs,并包含部分测试(均AC,90%是双100)
梦境迷离's avatar
梦境迷离 已提交
5

梦境迷离's avatar
梦境迷离 已提交
6 7
根据优先级,当LeetCode题目本身不支持(或不方便实现,比如Rust TreeNode)才会选择Java,并在java-leetcode项目下实现。

梦境迷离's avatar
梦境迷离 已提交
8 9
无注明,默认是LeetCode系列

梦境迷离's avatar
梦境迷离 已提交
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130
以下按照Solution.rs源码中的行号往下递增

* [面试题 22 链表中倒数第k个节点](https://github.com/jxnu-liguobin/cs-summary-reflection/blob/master/rust-leetcode/src/Solution.rs#L153)

* [1351 统计有序矩阵中的负数](https://github.com/jxnu-liguobin/cs-summary-reflection/blob/master/rust-leetcode/src/Solution.rs#L189)

* [面试题 02.02 返回倒数第 k 个节点值](https://github.com/jxnu-liguobin/cs-summary-reflection/blob/master/rust-leetcode/src/Solution.rs#L95)

* [面试题 55 - I 二叉树的深度](https://github.com/jxnu-liguobin/cs-summary-reflection/blob/master/rust-leetcode/src/Solution.rs#L207)

* [面试题 04.02 最小高度树](https://github.com/jxnu-liguobin/cs-summary-reflection/blob/master/rust-leetcode/src/Solution.rs#L229)

* [1281 整数的各位积和之差](https://github.com/jxnu-liguobin/cs-summary-reflection/blob/master/rust-leetcode/src/Solution.rs#L255)

* [面试题 58 - II 左旋转字符串](https://github.com/jxnu-liguobin/cs-summary-reflection/blob/master/rust-leetcode/src/Solution.rs#L276)

* [1365 有多少小于当前数字的数字](https://github.com/jxnu-liguobin/cs-summary-reflection/blob/master/rust-leetcode/src/Solution.rs#L292)

* [1342 将数字变成 0 的操作次数](https://github.com/jxnu-liguobin/cs-summary-reflection/blob/master/rust-leetcode/src/Solution.rs#L316)

* [1313 解压缩编码列表](https://github.com/jxnu-liguobin/cs-summary-reflection/blob/master/rust-leetcode/src/Solution.rs#L338)

* [面试题 17 打印从1到最大的n位数](https://github.com/jxnu-liguobin/cs-summary-reflection/blob/master/rust-leetcode/src/Solution.rs#L364)

* [面试题 05 替换空格](https://github.com/jxnu-liguobin/cs-summary-reflection/blob/master/rust-leetcode/src/Solution.rs#L429)

* [1221 分割平衡字符串](https://github.com/jxnu-liguobin/cs-summary-reflection/blob/master/rust-leetcode/src/Solution.rs#L443)

* [面试题 06 从尾到头打印链表](https://github.com/jxnu-liguobin/cs-summary-reflection/blob/master/rust-leetcode/src/Solution.rs#L481)

* [938 二叉搜索树的范围和](https://github.com/jxnu-liguobin/cs-summary-reflection/blob/master/rust-leetcode/src/Solution.rs#L505)

* [1021 删除最外层的括号](https://github.com/jxnu-liguobin/cs-summary-reflection/blob/master/rust-leetcode/src/Solution.rs#L557)

* [面试题 24 反转链表](https://github.com/jxnu-liguobin/cs-summary-reflection/blob/master/rust-leetcode/src/Solution.rs#L605)

* [1252 奇数值单元格的数目](https://github.com/jxnu-liguobin/cs-summary-reflection/blob/master/rust-leetcode/src/Solution.rs#L634)

* [1323 6 和 9 组成的最大数字](https://github.com/jxnu-liguobin/cs-summary-reflection/blob/master/rust-leetcode/src/Solution.rs#L664)

* [617 合并二叉树](https://github.com/jxnu-liguobin/cs-summary-reflection/blob/master/rust-leetcode/src/Solution.rs#L677)

* [461 汉明距离](https://github.com/jxnu-liguobin/cs-summary-reflection/blob/master/rust-leetcode/src/Solution.rs#L729)

* [709 转换成小写字母](https://github.com/jxnu-liguobin/cs-summary-reflection/blob/master/rust-leetcode/src/Solution.rs#L338)

* [1304 和为零的N个唯一整数](https://github.com/jxnu-liguobin/cs-summary-reflection/blob/master/rust-leetcode/src/Solution.rs#L751)

* [804 唯一摩尔斯密码词](https://github.com/jxnu-liguobin/cs-summary-reflection/blob/master/rust-leetcode/src/Solution.rs#L810)

* [832 翻转图像](https://github.com/jxnu-liguobin/cs-summary-reflection/blob/master/rust-leetcode/src/Solution.rs#L835)

* [面试题 25 合并两个排序的链表](https://github.com/jxnu-liguobin/cs-summary-reflection/blob/master/rust-leetcode/src/Solution.rs#L864)

* [1370 上升下降字符串](https://github.com/jxnu-liguobin/cs-summary-reflection/blob/master/rust-leetcode/src/Solution.rs#L931)

* [面试题 03.04 化栈为队](https://github.com/jxnu-liguobin/cs-summary-reflection/blob/master/rust-leetcode/src/Solution.rs#L962)

* [1051 高度检查器](https://github.com/jxnu-liguobin/cs-summary-reflection/blob/master/rust-leetcode/src/Solution.rs#L1023)

* [728 自除数](https://github.com/jxnu-liguobin/cs-summary-reflection/blob/master/rust-leetcode/src/Solution.rs#L045)

* [面试题 01.01 判定字符是否唯一](https://github.com/jxnu-liguobin/cs-summary-reflection/blob/master/rust-leetcode/src/Solution.rs#L1074)

* [1385 两个数组间的距离值](https://github.com/jxnu-liguobin/cs-summary-reflection/blob/master/rust-leetcode/src/Solution.rs#L1115)

* [面试题 54 二叉搜索树的第k大节点](https://github.com/jxnu-liguobin/cs-summary-reflection/blob/master/rust-leetcode/src/Solution.rs#L1141)

* [面试题 09 用两个栈实现队列](https://github.com/jxnu-liguobin/cs-summary-reflection/blob/master/rust-leetcode/src/Solution.rs#L1174)

* [面试题 16.07 最大数值](https://github.com/jxnu-liguobin/cs-summary-reflection/blob/master/rust-leetcode/src/Solution.rs#L1218)

* [977 有序数组的平方](https://github.com/jxnu-liguobin/cs-summary-reflection/blob/master/rust-leetcode/src/Solution.rs#L1265)

* [1380 矩阵中的幸运数](https://github.com/jxnu-liguobin/cs-summary-reflection/blob/master/rust-leetcode/src/Solution.rs#L1301)

* [933 最近的请求次数](https://github.com/jxnu-liguobin/cs-summary-reflection/blob/master/rust-leetcode/src/Solution.rs#L1336)

* [561 数组拆分 I](https://github.com/jxnu-liguobin/cs-summary-reflection/blob/master/rust-leetcode/src/Solution.rs#L1374)

* [1374 生成每种字符都是奇数个的字符串](https://github.com/jxnu-liguobin/cs-summary-reflection/blob/master/rust-leetcode/src/Solution.rs#L1422)

* [1403 非递增顺序的最小子序列](https://github.com/jxnu-liguobin/cs-summary-reflection/blob/master/rust-leetcode/src/Solution.rs#L1445)

* [557 反转字符串中的单词 III](https://github.com/jxnu-liguobin/cs-summary-reflection/blob/master/rust-leetcode/src/Solution.rs#L1469)

* [999 可以被一步捕获的棋子数](https://github.com/jxnu-liguobin/cs-summary-reflection/blob/master/rust-leetcode/src/Solution.rs#L1487)

* [292 Nim 游戏](https://github.com/jxnu-liguobin/cs-summary-reflection/blob/master/rust-leetcode/src/Solution.rs#L1537)

* [1160 拼写单词](https://github.com/jxnu-liguobin/cs-summary-reflection/blob/master/rust-leetcode/src/Solution.rs#L1547)

* [1413 逐步求和得到正数的最小值](https://github.com/jxnu-liguobin/cs-summary-reflection/blob/master/rust-leetcode/src/Solution.rs#L1582)

* [面试题 32 - II. 从上到下打印二叉树 II](https://github.com/jxnu-liguobin/cs-summary-reflection/blob/master/rust-leetcode/src/Solution.rs#L1604)

* [944 删列造序](https://github.com/jxnu-liguobin/cs-summary-reflection/blob/master/rust-leetcode/src/Solution.rs#L1663)

* [9 回文数](https://github.com/jxnu-liguobin/cs-summary-reflection/blob/master/rust-leetcode/src/Solution.rs#L1689)

* [13 罗马数字转整数](https://github.com/jxnu-liguobin/cs-summary-reflection/blob/master/rust-leetcode/src/Solution.rs#L1730)

* [876 链表的中间结点](https://github.com/jxnu-liguobin/cs-summary-reflection/blob/master/rust-leetcode/src/Solution.rs#L1811)

* [500 键盘行](https://github.com/jxnu-liguobin/cs-summary-reflection/blob/master/rust-leetcode/src/Solution.rs#L1836)

* [14 长公共前缀](https://github.com/jxnu-liguobin/cs-summary-reflection/blob/master/rust-leetcode/src/Solution.rs#L1856)

* [20 有效的括号](https://github.com/jxnu-liguobin/cs-summary-reflection/blob/master/rust-leetcode/src/Solution.rs#L1952)

* [35 搜索插入位置](https://github.com/jxnu-liguobin/cs-summary-reflection/blob/master/rust-leetcode/src/Solution.rs#L1982)

* [905 按奇偶排序数组](https://github.com/jxnu-liguobin/cs-summary-reflection/blob/master/rust-leetcode/src/Solution.rs#L2000)

* [1207 独一无二的出现次数](https://github.com/jxnu-liguobin/cs-summary-reflection/blob/master/rust-leetcode/src/Solution.rs#L2014)

* [38 外观数列](https://github.com/jxnu-liguobin/cs-summary-reflection/blob/master/rust-leetcode/src/Solution.rs#L2036)

* [58 最后一个单词的长度](https://github.com/jxnu-liguobin/cs-summary-reflection/blob/master/rust-leetcode/src/Solution.rs#L2080)

* [665 非递减数列](https://github.com/jxnu-liguobin/cs-summary-reflection/blob/master/rust-leetcode/src/Solution.rs#L2093)