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-03 14:14:05
阅读次数:
125
Given a binary array, find the maximum number of consecutive 1s in this array. Example 1: Input: [1,1,0,1,1,1] Output: 3 Explanation: The first two di ...
分类:
其他好文 时间:
2017-09-03 10:10:36
阅读次数:
213
Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farthest l ...
分类:
其他好文 时间:
2017-09-03 10:08:39
阅读次数:
133
Given a group of two strings, you need to find the longest uncommon subsequence of this group of two strings. The longest uncommon subsequence is defi ...
分类:
其他好文 时间:
2017-09-03 09:58:25
阅读次数:
169
1078. Hashing (25)The task of this problem is simple: insert a sequence of distinct positive integers into a hash table, and output the positions of t ...
分类:
其他好文 时间:
2017-09-03 09:54:09
阅读次数:
207
1、问题描述 Given a binary tree, find the maximum path sum. For this problem, a path is defined as any sequence of nodes from some starting node to any nod ...
分类:
其他好文 时间:
2017-09-02 01:11:22
阅读次数:
243
// The ratelimit package provides an efficient token bucket implementation// that can be used to limit the rate of arbitrary things.// See http://en.w... ...
分类:
其他好文 时间:
2017-09-01 10:49:49
阅读次数:
160
下载hadoop压缩包设置hadoop环境变量设置hdfs环境变量设置yarn环境变量设置mapreduce环境变量修改hadoop配置设置core-site.xml设置hdfs-site.xml设置yarn-site.xml设置mapred-site.xml设置slave文件分发配置启动hdfs格... ...
分类:
其他好文 时间:
2017-08-30 22:33:49
阅读次数:
264
Problem Description Given a binary string S[1,...,N] (i.e. a sequence of 0's and 1's), and Q queries on the string.There are two types of queries:1. F ...
分类:
其他好文 时间:
2017-08-30 19:58:52
阅读次数:
98
The Karting championship will be held on a straight road. There are N keypoints on the road. The path between keypoint i and i+1 has a degree of diffi ...
分类:
其他好文 时间:
2017-08-30 18:33:34
阅读次数:
183