上一页 1 ··· 35 36 37 38 39 40 41 42 43 ··· 68 下一页
摘要: 题目如下: Given an array where elements are sorted in ascending order, convert it to a height balanced BST. For this problem, a height-balanced binary tre 阅读全文
posted @ 2019-03-30 09:16 seyjs 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 题目如下: Given a positive integer K, you need find the smallest positive integer N such that N is divisible by K, and N only contains the digit 1. Return 阅读全文
posted @ 2019-03-27 21:49 seyjs 阅读(294) 评论(0) 推荐(0) 编辑
摘要: 题目如下: A character is unique in string S if it occurs exactly once in it. For example, in string S = "LETTER", the only unique characters are "L" and " 阅读全文
posted @ 2019-03-26 19:44 seyjs 阅读(521) 评论(0) 推荐(0) 编辑
摘要: 题目如下: Given a binary string S (a string consisting only of '0' and '1's) and a positive integer N, return true if and only if for every integer X from 阅读全文
posted @ 2019-03-26 10:00 seyjs 阅读(275) 评论(0) 推荐(0) 编辑
摘要: 题目如下: Given an array A of positive integers, A[i]represents the value of the i-th sightseeing spot, and two sightseeing spots i and j have distance j 阅读全文
posted @ 2019-03-26 09:56 seyjs 阅读(407) 评论(0) 推荐(0) 编辑
摘要: 题目如下: Given an array A of integers, return true if and only if we can partition the array into three non-emptyparts with equal sums. Formally, we can 阅读全文
posted @ 2019-03-26 09:40 seyjs 阅读(278) 评论(0) 推荐(0) 编辑
摘要: 题目如下: Given two non-empty binary trees s and t, check whether tree t has exactly the same structure and node values with a subtree of s. A subtree of  阅读全文
posted @ 2019-03-23 21:55 seyjs 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 题目如下: Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may 阅读全文
posted @ 2019-03-22 15:20 seyjs 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 题目如下: Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may 阅读全文
posted @ 2019-03-22 14:27 seyjs 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 题目如下: Your are given an array of integers prices, for which the i-th element is the price of a given stock on day i; and a non-negative integer feerep 阅读全文
posted @ 2019-03-22 11:24 seyjs 阅读(201) 评论(0) 推荐(0) 编辑
上一页 1 ··· 35 36 37 38 39 40 41 42 43 ··· 68 下一页