原文:Lintcode: Subarray Sum 解题报告

Subarray Sum 原题链接:http: lintcode.com zh cn problem subarray sum Given an integer array, find a subarray where the sum of numbers is zero. Your code should return the index of the first number and the ...

2014-12-19 18:01 1 3500 推荐指数:

查看详情

lintcode: k Sum 解题报告

K SUM My Submissions http://www.lintcode.com/en/problem/k-sum/ 题目来自九章算法 13% Accepted Given n distinct positive ...

Sun Feb 08 16:40:00 CST 2015 1 7926
[LintCode] Subarray Sum & Subarray Sum II

Subarray Sum Given an integer array, find a subarray where the sum of numbers is zero. Your code should return the index of the first number ...

Mon Jun 01 20:21:00 CST 2015 0 2134
LintCode-Subarray Sum Closest

Given an integer array, find a subarray with sum closest to zero. Return the indexes of the first number and last number. Example Given ...

Sat Dec 27 12:37:00 CST 2014 0 2547
LeetCode: Maximum Subarray 解题报告

Maximum Subarray Find the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given ...

Sun Dec 21 04:25:00 CST 2014 1 3151
Lintcode: Fast Power 解题报告

Fast Power 原题链接:http://lintcode.com/en/problem/fast-power/# Calculate the an % b where a, b and n are all 32bit integers. Example For 231 ...

Sat Dec 20 06:08:00 CST 2014 0 4623
Lintcode: Majority Number 解题报告

Majority Number 原题链接:http://lintcode.com/en/problem/majority-number/# Given an array of integers, the majority number is the number that occurs ...

Sat Dec 20 15:58:00 CST 2014 0 3227
LeetCode 1 Two Sum 解题报告

LeetCode 1 Two Sum 解题报告 偶然间听见leetcode这个平台,这里面题量也不是很多200多题,打算平时有空在研究生期间就刷完,跟跟多的练习算法的人进行交流思想,一定的ACM算法积累可以对以后在对算法中优化带来好处。Ok,今天是我做的第一题Add Two Sum。 题目要求 ...

Sat Apr 25 19:30:00 CST 2015 2 1916
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM