Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. Example: Example: ...
分类:
其他好文 时间:
2017-10-27 01:37:34
阅读次数:
137
Given an integer array, find three numbers whose product is maximum and output the maximum product. Example 1: Input: [1,2,3] Output: 6 Example 2: Inp ...
分类:
其他好文 时间:
2017-10-27 01:27:15
阅读次数:
196
问题描述: 用 PLSQL 登录 oracle 数据库报错,提示:ORA-12520: TNS:监听程序无法为请求的服务器类型找到可用的处理程序,截图如下: 远程oracle服务器端,Sqlplus登陆oracle,也报错:ORA-00020:maximum number of processes ...
分类:
其他好文 时间:
2017-10-26 15:38:38
阅读次数:
3549
题目: Nowadays, there are more and more challenge game on TV such as 'Girls, Rush Ahead'. Now, you participate int a game like this. There are N rooms. ...
分类:
其他好文 时间:
2017-10-25 19:56:38
阅读次数:
188
Given a non-empty array of numbers, a0, a1, a2, … , an-1, where 0 ≤ ai < 231. Find the maximum result of ai XOR aj, where 0 ≤ i, j < n. Could you do t ...
分类:
其他好文 时间:
2017-10-25 13:21:45
阅读次数:
146
Given a string array words, find the maximum value of length(word[i]) * length(word[j]) where the two words do not share common letters. You may assum ...
分类:
其他好文 时间:
2017-10-25 13:07:03
阅读次数:
124
You have a necklace of N red, white, or blue beads (3<=N<=350) some of which are red, others blue, and others white, arranged at random. Here are two ...
分类:
其他好文 时间:
2017-10-25 11:24:18
阅读次数:
150
1.前言 范围最小/大值问题(Range Minimum/Maximum Query)也就是我们常说的RMQ。意思就是求出一个长度为n的数组A(A1,A2,……,An),求出一个范围(AL,AR)中的最小/大值。 2.思考 对于求范围最小值,我们可以用一个For循环来求: 如果数据变态的话(多次询问 ...
分类:
编程语言 时间:
2017-10-25 00:38:24
阅读次数:
328
Given a non-empty array of non-negative integers nums, the degree of this array is defined as the maximum frequency of any one of its elements. Your t ...
分类:
编程语言 时间:
2017-10-24 14:06:10
阅读次数:
200
Given a non-empty 2D array grid of 0's and 1's, an island is a group of 1's (representing land) connected 4-directionally (horizontal or vertical.) Yo ...
分类:
其他好文 时间:
2017-10-23 01:06:11
阅读次数:
195