Ugly Numbers Ugly numbers are numbers whose only prime factors are 2, 3 or 5. The sequence ...
Interleaving Positive and Negative Numbers 原题链接 : http: lintcode.com zh cn problem interleaving positive and negative numbers Given an array with positive and negative integers. Re range it to interle ...
2014-12-20 17:00 0 3104 推荐指数:
Ugly Numbers Ugly numbers are numbers whose only prime factors are 2, 3 or 5. The sequence ...
K SUM My Submissions http://www.lintcode.com/en/problem/k-sum/ 题目来自九章算法 13% Accepted Given n distinct positive ...
Majority Number 原题链接:http://lintcode.com/en/problem/majority-number/# Given an array of integers, the majority number is the number that occurs ...
First Missing Positive Given an unsorted integer array, find the first missing positive integer. For example,Given [1,2,0] return 3,and [3,4 ...
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 ...
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 ...
Longest Common Substring 原题链接: http://lintcode.com/zh-cn/problem/longest-common-substring/# Given two strings, find the longest common ...
Longest Common Subsequence 原题链接:http://lintcode.com/zh-cn/problem/longest-common-subsequence/ Given two strings, find the longest comment ...