摘要:
Given a non empty array of integers, return the k most frequent elements. Example 1: Input: nums = [1,1,1,2,2,3], k = 2 Output: [1,2] Example 2: Input 阅读全文
posted @ 2018-10-19 10:30
bernieloveslife
阅读(176)
评论(0)
推荐(0)
摘要:
Implement a basic calculator to evaluate a simple expression string. The expression string may contain open ( and closing parentheses ), the plus + or 阅读全文
posted @ 2018-10-19 10:29
bernieloveslife
阅读(111)
评论(0)
推荐(0)
摘要:
Implement a basic calculator to evaluate a simple expression string. The expression string contains only non negative integers, +, , , / operators and 阅读全文
posted @ 2018-10-19 10:29
bernieloveslife
阅读(86)
评论(0)
推荐(0)
摘要:
Given a binary search tree and the lowest and highest boundaries as L and R, trim the tree so that all its elements lies in [L, R] (R = L). You might 阅读全文
posted @ 2018-10-19 10:29
bernieloveslife
阅读(107)
评论(0)
推荐(0)
摘要:
Given a directed, acyclic graph of N nodes. Find all possible paths from node 0 to node N 1, and return them in any order. The graph is given as follo 阅读全文
posted @ 2018-10-19 10:29
bernieloveslife
阅读(168)
评论(0)
推荐(0)

浙公网安备 33010602011771号