码迷,mamicode.com
首页 >  
搜索关键字:longest substring    ( 5540个结果
牛腩新闻发布系统-零碎拾起
在牛腩新闻发布系统的学习过程中,学到了很多的知识点。将点滴记录汇聚于此。          一、IP地址最后一位变"*"     string str = "127.0.0.1"; str = str.Substring(0, str.LastIndexOf(".") + 1); Response.Write(str + "*");         二、删除按钮...
分类:其他好文   时间:2015-05-25 10:13:45    阅读次数:144
leetcode 5 -- Longest Palindromic Substring
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, and there exists one unique longest palindrom...
分类:其他好文   时间:2015-05-24 14:19:55    阅读次数:146
poj 2533 Longest Ordered Subsequence(线性dp)
题目链接:http://poj.org/problem?id=2533思路分析:该问题为经典的最长递增子序列问题,使用动态规划就可以解决;1)状态定义:假设序列为A[0, 1, .., n],则定义状态dp[i]为以在所有的递增子序列中以A[i]为递增子序列的最后一个数字的所有递增子序列中的最大长度...
分类:其他好文   时间:2015-05-23 21:13:07    阅读次数:133
C# 获得文件名
string strFilePaht="文件路径"; Path.GetFileNameWithoutExtension(strFilePath);这个就是获取文件名的还有的就是用Substring截取 strFilePaht.Substring(path.LastIndexOf("\\") + 1,...
分类:Windows程序   时间:2015-05-23 12:56:31    阅读次数:184
Java for LeetCode 104 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 le...
分类:编程语言   时间:2015-05-23 10:03:37    阅读次数:114
【leetcode】Longest Common Prefix
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-05-22 11:05:54    阅读次数:131
Substring with Concatenation of All Words——解题报告(窗口移动法)
【题目】 You are given a string, s, and a list of words, words, that are all of the same length. Find all starting indices of substring(s) in s that is a concatenation of each word in wordsexactly ...
分类:移动开发   时间:2015-05-22 09:50:36    阅读次数:222
[LeetCode] Substring with Concatenation of All Words 串联所有单词的子串
You are given a string, s, and a list of words, words, that are all of the same length. Find all starting indices of substring(s) in s that is a conca...
分类:其他好文   时间:2015-05-22 01:52:37    阅读次数:189
aspose.word 查找文本并加下划线
private Run SplitRun(Run run, int position) { Run beforeRun = (Run)run.Clone(true); beforeRun.Text = run.Text.Substring(0, posi...
分类:Web程序   时间:2015-05-22 01:51:22    阅读次数:430
求解最长回文子串
// A O(n^2) time and O(1) space program to find the longest palindromic substring#include // A utility function to print a substring str[low..high]voi...
分类:其他好文   时间:2015-05-22 00:28:09    阅读次数:110
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!