算法 编程练习
孤星城
突破自我
展开
-
求数组内子数组最大的和(Maximum Subarray )
来源:https://leetcode.com/problems/maximum-subarray/#/descriptionFind the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the array [-2,原创 2017-03-30 14:37:55 · 1187 阅读 · 0 评论 -
二进制字符串值加法实现 (Add Binary )
题目来源:https://leetcode.com/problems/add-binary/#/description Given two binary strings, return their sum (also a binary string). For example, a = "11" b = "1" Return "100" 题意为传入两个二进制的字符串,需要输出这两个原创 2017-03-30 14:54:46 · 863 阅读 · 0 评论 -
查找字符串中的最长回文 (Longest Palindromic Substring)
题目来源:https://leetcode.com/problems/longest-palindromic-substring/#/description Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is原创 2017-03-31 10:51:15 · 835 阅读 · 1 评论 -
求字符串中连续无重复子字符串的最大长度 (Longest Substring Without Repeating Characters)
题目来源:https://leetcode.com/problems/longest-substring-without-repeating-characters/#/description Given a string, find the length of the longest substring without repeating characters. Examples:原创 2017-03-31 15:25:48 · 546 阅读 · 0 评论