首页 > 其他
字符串
字符串分为可变字符串和不可变字符串不可变字符串 1. 不可变字符串的初始化 NSString *string1 = [[NSString alloc] init]; NSString *string = [NSString stringA]; NSString *string...
分类:其他   时间:2015-10-04 15:52:32    收藏:0  评论:0  赞:0  阅读:226
117. Populating Next Right Pointers in Each Node II (Tree; WFS)
Follow up for problem "Populating Next Right Pointers in Each Node".What if the given tree could be any binary tree? Would your previous solution stil...
分类:其他   时间:2015-10-04 15:52:22    收藏:0  评论:0  赞:0  阅读:233
116. Populating Next Right Pointers in Each Node (Tree; WFS)
Given a binary tree struct TreeLinkNode { TreeLinkNode *left; TreeLinkNode *right; TreeLinkNode *next; }Populate each next pointe...
分类:其他   时间:2015-10-04 15:52:12    收藏:0  评论:0  赞:0  阅读:186
D - Silver Cow Party
题意:从x点到其他各点再返回,所有最短路径中的最长路径#include #include #include #include #include using namespace std;const int oo=100000007;struct node{ int u,v,w; int n...
分类:其他   时间:2015-10-04 15:52:02    收藏:0  评论:0  赞:0  阅读:297
119. Pascal's Triangle II? (Graph; WFS)
Given an index k, return the kth row of the Pascal's triangle. For example, given k = 3,Return [1,3,3,1].Note:Could you optimize your algorithm to use...
分类:其他   时间:2015-10-04 15:51:42    收藏:0  评论:0  赞:0  阅读:270
118. Pascal's Triangle (Graph; WFS)
Given numRows, generate the first numRows of Pascal's triangle. For example, given numRows = 5,Return[ [1], [1,1], [1,2,1], [1,3,3,1], [1,4,...
分类:其他   时间:2015-10-04 15:51:32    收藏:0  评论:0  赞:0  阅读:271
48. Rotate Image (Graph)
You are given an n x n 2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?class Solution ...
分类:其他   时间:2015-10-04 15:50:52    收藏:0  评论:0  赞:0  阅读:270
《深入理解计算机系统》第四周学习笔记
一、知识点总结1.信息存储练习题2.40x503c+0x8=0x50440x503c-0x40=0x4ffc0x503c+64=0x503c+0x40=0x507c0x50ea-0x503c=0xae1)字长:指明整数和指针数据的标称大小。一个字长为w的机器的虚拟地址范围为0~2^(w-1),程序最...
分类:其他   时间:2015-10-04 15:50:32    收藏:0  评论:0  赞:0  阅读:1435
107. Binary Tree Level Order Traversal II(Tree, WFS)
Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root). For ...
分类:其他   时间:2015-10-04 15:50:02    收藏:0  评论:0  赞:0  阅读:231
一次安装rpcbind失败引发的思考
问题:yum install rpcbind -y出现如下错误:Error in PREIN scriptlet in rpm package rpcbind-0.2.0-11.el6.x86_64error: %pre(rpcbind-0.2.0-11.el6.x86_64) scriptlet ...
分类:其他   时间:2015-10-04 15:49:52    收藏:0  评论:0  赞:0  阅读:1918
Hadoop集群搭建
注意:apache提供的hadoop-2.2.0的安装包是在32位操作系统编译的,因为hadoop依赖一些C++的本地库,所以如果在64位的操作上安装hadoop-2.2.0就需要重新在64操作系统上重新编译1.修改Linux主机名2.修改IP3.修改主机名和IP的映射关系######注意#####...
分类:其他   时间:2015-10-04 15:49:42    收藏:0  评论:0  赞:0  阅读:294
20135321余佳源——信息安全系统设计基础第三周学习总结
信息安全系统设计基础第三周学习总结 第四周:学习任务教材第二章 第四周(9.28-10.04): 学习计时:共10小时 读书:2 代码:2 作业:3 博客:3学习目标1. 理解二进制在计算机中的重要地位 2. 掌握布尔运算在C语言中的应用 3. 理解有符号整数、无符号整数、浮点数的表示 4. 理解补...
分类:其他   时间:2015-10-04 14:46:22    收藏:0  评论:0  赞:0  阅读:178
如何从PDF文件中提取矢量图
很多时候我们需要PDF文档中的插图,直接用pdf中的复制或者截屏软件只能提取位图格式的图片,放大缩小难免失真。本文教大家一种一种从pdf中提取矢量图的方法。工具软件:1adobe acrobat (可以选用福昕阅读器替代)2inkscape (选取该矢量作图软件因为安装包小,提供的常用功能住够应付日...
分类:其他   时间:2015-10-04 14:46:02    收藏:0  评论:0  赞:0  阅读:2422
将字符串转换成数字
问题叙述性说明:Implement atoi to convert a string to an integer.解决问题的思路:对于一个字符串,需要注意以下几点:1、所有的空气过滤器在字符串的开头格字符;2、注意数字字符前面的“+”和“-”字符。从而确定数字的正负号;3、仅仅处理数字字符,一旦出现...
分类:其他   时间:2015-10-04 14:45:42    收藏:0  评论:0  赞:0  阅读:219
字典与可变字典
字典的定义以及使用不可变字典1.在字典里 键 和 值是成对出现的 字典是通过键(Key)来存取值的且每一个值对应的Key是唯一的 字典的类名是NSDictionary2.字典的定义 (1)初始化一个空字典 NSDictionary *dic = [[NSDictionary alloc] ...
分类:其他   时间:2015-10-04 14:45:32    收藏:0  评论:0  赞:0  阅读:210
可变参函数
可变参函数
分类:其他   时间:2015-10-04 14:45:12    收藏:0  评论:0  赞:0  阅读:194
CDM
CDM:concept data model,即概念数据模型。可以由其生成PDM(物理数据模型),进而生成数据库的表结构。概念数据模型(Conceptual Data Model)简称概念模型,是面向数据库用户的现实世界的模型,主要用来描述世界的概念化结构,它使数据库的设计人员在设计的初始阶段,摆脱...
分类:其他   时间:2015-10-04 14:44:42    收藏:0  评论:0  赞:0  阅读:183
HDOJ--4821--String【弦hash】
联系:http://acm.hdu.edu.cn/showproblem.php?pid=4821题意:给一个字符串,选m个长度为l的子串组成新的串。要求这m个子串互不同样,问有多少种组合。字符串hash题目,曾经没做过,做这道之前还用bkdrhash做了两道简单的题目。POJ1200和HDU180...
分类:其他   时间:2015-10-04 14:44:32    收藏:0  评论:0  赞:0  阅读:231
106. Construct Binary Tree from Inorder and Postorder Traversal (Tree; DFS)
Given inorder and postorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in the tree.struct TreeNod...
分类:其他   时间:2015-10-04 14:44:02    收藏:0  评论:0  赞:0  阅读:238
有些事关于敏捷
昨。和一位同事,像敏捷的问题和需求文件,有一点争议。我结结巴巴,未能充分表达我的观点。回到他的想法整理,写下来。首先要说的是,敏捷与需求文档的关系。敏捷并不是排斥需求,它仅仅是给用户一个舒适地表述需求的环境。其实,敏捷相对于古老的RUP模式,更是把需求和測试抬到了一个前所未有的高度。传统的软件pro...
分类:其他   时间:2015-10-04 14:43:52    收藏:0  评论:0  赞:0  阅读:183
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!