前言MJExtension是一套“字典和模型之间互相转换”的轻量级框架MJExtension能完成的功能
字典 –> 模型
模型 –> 字典
字典数组 –> 模型数组
模型数组 –> 字典数组
具体用法主要参考 “NSObject+MJKeyValue.h”...
分类:
其他好文 时间:
2016-06-06 01:13:44
阅读次数:
316
题目描述
求出1~13的整数中1出现的次数,并算出100~1300的整数中1出现的次数?为此他特别数了一下1~13中包含1的数字有1、10、11、12、13因此共出现6次,但是对于后面问题他就没辙了。ACMer希望你们帮帮他,并把问题更加普遍化,可以很快的求出任意非负整数区间中1出现的次数。
代码1:
public class Solution {
public int Numb...
分类:
其他好文 时间:
2016-06-06 01:12:50
阅读次数:
180
Rotate List
这个题的意思旋转链表,更具体点的意思右移链表,移出去的节点放到头部前面,结合着题目给出的例子还是很好理解的。
这个题的主要思路是:摘取从末尾到头的k个节点,然后将他们放到头部。
需要注意的是,上面说的k并不一定等于传入的k的值,因为这个k很可能比链表的长度还大。所以我主要思路是:遍历一遍链表,找到链表的长度n,然后k%=n(这时候k...
分类:
其他好文 时间:
2016-06-06 01:12:01
阅读次数:
184
一天一道LeetCode
本系列文章已全部上传至我的github,地址:ZeeCoder‘s Github
欢迎大家关注我的新浪微博,我的新浪微博
欢迎转载,转载请注明出处
(一)题目
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct nu...
分类:
其他好文 时间:
2016-06-06 01:10:53
阅读次数:
143
题目链接:https://leetcode.com/problems/valid-palindrome/
题目:
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.
For example,
"A man, ...
分类:
其他好文 时间:
2016-06-06 01:09:37
阅读次数:
198
题目链接:https://leetcode.com/problems/compare-version-numbers/
题目:
Compare two version numbers version1 and version2.
If version1 > version2 return 1, if version1
You may assume that the versi...
分类:
其他好文 时间:
2016-06-06 01:09:09
阅读次数:
157
题目链接:https://leetcode.com/problems/longest-common-prefix/
题目:
Write a function to find the longest common prefix string amongst an array of strings.
算法:
[java] view
plain c...
分类:
其他好文 时间:
2016-06-06 01:09:11
阅读次数:
194
题目链接:https://leetcode.com/problems/implement-strstr/
题目:
Implement strStr().
Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.
算法:
...
分类:
其他好文 时间:
2016-06-06 01:11:08
阅读次数:
172
题目链接:https://leetcode.com/problems/valid-parentheses/
题目:
Given a string containing just the characters '(', ')', '{', '}', '[' and ']',
determine if the input string is valid.
The brackets...
分类:
其他好文 时间:
2016-06-06 01:10:09
阅读次数:
142
passage two In 1950, a young man would have found it much easier than it is today to get and keep a job in the auto industry. would have done 虚拟语气,表示对 ...
分类:
其他好文 时间:
2016-06-06 01:06:51
阅读次数:
875
一.if结构:(判断) if(条件1){代码1} else if(条件2){代码2} else{代码3} 二.swith:(选择) swith(变量或表达式) {case值1:代码1,break; case值2:代码2,break; defanlt:代码N,break;} 仅支持一下类型的比较:St ...
分类:
其他好文 时间:
2016-06-06 01:07:38
阅读次数:
121
Atitit.报名模块的管理 1.1. 统计报名数据1 1.2. 存储1 1.3. 报名1 1.4. 查看报名数据3 1.1. 统计报名数据 select count(*) as nums from wxb_order where good_id='83467583' http://192.168. ...
分类:
其他好文 时间:
2016-06-06 01:07:41
阅读次数:
227
又到一年的高考季,各大门户网站,社会议论热点也都开始在这个时候来关注高考的各个方面,高考这一话题也周期性的刷新着新闻首页。不得不说在我们已经熟知的教育体系下,高考确实是我们人生转折的一件大事,是改变我们命运的起点,这一点我从重来都没有怀疑过。现在我也是毕业一年的人啦,在工作一年之后在很多次的挣扎考虑 ...
分类:
其他好文 时间:
2016-06-06 01:05:52
阅读次数:
197
本章的主要内容是一个Linux驱动程序,Linux 驱动的工作和访问方式,怎样编写Linux驱动程序以及Linux驱动程序的开发和测试。 一:统计单词个数: 1.准备工作:建立并进入存放linux驱动程序的目录,编写Makefile文件 2. 初始化和退出驱动:安装linux驱动、查看word_co ...
分类:
其他好文 时间:
2016-06-06 01:06:16
阅读次数:
188
Atitit.用户权限服务 登录退出功能 参数说明 /com.attilax/user/loginOut.jsp?url="+url Utype=mer 作者:: ★(attilax)>>> 绰号:老哇的爪子 ( 全名::Attilax Akbar Al Rapanui 阿提拉克斯 阿克巴 阿尔 拉 ...
分类:
其他好文 时间:
2016-06-06 01:06:34
阅读次数:
183
第五章主要学习了搭建S3C6410开发板的测试环境。首先要了解到S3C6410是一款低功耗、高性价比的RISC处理器它是基于ARMI1内核,广泛应用于移动电话和通用处理等领域。 开发板从技术上说与我们经常用的手机类似, 也包含显示屏、 键盘、 Wi-Fi、 蓝牙等模块(可 能有的是选配〉。但与手机不 ...
分类:
其他好文 时间:
2016-06-06 01:04:57
阅读次数:
157
进程同步:一组并发进程进行相互合作、互相等待,使得各进程按一定的顺序执行的过程。 生产者和消费者问题 A生产产品,B取走产品, 让信号量初值为0,生产者不用获取信号量,但要释放信号量1. 消费者要获取信号量,但不用释放信号量0. 生产者producer.c customer.c 先执行: ./pro ...
分类:
其他好文 时间:
2016-06-06 01:05:30
阅读次数:
160