- 博客(8)
- 收藏
- 关注
原创 HackerRank The Maximum Subarray
原题网址:https://www.hackerrank.com/challenges/maxsubarray Given an array of elements, find the maximum possible sum of a Contiguous subarray Non-contiguous (not necessarily contiguou
2016-07-22 06:56:23 881
原创 LeetCode 376. Wiggle Subsequence(摇摆子序列)
原题网址:https://leetcode.com/problems/wiggle-subsequence/ A sequence of numbers is called a wiggle sequence if the differences between successive numbers strictly alternate between positive and nega
2016-07-22 06:18:49 1499
原创 LeetCode 371. Sum of Two Integers
原题网址:https://leetcode.com/problems/sum-of-two-integers/ Calculate the sum of two integers a and b, but you are not allowed to use the operator + and -. Example: Given a = 1 and b = 2, return
2016-07-21 06:11:13 468
原创 LeetCode 375. Guess Number Higher or Lower II
原题网址:https://leetcode.com/problems/guess-number-higher-or-lower-ii/ We are playing the Guess Game. The game is as follows: I pick a number from 1 to n. You have to guess which number I picked. Ev
2016-07-17 03:37:35 2649
原创 LeetCode 372. Super Pow
原题网址:https://leetcode.com/problems/super-pow/ Your task is to calculate ab mod 1337 where a is a positive integer and b is an extremely large positive integer given in the form of an array. Exam
2016-07-14 01:42:28 1016
原创 LeetCode 373. Find K Pairs with Smallest Sums
原题网址:https://leetcode.com/problems/find-k-pairs-with-smallest-sums/ You are given two integer arrays nums1 and nums2 sorted in ascending order and an integer k. Define a pair (u,v) which consists
2016-07-14 00:51:28 783
原创 LeetCode 374. Guess Number Higher or Lower
原题网址:https://leetcode.com/problems/guess-number-higher-or-lower/ We are playing the Guess Game. The game is as follows: I pick a number from 1 to n. You have to guess which number I picked. Eve
2016-07-13 23:27:38 926
原创 HackRank Two Two
原题网址:https://www.hackerrank.com/challenges/two-two Prof. Twotwo as the name suggests is very fond powers of 2. Moreover he also has special affinity to number 800. He is known for carrying quirky e
2016-07-11 04:36:29 1074
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人