leetcode
Liut2016
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
[leetcode]690. Employee Importance三种解法及性能分析
You are given a data structure of employee information, which includes the employee’s unique id, his importance value and his direct subordinates’ id.For example, employee 1 is the leader of employe...原创 2019-11-21 11:32:12 · 407 阅读 · 0 评论 -
[leetcode] 206. Reverse Linked List
Reverse a singly linked list.Example:Input: 1->2->3->4->5->NULLOutput: 5->4->3->2->1->NULLFollow up:A linked list can be reversed either iteratively or recursively....原创 2019-03-20 11:52:12 · 220 阅读 · 0 评论 -
[leetcode]766. Toeplitz Matrix
A matrix is Toeplitz if every diagonal from top-left to bottom-right has the same element.Now given an M x N matrix, return True if and only if the matrix is Toeplitz.Example 1:Input:matrix = [...原创 2019-04-25 17:35:33 · 269 阅读 · 0 评论 -
[leetcode] 884. Uncommon Words from Two Sentences
We are given two sentences A and B. (A sentence is a string of space separated words. Each word consists only of lowercase letters.)A word is uncommon if it appears exactly once in one of the sent...原创 2019-05-17 17:35:35 · 244 阅读 · 0 评论 -
[leetcode]日期问题
1154. Day of the YearGiven a string date representing a Gregorian calendar date formatted as YYYY-MM-DD, return the day number of the year.Example 1:Input: date = “2019-01-09”Output: 9Explanat...原创 2019-09-08 16:36:09 · 1043 阅读 · 0 评论
分享