
leetcode
文章平均质量分 63
boom!!!
这个作者很懒,什么都没留下…
展开
-
leetcode.853. Car Fleet
题目: N cars are going to the same destination along a one lane road. The destination is target miles away. Each car i has a constant speed speed[i] (in miles per hour), and initial position...原创 2018-07-12 13:15:49 · 523 阅读 · 0 评论 -
890. Find and Replace Pattern
题目: You have a list of words and a pattern, and you want to know which words in words matches the pattern. A word matches the pattern if there exists a permutation of letters p so that after replaci...原创 2018-10-28 18:30:09 · 129 阅读 · 0 评论 -
565.Array Nesting
题目: A zero-indexed array A of length N contains all integers from 0 to N-1. Find and return the longest length of set S, where S[i] = {A[i], A[A[i]], A[A[A[i]]], ... } subjected to the rule below. S...原创 2018-10-25 21:28:39 · 209 阅读 · 0 评论 -
515.Find Largest Value In Each Tree Row
题目: You need to find the largest value in each row of a binary tree. Example: Input: 1 / \ 3 2 / \ \ 5 3 9 Output: [1, 3, 9] 题意是输入一个二叉树,找出二...原创 2018-10-26 20:42:26 · 142 阅读 · 0 评论