码迷,mamicode.com
首页 >  
搜索关键字:problems    ( 6275个结果
lc 排序链表
链接:https://leetcode-cn.com/problems/sort-list/ 代码: /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNod ...
分类:编程语言   时间:2020-05-24 23:59:47    阅读次数:102
lc 反转链表
链接:https://leetcode-cn.com/problems/reverse-linked-list/ 代码: /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; ...
分类:其他好文   时间:2020-05-24 23:53:03    阅读次数:71
LeetCode 1457. 二叉树中的伪回文路径
地址 https://leetcode-cn.com/contest/weekly-contest-190/problems/pseudo-palindromic-paths-in-a-binary-tree/ 题目描述给你一棵二叉树,每个节点的值为 1 到 9 。我们称二叉树中的一条路径是 「伪回 ...
分类:其他好文   时间:2020-05-24 13:51:05    阅读次数:73
LeetCode 1456. 定长子串中元音的最大数目
地址 https://leetcode-cn.com/contest/weekly-contest-190/problems/maximum-number-of-vowels-in-a-substring-of-given-length/ 题目描述 给你字符串 s 和整数 k 。 请返回字符串 s ...
分类:其他好文   时间:2020-05-24 13:29:42    阅读次数:169
LeetCode 697. 数组的度
https://leetcode-cn.com/problems/degree-of-an-array/ 这个题跟昨天做的子串很相似哈,哈希表+滑动窗口完成。 class Solution { public int findShortestSubArray(int[] nums) { HashMap ...
分类:编程语言   时间:2020-05-24 11:37:40    阅读次数:45
面试题 17.12. BiNode
地址:https://leetcode-cn.com/problems/binode-lcci/ <?php /** 二叉树数据结构TreeNode可用来表示单向链表(其中left置空,right为下一个链表节点)。实现一个方法,把二叉搜索树转换为单向链表,要求值的顺序保持不变,转换操作应是原址的, ...
分类:其他好文   时间:2020-05-24 11:36:44    阅读次数:57
N叉树的后续遍历
此博客链接:https://www.cnblogs.com/ping2yingshi/p/12945132.html N叉树的后续遍历(76min) 题目链接:https://leetcode-cn.com/problems/n-ary-tree-postorder-traversal/ 给定一个 ...
分类:其他好文   时间:2020-05-24 00:20:22    阅读次数:56
【算法】【链表】链表相关问题总结
剑指offer 6. 从尾到头打印链表 题目链接:https://leetcode cn.com/problems/cong wei dao tou da yin lian biao lcof/ 递归 栈 reverse数组 18. 删除链表的节点 题目链接:https://leetcode cn. ...
分类:编程语言   时间:2020-05-23 09:56:59    阅读次数:45
521. 最长特殊序列 Ⅰ『简单』
题目来源于力扣( "LeetCode" ) [TOC] 一、题目 "521. 最长特殊序列 Ⅰ" 题目 相关标签 :字符串 说明: 1. 两个字符串长度均处于区间 。 2. 字符串中的字符仅含有 。 二、解题思路 1. 分析题目知道:空序列为所有字符串的子序列, 任何字符串为其自身的子序列 。 2. ...
分类:其他好文   时间:2020-05-23 00:45:12    阅读次数:63
lc 最长连续递增序列
链接:https://leetcode-cn.com/problems/longest-continuous-increasing-subsequence/ 代码: class Solution { public: int findLengthOfLCIS(vector<int>& nums) { ...
分类:其他好文   时间:2020-05-23 00:13:44    阅读次数:45
6275条   上一页 1 ... 52 53 54 55 56 ... 628 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!