码迷,mamicode.com
首页 >  
搜索关键字:one discrete length    ( 47106个结果
黑马程序员 Foundation框架之结构体
#import int main(){/* 1.NSRange/CGRange 2.NSPoint/CGPoint 3.NSSize/CGSize 4.NSRect/CGRct */// NSRange/CGRange(location,length)NSString *str = @"i love...
分类:其他好文   时间:2014-05-08 14:51:00    阅读次数:325
hust 1223 Friends
题目描述Nancy, the leader of a group, always participates in many different kinds of competitions. One day, she decides to choose some of her group member...
分类:其他好文   时间:2014-05-08 12:24:14    阅读次数:353
jQuery 层次选择器
$("div span") 选取里的所有元素$("div >span") 选取元素下元素名是的子元素$("#one +div") 选取id为one的元素的下一个同辈元素 等同于$(#one).next("div")$("#one~div") 选取id为one的元素的元素后面的所有同辈元素 等同于$....
分类:Web程序   时间:2014-05-08 12:06:18    阅读次数:620
LeetCode——Single Number(II)
Single Number  Total Accepted: 19800 Total Submissions: 44027My Submissions Given an array of integers, every element appears twice except for one. Find that single one. Note: Your algor...
分类:其他好文   时间:2014-05-08 11:01:40    阅读次数:298
Leetcode: Roman to Integer
一次通过: 1 public class Solution { 2 public int romanToInt(String s) { 3 int sum = 0; 4 int[] num = new int[s.length()]; 5 if...
分类:其他好文   时间:2014-05-08 08:24:26    阅读次数:233
android Toasts
1.基础 Context context = getApplicationContext(); CharSequence text = "Hello toast!"; int duration = Toast.LENGTH_SHORT; Toast toast = Toast.makeText(context, text, duration); toast.show(); 当然也可以将方...
分类:移动开发   时间:2014-05-08 04:19:04    阅读次数:357
hdu 1217 Arbitrage Floyd||SPFA
转载请注明出处:http://acm.hdu.edu.cn/showproblem.php?pid=1217 Problem Description Arbitrage is the use of discrepancies in currency exchange rates to transform one unit of a currency into more than one u...
分类:其他好文   时间:2014-05-08 01:48:12    阅读次数:469
hdu 4283 You Are the One 区间dp
参考了别人的思路dp[i][j]表示从第i个人到第j个人这段区间的最小花费是只考虑这j-i+1个人,不需要考虑前面有多少人)那么对于dp[i][j]的第i个人,、就有可能第1个上场,也可以第j-i+1个上场。考虑第K个上场即在i+1之后的K-1个人是率先上场的,那么就出现了一个子问题 dp[i+1]...
分类:其他好文   时间:2014-05-07 21:00:09    阅读次数:311
LeetCode:Maximum Subarray
题目链接 Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For example, given the array [?2,1,?3,4,...
分类:其他好文   时间:2014-05-07 16:42:42    阅读次数:287
unicode编码问题
因为/u0022表示的是"所以本质上是:System.out.println("a".length()+"b".length());//本质上是这样的
分类:其他好文   时间:2014-05-07 15:31:07    阅读次数:266
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!