上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 40 下一页
摘要: Numbers With Same Consecutive Differences (M) 题目 Return all non-negative integers of length N such that the absolute difference between every two cons 阅读全文
posted @ 2020-08-19 09:57 墨云黑 阅读(176) 评论(0) 推荐(0) 编辑
摘要: Distribute Candies to People (E) 题目 We distribute some number of candies, to a row of n = num_people people in the following way: We then give 1 candy 阅读全文
posted @ 2020-08-18 10:49 墨云黑 阅读(187) 评论(0) 推荐(0) 编辑
摘要: Best Time to Buy and Sell Stock III (H) 题目 Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm 阅读全文
posted @ 2020-08-17 14:19 墨云黑 阅读(115) 评论(0) 推荐(0) 编辑
摘要: Best Time to Buy and Sell Stock II (E) 题目 Say you have an array prices for which the ith element is the price of a given stock on day i. Design an alg 阅读全文
posted @ 2020-08-17 11:29 墨云黑 阅读(137) 评论(0) 推荐(0) 编辑
摘要: Longest Palindrome (E) 题目 Given a string which consists of lowercase or uppercase letters, find the length of the longest palindromes that can be buil 阅读全文
posted @ 2020-08-15 12:13 墨云黑 阅读(114) 评论(0) 推荐(0) 编辑
摘要: Iterator for Combination (M) 题目 Design an Iterator class, which has: A constructor that takes a string characters of sorted distinct lowercase English 阅读全文
posted @ 2020-08-14 16:51 墨云黑 阅读(177) 评论(0) 推荐(0) 编辑
摘要: Pascal's Triangle II (E) 题目 Given a non-negative index k where k ≤ 33, return the \(k^{th}\) index row of the Pascal's triangle. Note that the row ind 阅读全文
posted @ 2020-08-13 10:02 墨云黑 阅读(136) 评论(0) 推荐(0) 编辑
摘要: Excel Sheet Column Number (E) 题目 Given a column title as appear in an Excel sheet, return its corresponding column number. For example: A -> 1 B -> 2 阅读全文
posted @ 2020-08-11 08:12 墨云黑 阅读(135) 评论(0) 推荐(0) 编辑
摘要: Rotting Oranges (M) 题目 In a given grid, each cell can have one of three values: the value 0 representing an empty cell; the value 1 representing a fre 阅读全文
posted @ 2020-08-10 11:18 墨云黑 阅读(177) 评论(0) 推荐(0) 编辑
摘要: Path Sum III (M) 题目 You are given a binary tree in which each node contains an integer value. Find the number of paths that sum to a given value. The 阅读全文
posted @ 2020-08-09 10:27 墨云黑 阅读(114) 评论(0) 推荐(0) 编辑
上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 40 下一页