leetcode
文章平均质量分 51
lycronaldo
菜鸟一只,大神求轻虐
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
LeetCode124. Binary Tree Maximum Path Sum
有关于leetcode的刷题记录。这次是124题。首先看题干:···Given anon-emptybinary tree, find the maximum path sum.For this problem, a path is defined as any sequence of nodes from some starting node to any node in th...原创 2020-04-15 12:07:21 · 207 阅读 · 0 评论 -
Leetcode OJ | Number of Digit One
先上题: Given an integer n, count the total number of digit 1 appearing in all non-negative integers less than or equal to n.For example: Given n = 13, Return 6, because digit 1 occurred in the followi原创 2016-05-04 23:47:42 · 407 阅读 · 0 评论 -
LeetCode OJ | Search a 2D Matrix
LeetCode的这个问题可用“夹逼”的思想完成。 题目如下 Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:Integers in each row are sorted in ascending from le原创 2016-04-26 20:57:40 · 440 阅读 · 0 评论 -
LeetCode OJ | #315 Count of Smaller Numbers After Self
You are given an integer array nums and you have to return a new counts array. The counts array has the property where counts[i] is the number of smaller elements to the right of nums[i].Example:Given原创 2016-05-06 18:07:21 · 365 阅读 · 0 评论 -
LeetCode OJ | #25 Reverse Nodes in k-Group
考试前刷一波leetcode。这次的问题依然是简单的,但是处理方式极为麻烦,因为涉及到了单向链表的反转操作。C++有个规律:一旦涉及到指针和链表的东西,绝对会有无数的边界情况和细节在等着你。先上题:Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.If原创 2016-06-21 11:34:50 · 391 阅读 · 0 评论 -
LeetCode #57 | Insert Interval
首先是题目:Given a set of non-overlapping intervals, insert a new interval into the intervals (merge if necessary).You may assume that the intervals were initially sorted according to their start原创 2017-04-24 18:21:11 · 283 阅读 · 0 评论
分享