- 博客(52)
- 收藏
- 关注
原创 <leetcode>287. Find the Duplicate Number
Given an array nums containing n + 1 integers where each integer is between 1 andn (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 480
原创 <leetcode>381. Insert Delete GetRandom O(1) - Duplicates allowed
381. Insert Delete GetRandom O(1) - Duplicates allowedDesign a data structure that supports all following operations inaverage O(1) time.Note: Duplicate elements are allowedinsert(val): In
2016-09-14 21:02:03 745
原创 <leetcode>396 Rotate Function
396 Rotate FunctionGiven an array of integers A and letn to be its length.Assume Bk to be an array obtained by rotating the arrayA k positions clock-wise, we define a "rotation function"F
2016-09-14 16:57:48 1277
原创 <OJ_Sicily>1240Faulty_Odometer
DescriptionYou 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 851
原创 <OJ_Sicily>1438Shopaholic
ConstraintsTime Limit: 1 secs, Memory Limit: 32 MBDescriptionLindsay 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 571
原创 <OJ_Sicily>1134积木分发
ConstraintsTime Limit: 10 secs, Memory Limit: 32 MBDescription歌手The Pancakes到幼儿园跟小朋友玩耍,她到达的时候小朋友们已经争着积木玩了。小朋友都想要更多的积木砌一个自己喜欢的图形,砌完就可以和The Pancakes合照。同时,The Pancakes手上还有一些积木,她可以把手上的这些积木全部给一个小朋友,然
2016-04-27 10:40:12 693
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人