Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. Example: Example: class Solution { ...
分类:
编程语言 时间:
2017-02-28 18:59:56
阅读次数:
195
https://leetcode.com/problems/longest-consecutive-sequence/?tab=Description 开始的时候,没有思路。看了下面这个,也有并查集的感觉,每个数字记录一下最后一个元素。都指向一个。 https://discuss.leetcode. ...
分类:
其他好文 时间:
2017-02-27 00:46:33
阅读次数:
160
广播分类: 标准广播(Normal broadcasts):完全异步执行的广播,接收没有先后顺序,效率高,无法被接收器被拦截。 有序广播(Ordered broadcasts) :同步执行的广播,有先后顺序,广播可以被接收器拦截或修改。 接收系统广播: 动态注册监听网络变化:(只能在程序启动后才能接 ...
分类:
其他好文 时间:
2017-02-25 12:24:40
阅读次数:
285
Given n integers. You have two operations: U A B: replace the Ath number by B. (index counting from 0) Q A B: output the length of the longest consecu ...
分类:
其他好文 时间:
2017-02-23 20:51:23
阅读次数:
209
摘自:http://aircconline.com/ijdkp/V4N6/4614ijdkp04.pdf In the syntactical approach we define binary attributes that correspond to each fixed length subs ...
分类:
其他好文 时间:
2017-02-20 18:35:24
阅读次数:
224
516. Longest Palindromic Subsequence Add to List 516. Longest Palindromic Subsequence Add to List Add to List Description Submission Solutions Total A ...
分类:
其他好文 时间:
2017-02-20 10:46:26
阅读次数:
204
1. BinaryGap Find longest sequence of zeros in binary representation of an integer. ...
分类:
其他好文 时间:
2017-02-18 14:33:20
阅读次数:
184
原题链接在这里:https://leetcode.com/problems/longest-increasing-subsequence/ 题目: Given an unsorted array of integers, find the length of longest increasing s ...
分类:
其他好文 时间:
2017-02-16 13:15:16
阅读次数:
221
class Solution { public: int longestValidParentheses(string s) { int res = 0, start = 0; stack<int> m; for (int i = 0; i < s.size(); ++i) { if (s[i] = ...
分类:
其他好文 时间:
2017-02-14 00:57:35
阅读次数:
193
300. Longest Increasing Subsequence 300. Longest Increasing Subsequence Description Submission Solutions Add to List Total Accepted: 64115 Total Submi ...
分类:
其他好文 时间:
2017-02-13 18:43:00
阅读次数:
206