<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> <title> ...
分类:
移动开发 时间:
2017-09-25 11:44:21
阅读次数:
280
Longest Palindromic Substring Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. 最开始的 ...
分类:
其他好文 时间:
2017-09-24 23:32:21
阅读次数:
271
原题链接在这里:https://leetcode.com/problems/maximum-length-of-pair-chain/description/ 题目: You are given n pairs of numbers. In every pair, the first number ...
分类:
其他好文 时间:
2017-09-24 09:55:05
阅读次数:
179
Given a non-negative integer, you could swap two digits at most once to get the maximum valued number. Return the maximum valued number you could get. ...
分类:
其他好文 时间:
2017-09-24 09:49:03
阅读次数:
125
I am now in great demand for an opportunity to yearn for, the ability to express myself, in a maximum scale to let other people know about me, and my ...
分类:
其他好文 时间:
2017-09-23 23:23:08
阅读次数:
304
521. Longest Uncommon Subsequence I【easy】 Given a group of two strings, you need to find the longest uncommon subsequence of this group of two strings ...
分类:
其他好文 时间:
2017-09-23 19:07:22
阅读次数:
120
Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may comple ...
分类:
其他好文 时间:
2017-09-23 17:20:21
阅读次数:
135
一、二叉查找树的性质 设x为二叉查找树中的一个结点。如果y是x的左子树中的一个结点,则key[y]<=key[x]。如果y是x右子树中的一个结点,则key[x]<=key[y]。 中序遍历可以按排列顺序输出树中的所有关键字。遍历时间复杂度为O(n)。 二叉查找树支持的操作: search、minim ...
分类:
其他好文 时间:
2017-09-23 12:13:15
阅读次数:
149
Given a mountain sequence of n integers which increase firstly and then decrease, find the mountain top. Example Given nums = [1, 2, 4, 8, 6, 3] retur ...
分类:
其他好文 时间:
2017-09-23 10:30:03
阅读次数:
115
题目 https://nanti.jisuanke.com/t/17118 题意 有n个点0,1,2...n-1,对于一个点对(i,j)满足i<j,那么连一条边,边权为i xor j,求0到n-1的最大流,结果取模,n<=1e18 分析 可以写个最大流对数据找规律,但没找出来…… 然后只能取分析了, ...
分类:
其他好文 时间:
2017-09-22 23:58:04
阅读次数:
356