- 博客(52)
- 收藏
- 关注
原创 <leetcode>287. Find the Duplicate Number
Given an array nums containing n + 1 integers where each integer is between 1 and n (inclusive), prove that at least one duplicate number must exist. Assume that there is only one duplicate number, f
2016-09-15 15:53:42
530
原创 <leetcode>381. Insert Delete GetRandom O(1) - Duplicates allowed
381. Insert Delete GetRandom O(1) - Duplicates allowed Design a data structure that supports all following operations in average O(1) time. Note: Duplicate elements are allowed insert(val): In
2016-09-14 21:02:03
795
原创 <leetcode>396 Rotate Function
396 Rotate Function Given an array of integers A and let n to be its length. Assume Bk to be an array obtained by rotating the array A k positions clock-wise, we define a "rotation function" F
2016-09-14 16:57:48
1365
原创 <OJ_Sicily>1240Faulty_Odometer
Description You are given a car odometer which displays the miles traveled as an integer. The odometer has a defect, however: it proceeds from the digit 3 to the digit 5, always skipping over the dig
2016-05-10 16:35:28
888
原创 <OJ_Sicily>1438Shopaholic
Constraints Time Limit: 1 secs, Memory Limit: 32 MB Description Lindsay is a shopaholic. Whenever there is a discount of the kind where you can buy three items and only pay for two, she goes comple
2016-04-27 18:23:17
615
原创 <OJ_Sicily>1134积木分发
Constraints Time Limit: 10 secs, Memory Limit: 32 MB Description 歌手The Pancakes到幼儿园跟小朋友玩耍,她到达的时候小朋友们已经争着积木玩了。小朋友都想要更多的积木砌一个自己喜欢的图形,砌完就可以和The Pancakes合照。同时,The Pancakes手上还有一些积木,她可以把手上的这些积木全部给一个小朋友,然
2016-04-27 10:40:12
752
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人