上一页 1 ··· 160 161 162 163 164 165 166 167 168 ··· 273 下一页
摘要: Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root). For 阅读全文
posted @ 2018-04-06 22:27 bonelee 阅读(197) 评论(0) 推荐(0)
摘要: Given an unsorted array of integers, find the length of longest continuous increasing subsequence (subarray). Example 1: Input: [1,3,5,4,7] Output: 3 阅读全文
posted @ 2018-04-06 22:07 bonelee 阅读(259) 评论(0) 推荐(0)
摘要: Say you have an array for which the ith element is the price of a given stock on day i. If you were only permitted to complete at most one transaction 阅读全文
posted @ 2018-04-06 21:51 bonelee 阅读(197) 评论(0) 推荐(0)
摘要: On a staircase, the i-th step has some non-negative cost cost[i] assigned (0 indexed). Once you pay the cost, you can either climb one or two steps. Y 阅读全文
posted @ 2018-04-06 21:16 bonelee 阅读(221) 评论(0) 推荐(0)
摘要: Given a string and an integer k, you need to reverse the first k characters for every 2k characters counting from the start of the string. If there ar 阅读全文
posted @ 2018-04-06 20:47 bonelee 阅读(182) 评论(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-04-06 20:18 bonelee 阅读(287) 评论(0) 推荐(0)
摘要: Given two arrays, write a function to compute their intersection. Example: Given nums1 = [1, 2, 2, 1], nums2 = [2, 2], return [2, 2]. Note: Each eleme 阅读全文
posted @ 2018-04-06 18:49 bonelee 阅读(160) 评论(0) 推荐(0)
摘要: Given an array where elements are sorted in ascending order, convert it to a height balanced BST. For this problem, a height-balanced binary tree is d 阅读全文
posted @ 2018-04-06 18:40 bonelee 阅读(258) 评论(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-04-06 17:28 bonelee 阅读(205) 评论(0) 推荐(0)
摘要: You are given a string representing an attendance record for a student. The record only contains the following three characters: A student could be re 阅读全文
posted @ 2018-04-06 12:54 bonelee 阅读(212) 评论(1) 推荐(0)
上一页 1 ··· 160 161 162 163 164 165 166 167 168 ··· 273 下一页