码迷,mamicode.com
首页 >  
搜索关键字:rotated sorted array    ( 33072个结果
Error Domain=NSCocoaErrorDomain Code=3840 "The operation couldn’t be completed. (Cocoa error 3840.)"
AF解析json出错: Error Domain=NSCocoaErrorDomain Code=3840 "The operation couldn’t be completed. (Cocoa error 3840.)" (JSON text did not start with array or object and option to allow fragments not set....
分类:其他好文   时间:2014-07-22 23:04:13    阅读次数:400
leetcode__Merge k Sorted Lists
Merge k Sorted Lists  Total Accepted: 9746 Total Submissions: 41674My Submissions Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity....
分类:其他好文   时间:2014-05-01 17:11:32    阅读次数:234
冒泡排序法
1 /// 2 /// 冒泡排序法-for循环 3 /// 4 /// 5 private static void BubbleSort(int[] array) 6 { 7 ...
分类:其他好文   时间:2014-05-01 09:19:38    阅读次数:279
java开始到熟悉63-65
本次内容:java常用类1、包装类 1 package array; 2 3 public class wrapperclass { 4 public static void main(String[] args) 5 { 6 Integer i=new Inte...
分类:编程语言   时间:2014-05-01 09:16:28    阅读次数:384
Two Sum
Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two nu...
分类:其他好文   时间:2014-05-01 08:35:40    阅读次数:443
NSPredicate 的使用
NSPredicate:对self每个对象通过谓词进行筛选,判断是否与条件相匹配。作用相当于数据库的过滤取。主要用于从集合中分拣出符合条件的对象,也可以用于字符串的正则匹配第一、contains 判断 NSArray*array = [[NSArrayalloc]initWithObjects:.....
分类:其他好文   时间:2014-05-01 02:43:05    阅读次数:258
cpu数组不同的访问方式的性能测试
1:temp =  array[i]*i:  2410.0 ms 2:temp = GET(array,i) *i:  2410.0 ms 3:temp = get(array,i)*i:  2950.0 ms 4:int a = get(array,i);temp = a*i:  3340.0 ms 5:   int a = array[i];temp =  a*i;:  1990.0...
分类:其他好文   时间:2014-04-30 22:25:38    阅读次数:303
poj 2823 Sliding Window
Sliding Window Time Limit: 12000MS   Memory Limit: 65536K Total Submissions: 36147   Accepted: 10700 Case Time Limit: 5000MS Description An array of size n ≤ 106 i...
分类:Windows程序   时间:2014-04-29 13:45:21    阅读次数:503
net.sf.json.JSONException: 'object' is an array. Use JSONArray instead
list集合转换JSON出错误意思是:对象”是一个数组。使用jsonarray代替。解决方法:将JSONObject替换为JSONArray代码:JsonConfig jsonConfig = new JsonConfig();jsonConfig.setCycleDetectionStrategy(CycleDetectionStrategy.LENIENT);JSONArray json = ...
分类:Web程序   时间:2014-04-29 13:43:21    阅读次数:1280
NSPredicate的使用
NSPredicate:对self每个对象通过谓词进行筛选,判断是否与条件相匹配。原理和用法都类似于SQL查询中的where,作用相当于数据库的过滤取。主要用于从集合中分拣出符合条件的对象,也可以用于字符串的正则匹配 第一、contains 判断         NSArray *array = [[NSArray alloc]initWithObjects:@"beijing",@"s...
分类:其他好文   时间:2014-04-29 13:32:23    阅读次数:375
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!