码迷,mamicode.com
首页 >  
搜索关键字:longest substring wi    ( 8067个结果
String.subString引发的StringIndexOutOfBoundsException
首先看两个例子,通过subString方法获得字符串t,再通过t.charAt(3)方法获得字符串t的值中的第四个字符。[其中会利用反射机制,改变字符串s的值。](http://my.oschina.net/u/167082/blog/337066) 例子1: public c...
分类:其他好文   时间:2014-10-24 20:54:23    阅读次数:252
数据库截取字符串函数
MySQL数据库和SQLServer数据库的字符串截取函数比较MySQL字符串截取函数:SUBSTR(Stringstring,numstart,numlength)string是原字符串,start是起始位置(从1开始),length是截取字符串的长度;SQLServer字符串截取函数:SUBSTRING(Stringstring,numstart,numlength)string..
分类:数据库   时间:2014-10-24 19:04:06    阅读次数:235
LeetCode 132 Palindrome Partitioning II
Given a string s, partition s such that every substring of the partition is a palindrome. Return the minimum cuts needed for a palindrome partitioning of s. For example, given s = "aab", Return 1 s...
分类:其他好文   时间:2014-10-24 18:54:01    阅读次数:111
C# 截取字符串
C#经常用到的字符串的截取 在开发中我们经常需要截取字符串,很多初学者,不知道怎么做很好的截取字符串,下面是截取字符串过程中我们必须知道的以下函数:substring 函数、Remove 函数、indexOf函数. substring 函数 返回第一个参数中从第二个参数指定的位置开始、第三个参...
分类:Windows程序   时间:2014-10-24 18:07:15    阅读次数:216
leetcode第35题--Valid Sudoku
题目:Determine if a Sudoku is valid, according to:Sudoku Puzzles - The Rules.The Sudoku board could be partially filled, where empty cells are filled wi...
分类:其他好文   时间:2014-10-24 14:15:06    阅读次数:174
LeetCode: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. 解题思路:直接DFS。 代码: /**...
分类:其他好文   时间:2014-10-24 13:04:21    阅读次数:147
NYIST 860 又见01背包
又见01背包时间限制:1000 ms | 内存限制:65535 KB难度:3描述 有n个重量和价值分别为wi 和 vi 的 物品,从这些物品中选择总重量不超过 W 的物品,求所有挑选方案中物品价值总和的最大值。 1 2 #include 3 #include 4 #include ...
分类:其他好文   时间:2014-10-23 22:35:24    阅读次数:164
安装Loopback网卡/回环网卡
$CurrentPath = $MyInvocation.MyCommand.Path.substring(0,$MyInvocation.MyCommand.Path.LastIndexOf('\')+1)$devcon = Join-Path $CurrentPath devcon.exe#使用...
分类:其他好文   时间:2014-10-23 18:55:19    阅读次数:157
UVa 10100 - Longest Match
题目:求两组字符串中最大的按顺序出现的相同单词数目。 分析:dp,最大公共子序列(LCS)。把单词整个看成一个元素比较即可。             状态:f(i,j)为s1串前i个单词与s2串前j个单词的最大匹配数;             转移:f(i,j)= max(f(i-1,j),f(i,j-1)){ s1[i] ≠ s2[j] };                       ...
分类:其他好文   时间:2014-10-23 16:17:30    阅读次数:183
WPA/WPA2/WEP
WiFi 不同的 安全保护 类型WPA全名为Wi-Fi Protected(保护) Access(入口),有WPA和WPA2两个标准,是一种保护无线电脑网络(Wi-Fi)安全的系统,它是应研究者在前一代的系统有线等效加密(WEP)中找到的几个严重的弱点而产生的。WPA实作了IEEE802.11i标准...
分类:其他好文   时间:2014-10-23 15:44:13    阅读次数:240
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!