码迷,mamicode.com
首页 > 其他好文
混合报文
流报文+xml报文6为前置长度--------------------xml报文
分类:其他好文   时间:2015-07-15 20:58:44    阅读次数:124
当服务器中的某个属性是description和id,会覆盖对象中的description,怎么办
MJExtention:- (NSDictionary*)replacedKeyFromPropertyName{ return @{@"desc" : @"description", @"ID" : @"id"};}太爽了。。。。。。。
分类:其他好文   时间:2015-07-15 20:57:44    阅读次数:128
OC -- NSDictionary NSMutableDictionary
NSDictionary NSMutableDictionary 只能存放OC对象,不能存放int, float, double, struct, enum类型数据NSDictionary *dict1 = @{@"name" : @"As god name", @"address" : @"sha...
分类:其他好文   时间:2015-07-15 20:58:33    阅读次数:132
[LeetCode] Jump Game
This problem has a very concise solution in this link, just 4-lines. The code is rewritten below.1 class Solution {2 public:3 bool canJump(vector&...
分类:其他好文   时间:2015-07-15 20:57:01    阅读次数:121
hdu 3496 二维费用的01背包
算是比较简单的二维费用背包了吧,注意在某一维上要求“装满”。另外:对于多维费用的背包,最内层的循环可以逆着写,想一想,为什么。 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 const int ...
分类:其他好文   时间:2015-07-15 20:57:12    阅读次数:154
DataList和Repeater
DataList和Repeater是两个十分有用的控件,在新闻列表和图片展示的地方经常用到。在这里简单的把他们介绍一下。1.DataList:前端页面: ' width="174" height="130" alt="" style="cursor: hand;" /> ...
分类:其他好文   时间:2015-07-15 20:56:51    阅读次数:124
UVA - 11637 Garbage Remembering Exam (组合+可能性)
Little Tim is now a graduate,and is thinking about higher studies. However, he first needs to appear in anexam whose preparation alone includes memori...
分类:其他好文   时间:2015-07-15 20:57:08    阅读次数:137
Delete Node in a Linked List
Write a function to delete a node (except the tail) in a singly linked list, given only access to that node.Supposed the linked list is1 -> 2 -> 3 -> ...
分类:其他好文   时间:2015-07-15 20:55:47    阅读次数:119
【分块打表】bzoj1662 [Usaco2006 Nov]Round Numbers 圆环数
#includeusing namespace std;#define BN 380000const int table[]={0,185815,378154,561654,744350,886427,1075474,1310828,1513089,1705514,1867434,1971454,2...
分类:其他好文   时间:2015-07-15 20:56:26    阅读次数:526
神经猫 系列信息
本文陆续收集《神经猫》的相关资料,帮助敏捷大拇指( http://www.swifthumb.com 国内排名第一的swift开发人员社区)用户学习。期待大家也开发出火爆的应用来。 ... ...本文陆续收集《神经猫》的相关资料。帮助敏捷大拇指(http://www.swifthumb.com)用户...
分类:其他好文   时间:2015-07-15 20:54:58    阅读次数:130
OC -- NSArray NSMutableArray
NSArray NSMutableArray的声明注:NSArray与NSMutableArray中只能存放OC对象类型数据,不能存放int, float, double, struct, enum类型数据NSArray *array1 = @[@"first", @"second", @"thir...
分类:其他好文   时间:2015-07-15 20:54:54    阅读次数:129
[leedcode 84] Largest Rectangle in Histogram
Givennnon-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the histog...
分类:其他好文   时间:2015-07-15 20:55:22    阅读次数:105
UIImagePickerController---图片添加---初级使用
1.创建UIImageView-(void)creatPhotoImageView{ self.photoImageView = [[UIImageView alloc] initWithFrame:CGRectMake(10, 20, 80, 80)]; self.photoImageView.b...
分类:其他好文   时间:2015-07-15 20:54:33    阅读次数:126
今日竞赛—解题报告
B - B Time Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmit Status Practice CodeForces 554BDescriptionOhana Matsumae is trying t...
分类:其他好文   时间:2015-07-15 20:54:11    阅读次数:123
Number of Digit One
Given an integer n, count the total number of digit 1 appearing in all non-negative integers less than or equal to n.For example:Given n = 13,Return 6...
分类:其他好文   时间:2015-07-15 20:52:00    阅读次数:115
nyoj 16 最长上升子序列变形
经典矩形嵌套问题,先排序再求LIS。需要注意在枚举j的时候x和y都要小于i才行。 1 #include 2 #include 3 using namespace std; 4 5 const int N = 1000; 6 int dp[N]; 7 8 struct Node 9 {10 ...
分类:其他好文   时间:2015-07-15 20:51:32    阅读次数:102
LeetCode#234 Palindrome Linked List
Problem Definition: Given a singly linked list, determine if it is a palindrome. Follow up: Could you do it in O(n) time and O(1) space?思路:为了达到O(1)...
分类:其他好文   时间:2015-07-15 20:52:39    阅读次数:104
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!