Write a function to find the longest common prefix string amongst an array of strings. 1 class Solution { 2 public: 3 string longestCommonPrefix(v...
分类:
其他好文 时间:
2015-04-16 21:20:24
阅读次数:
116
1 题目Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letter...
分类:
其他好文 时间:
2015-04-16 19:19:32
阅读次数:
100
题目链接:Maximum Depth of Binary Tree
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 leaf node.
这道题...
分类:
其他好文 时间:
2015-04-16 10:25:57
阅读次数:
123
A -Longest Ordered SubsequenceTime Limit:2000MSMemory Limit:65536KB64bit IO Format:%I64d & %I64uSubmitStatusPracticePOJ 2533DescriptionA numeric seque...
分类:
其他好文 时间:
2015-04-16 01:25:20
阅读次数:
169
题目:Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longest...
分类:
其他好文 时间:
2015-04-15 21:20:54
阅读次数:
101
题目:Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters...
分类:
其他好文 时间:
2015-04-15 21:12:09
阅读次数:
125
我的Python 解答:
"""
Programmer : EOF
Date : 2015.04.15
File : lcp.py
E-mail : jasonleaster@gmail.com
"""
"""
Varible Description:
@ret_string : We store the string...
分类:
其他好文 时间:
2015-04-15 17:13:05
阅读次数:
152
Console.WriteLine("请输入您的身份证号码"); string x = Console.ReadLine(); string year=x.Substring (6,4);//从身份证的第六位开始截取,往后截取四位,就是你的出生年份 int x1 = Convert.ToInt32(...
分类:
其他好文 时间:
2015-04-14 23:18:10
阅读次数:
176
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:
其他好文 时间:
2015-04-14 23:12:41
阅读次数:
111
Problem Description
There is a sequence of integers. Your task is to find the longest subsequence that satisfies the following condition: the difference between the maximum element and the minimum el...
分类:
其他好文 时间:
2015-04-14 21:37:54
阅读次数:
175