上一页 1 ··· 4 5 6 7 8 9 10 下一页

2019年3月30日

摘要: Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target number. The function 阅读全文
posted @ 2019-03-30 01:29 一直走在路上 阅读(133) 评论(0) 推荐(0)

2019年3月27日

摘要: Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have ex 阅读全文
posted @ 2019-03-27 06:03 一直走在路上 阅读(131) 评论(0) 推荐(0)

2019年3月25日

摘要: Median is the middle value in an ordered integer list. If the size of the list is even, there is no middle value. So the median is the mean of the two 阅读全文
posted @ 2019-03-25 07:25 一直走在路上 阅读(129) 评论(0) 推荐(0)

2019年3月23日

摘要: Given an array nums, there is a sliding window of size k which is moving from the very left of the array to the very right. You can only see the k num 阅读全文
posted @ 2019-03-23 08:58 一直走在路上 阅读(142) 评论(0) 推荐(0)

2019年3月22日

摘要: Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n). Example: Input: S = "ADOB 阅读全文
posted @ 2019-03-22 04:00 一直走在路上 阅读(240) 评论(0) 推荐(0)

2019年3月20日

摘要: 446. Arithmetic Slices II - Subsequence Hard Hard A sequence of numbers is called arithmetic if it consists of at least three elements and if the diff 阅读全文
posted @ 2019-03-20 23:28 一直走在路上 阅读(182) 评论(0) 推荐(0)

2019年3月12日

摘要: A sequence of number is called arithmetic if it consists of at least three elements and if the difference between any two consecutive elements is the 阅读全文
posted @ 2019-03-12 05:04 一直走在路上 阅读(180) 评论(0) 推荐(0)

2019年3月7日

摘要: Given an array of scores that are non-negative integers. Player 1 picks one of the numbers from either end of the array followed by the player 2 and t 阅读全文
posted @ 2019-03-07 06:35 一直走在路上 阅读(156) 评论(0) 推荐(0)

2019年3月4日

摘要: In the "100 game," two players take turns adding, to a running total, any integer from 1..10. The player who first causes the running total to reach o 阅读全文
posted @ 2019-03-04 08:40 一直走在路上 阅读(151) 评论(0) 推荐(0)

2019年3月2日

摘要: Given a stream of integers and a window size, calculate the moving average of all integers in the sliding window. For example, MovingAverage m = new M 阅读全文
posted @ 2019-03-02 20:29 一直走在路上 阅读(121) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 下一页

导航