码迷,mamicode.com
首页 >  
搜索关键字:longest substring wi    ( 8067个结果
POJ3624
题目大意:给出珠宝的重量Wi和珠宝的价值Di,并给定一个重量范围M,在不超过M的情况下求取到的珠宝的最大值,N为列出珠宝的重量。 1 #include 2 #include 3 4 using namespace std; 5 6 int main() 7 { 8 int N ,M; ...
分类:其他好文   时间:2014-07-22 22:49:56    阅读次数:171
longest common substring
public static String lcs(String a, String b){ int aLen = a.length(); int bLen = b.length(); if(aLen==0 || bLen==0) return ""; if(a.char...
分类:其他好文   时间:2014-07-22 22:49:15    阅读次数:194
UITableView中Cell和section的插入与删除
插入段:- (void)insertSections:(NSIndexSet *)sections withRowAnimation:(UITableViewRowAnimation)animation;- (void)deleteSections:(NSIndexSet *)sections wi...
分类:其他好文   时间:2014-07-21 09:37:22    阅读次数:165
LeetCode:Longest Common Prefix
题目链接 Write a function to find the longest common prefix string amongst an array of strings. 题目的意思说的不是很清楚,开始理解成了求任意两个字符串的前缀中的最长者。但是本题的意思是求所有字符串的最长公共前缀,...
分类:其他好文   时间:2014-07-21 09:14:25    阅读次数:225
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 le...
分类:其他好文   时间:2014-07-21 09:07:24    阅读次数:207
5、NFC概述
什么是NFC NFC(Near Field Communication,近场通信),是一种数据传输技术。但与Wi-Fi、蓝牙、红外线等数据传输技术的一个主要差异就是有效距离一般不能超过4厘米。NFC的3种工作模式读卡器模式(Reader/writer mode) 读卡器模式本质上就是通过NFC设.....
分类:其他好文   时间:2014-07-21 09:06:06    阅读次数:231
17、Wi-Fi Direct
Wi-Fi Direct简介 从Android4.0(API Level=14)开始,允许通过Wi-Fi模块在两个移动设备之间建立直接连接(这种技术称为Wi-Fi Direct),这种连接不需要无线路由作为中介,而只是像蓝牙一样在两个设备之间直接建立的数据传输通道。在Android SDK中提供.....
分类:其他好文   时间:2014-07-21 00:19:41    阅读次数:368
POJ 2533 Longest Ordered Subsequence
题意:求最长递增子序列 AC代码:#include #include #include using namespace std; int dp[1010],a[1010]; int main() { int i,j,n; scanf("%d",&n); for(i=0;i<n;i++) scanf("%d",&a[i]); for(i=0;...
分类:其他好文   时间:2014-07-20 10:28:31    阅读次数:235
hdu4570Multi-bit Trie (区间DP)
Problem Description   IP lookup is one of the key functions of routers for packets forwarding and classifying. Generally, IP lookup can be simplified as a Longest Prefix Matching (LPM) problem. That'...
分类:其他好文   时间:2014-07-20 10:18:28    阅读次数:235
string 到 Color 的转换示例:
string colorstr = "#FF4D4D4D";string hex = colorstr.ToString().Replace("#", "");byte alpha;byte pos = 0;if (hex.Length == 8){ alpha = System.Convert.ToByte(hex.Substring(pos, 2), 16); pos = 2;}else{ a...
分类:其他好文   时间:2014-07-20 09:15:00    阅读次数:345
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!