“Leetcode”标签的搜索结果
我所认为的最好二叉树三序遍历
作者:taikulawo创建时间:2019-09-17
#算法与数据结构#Leetcode
在此感谢 leetcode 网友提供的遍历方法 https://leetcode-cn.com/problems/binary-tree-inorder-traversal/solution/yan-se-biao-ji-fa-yi-chong-tong-yong-qie-jian-ming/ 二叉......
罗马数字求和-leetcode13
作者:taikulawo创建时间:2019-09-17
#Leetcode
题目来源 https://leetcode.com/problems/roman-to-integer/ 题目描述 给定一个字符串 s,计算得出 s 对应的值。 ` Input: "MCMXCIV" Output: 1994 Explanation: M = 1000, CM = 900, XC =......
最长回文字串-leetcode5
作者:taikulawo创建时间:2019-09-14
#算法与数据结构#Leetcode
题目来自 https://leetcode.com/problems/longest-palindromic-substring/ 题目介绍 给定一个字符串 s ,输出 s 对应的最长回文字串 比如 ` Input: s = "babad" Output: s = "bad" ` 解释: bad 是......
最长无重复字串-leetcode3
作者:taikulawo创建时间:2019-09-13
#算法与数据结构#Leetcode
题目来自 https://leetcode.com/problems/longest-substring-without-repeating-characters/ 题目描述 给你一个字符串s,输出 最长且不重复的字串 的长度 比如输入 tmsmfdut,因为最长的不重复字串是 smfdut,所以输......
两个链表相加-leetcode2
作者:taikulawo创建时间:2019-09-13
#算法与数据结构#Leetcode
原题在这里 介绍 给你两个非空单向链表 l1, l2,将链表按照 个十百千 的顺序相加。 比如 ` 输入: (1 -> 2 -> 3) + (4 -> 5 -> 6) 返回: (5 -> 7 -> 9) ` 这里最需要注意的是进位。 实现 `java public ListNode addTwoNu......