上一页 1 2 3 4 5 6 ··· 14 下一页

2018年12月21日

摘要: Given a list of strings words representing an English Dictionary, find the longest word in words that can be built one character at a time by other wo 阅读全文
posted @ 2018-12-21 15:12 chiyeung 阅读(104) 评论(0) 推荐(0) 编辑
摘要: Given a list of sorted characters letters containing only lowercase letters, and given a target letter target, find the smallest element in the list t 阅读全文
posted @ 2018-12-21 10:04 chiyeung 阅读(82) 评论(0) 推荐(0) 编辑

2018年12月20日

摘要: Given a non-negative integer numRows, generate the first numRows of Pascal's triangle. In Pascal's triangle, each number is the sum of the two numbers 阅读全文
posted @ 2018-12-20 10:08 chiyeung 阅读(70) 评论(0) 推荐(0) 编辑
摘要: Given an unsorted array of integers, find the length of longest continuousincreasing subsequence (subarray). Example 1: Input: [1,3,5,4,7] Output: 3 E 阅读全文
posted @ 2018-12-20 09:43 chiyeung 阅读(106) 评论(0) 推荐(0) 编辑

2018年12月19日

摘要: Write an algorithm to determine if a number is "happy". A happy number is a number defined by the following process: Starting with any positive intege 阅读全文
posted @ 2018-12-19 11:11 chiyeung 阅读(183) 评论(0) 推荐(0) 编辑

2018年12月18日

摘要: Given two strings S and T, return if they are equal when both are typed into empty text editors. # means a backspace character. Example 1: Input: S = 阅读全文
posted @ 2018-12-18 10:06 chiyeung 阅读(128) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, return all root-to-leaf paths. Note: A leaf is a node with no children. Example: Recursion: 阅读全文
posted @ 2018-12-18 09:51 chiyeung 阅读(149) 评论(0) 推荐(0) 编辑

2018年12月17日

摘要: There are 1000 buckets, one and only one of them contains poison, the rest are filled with water. They all look the same. If a pig drinks that poison 阅读全文
posted @ 2018-12-17 21:17 chiyeung 阅读(125) 评论(0) 推荐(0) 编辑

2018年12月16日

摘要: Your friend is typing his name into a keyboard. Sometimes, when typing a character c, the key might get long pressed, and the character will be typed 阅读全文
posted @ 2018-12-16 09:30 chiyeung 阅读(127) 评论(0) 推荐(0) 编辑
摘要: Given an integer, return its base 7 string representation. Example 1: Input: 100 Output: "202" Example 2: Input: -7 Output: "-10" Note: The input will 阅读全文
posted @ 2018-12-16 09:04 chiyeung 阅读(129) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 14 下一页

导航