首页 > 其他
OC学习笔记之Foundation框架NSNumber、NSValue和NSDate(转)
一、NSNumber OC数组类NSArray,它只能存放OC的对象,对于基本的数据类型确无能为力,但是实际编程中经常要把基本的数据如int、float,结构体存放的OC数组中,怎么办?这里的NSNumber就有用了,它能够把基本数据类型包装成OC对象。 // 将整形包装成OC对象 NSNu...
分类:其他   时间:2015-10-03 11:53:50    收藏:0  评论:0  赞:0  阅读:254
61. Rotate List(List)
Given a list, rotate the list to the right by k places, where k is non-negative.For example:Given 1->2->3->4->5->NULL and k = 2,return 4->5->1->2->3->...
分类:其他   时间:2015-10-03 11:53:10    收藏:0  评论:0  赞:0  阅读:184
jqgrid单元格设置空值的方法
项目中使用jqgrid,在使用的场景下经常需要清空单元格内容,于是使用了下面的代码:1 $("#jqgrid1").jqGrid('setCell',rowId, 'column', '');然后竟然没有起作用,值还是有的,这个不可能jqgrid没有这种方式,于是没有查文档,查看了一下页面的源代码,...
分类:其他   时间:2015-10-03 11:52:50    收藏:0  评论:0  赞:1  阅读:2057
35. Search Insert Position (Array)
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in or...
分类:其他   时间:2015-10-03 11:52:40    收藏:0  评论:0  赞:0  阅读:177
[LeetCode] 116 - Populating Next Right Pointers in Each Node
Given a binary tree struct TreeLinkNode { TreeLinkNode *left; TreeLinkNode *right; TreeLinkNode *next; }Populate each next pointe...
分类:其他   时间:2015-10-03 11:52:30    收藏:0  评论:0  赞:0  阅读:140
DOM一致性检测
DOM一致性检测
分类:其他   时间:2015-10-03 11:52:10    收藏:0  评论:0  赞:0  阅读:230
顶级编程人员推荐软件
2015-10-3 10:44AM 国庆第四天,外婆家
分类:其他   时间:2015-10-03 11:52:00    收藏:0  评论:0  赞:0  阅读:187
wamp独立环境搭建
搭建环境基础知识什么是网站?网站是一种能够提供web访问服务的电脑。用户:网站就是一个用户能够通过浏览器(web)进行访问的方式。(浏览器上通过输入url,获得其他电脑(web服务器)的资源并且进行显示。)程序员:网站就是一个在安装了服务器的电脑上,提供一个可以被访问的资源(文件夹) 2.什么是服....
分类:其他   时间:2015-10-03 11:51:50    收藏:0  评论:0  赞:0  阅读:257
Maven实战五
转载:http://www.iteye.com/topic/1123232我们项目中用到的jar包可以通过依赖的方式引入,构建项目的时候从Maven仓库下载即可。1. 依赖配置 依赖可以声明如下: Xml代码 ...group-aartifact-a1.0group-cexcluded-artif....
分类:其他   时间:2015-10-03 11:51:40    收藏:0  评论:0  赞:0  阅读:195
143. Reorder List(List)
Given a singly linked list L: L0→L1→…→Ln-1→Ln,reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→…You must do this in-place without altering the nodes' values.For ....
分类:其他   时间:2015-10-03 11:51:20    收藏:0  评论:0  赞:0  阅读:201
80. Remove Duplicates from Sorted Array II (Array)
Follow up for "Remove Duplicates":What if duplicates are allowed at most twice?For example,Given sorted array nums = [1,1,1,2,2,3],Your function shou....
分类:其他   时间:2015-10-03 11:49:40    收藏:0  评论:0  赞:0  阅读:139
ZOJ 3349 Special Subsequence
Special SubsequenceTime Limit: 5000msMemory Limit: 32768KBThis problem will be judged onZJU. Original ID:334964-bit integer IO format:%lld Java class ...
分类:其他   时间:2015-10-03 11:49:30    收藏:0  评论:0  赞:0  阅读:190
83. Remove Duplicates from Sorted List (List)
Given a sorted linked list, delete all duplicates such that each element appear only once. For example,Given 1->1->2, return 1->2.Given 1->1->2->3->3,...
分类:其他   时间:2015-10-03 11:49:10    收藏:0  评论:0  赞:0  阅读:106
转载 - Struts2基于XML配置方式实现对action的所有方法进行输入校验
出处:http://www.cnblogs.com/Laupaul/archive/2012/03/15/2398360.html使用基于XML配置方式实现输入校验时,Action也需要继承ActionSupport,并且提供校验文件,校验文件和action类放在同一个包下,文件的取名格式为:Act...
分类:其他   时间:2015-10-03 11:49:00    收藏:0  评论:0  赞:0  阅读:232
[LeetCode] 94 - Binary Tree Inorder Traversal
Given a binary tree, return theinordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3return[1,3,2].Note...
分类:其他   时间:2015-10-03 11:48:10    收藏:0  评论:0  赞:0  阅读:169
Maven实战六
转载:http://www.iteye.com/topic/1132509一、简介settings.xml对于maven来说相当于全局性的配置,用于所有的项目,当Maven运行过程中的各种配置,例如pom.xml,不想绑定到一个固定的project或者要分配给用户时,我们使用settings.xml...
分类:其他   时间:2015-10-03 11:47:21    收藏:0  评论:0  赞:0  阅读:260
[LeetCode]3Sum Closest
题目描述:(链接)Given an arraySofnintegers, find three integers inSsuch that the sum is closest to a given number, target. Return the sum of the three intege...
分类:其他   时间:2015-10-03 11:46:50    收藏:0  评论:0  赞:0  阅读:202
程序设计课程技巧小总结
一、while(scanf("%d %d",&a,&b)!=EOF) EOF是文件结束流 这个一般在ACM比赛中要求输入数据有多组时这么做while (scanf("...",...)!=EOF) 这个语句经常在有多组输入数据或者文件读取的时候见到。while(scanf("%lf%lf%lf",....
分类:其他   时间:2015-10-03 11:46:30    收藏:0  评论:0  赞:0  阅读:221
try-catch 深入理解
try-catch 深入理解下面看一个例子(例1),来讲解java里面中try、catch、finally的处理流程1234567891011121314151617181920212223publicclassTryCatchFinally {@SuppressWarnings("finally"...
分类:其他   时间:2015-10-03 11:46:10    收藏:0  评论:0  赞:0  阅读:249
jqgrid 设置单元格编辑/不可编辑
首先设置不可编辑,如下代码:$("#jqgrid1").jqGrid('setCell', rowId, 'column', '0', 'not-editable-cell');在单元格上设置一个'not-editable-cell'就可以了,如果需要设置为可编辑,那么可以使用下面的代码: 1 fu...
分类:其他   时间:2015-10-03 11:45:50    收藏:0  评论:0  赞:0  阅读:353
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!