- 博客(9)
- 资源 (7)
- 收藏
- 关注
原创 House Robber III
题目: The thief has found himself a new place for his thievery again. There is only one entrance to this area, called the "root." Besides the root, each house has one and only one parent house. After
2016-10-31 16:18:40 201
原创 Arranging Coins
题目: You have a total of n coins that you want to form in a staircase shape, where every k-th row must have exactly k coins. Given n, find the total number of full staircase rows that can be fo
2016-10-31 15:15:15 455
原创 Combination Sum IV
题目: Given an integer array with all positive numbers and no duplicates, find the number of possible combinations that add up to a positive integer target. Example: nums = [1, 2, 3] target = 4 Th
2016-10-31 10:20:53 141
原创 Kth Smallest Element in a BST
题目: Given a binary search tree, write a function kthSmallest to find the kth smallest element in it. Note: You may assume k is always valid, 1 ≤ k ≤ BST's total elements. Follow up: What if
2016-10-28 10:39:23 249
原创 Convert a Number to Hexadecimal
题目: Given an integer, write an algorithm to convert it to hexadecimal. For negative integer, two’s complement method is used. Note: All letters in hexadecimal (a-f) must be in lowercase.The
2016-10-26 10:35:31 173
原创 Maximum Product of Word Lengths
题目: Given a string array words, find the maximum value of length(word[i]) * length(word[j]) where the two words do not share common letters. You may assume that each word will contain only lower ca
2016-10-25 16:30:56 147
原创 Binary Watch
问题: A binary watch has 4 LEDs on the top which represent the hours (0-11), and the 6 LEDs on the bottom represent the minutes (0-59). Each LED represents a zero or one, with the least significant
2016-10-24 22:22:57 131
原创 Top K Frequent Elements
题目: Top K Frequent Elements Total Accepted: 35802Total Submissions: 80109Difficulty: MediumContributors: Admin Given a non-empty array of integers, return the k most f
2016-10-24 15:58:11 140
原创 Linked List Random Node
Linked List Random Node Total Accepted: 13046Total Submissions: 28645Difficulty: MediumContributors: Admin Given a singly linked list, return a random node's value from the
2016-10-24 10:20:39 140
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人