上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 16 下一页
摘要: The set[1,2,3,…,n]contains a total ofn! unique permutations.By listing and labeling all of the permutations in order,We get the following sequence (ie... 阅读全文
posted @ 2014-12-02 11:02 雄哼哼 阅读(193) 评论(0) 推荐(0) 编辑
摘要: Given amxnmatrix, if an element is 0, set its entire row and column to 0. Do it in place.二维数组中为0的元素,就把该元素所在的行和列都置为0思路:开个结构数组p,用p记录该二维数组中为0的点的i,j脚标。然后分... 阅读全文
posted @ 2014-12-02 10:11 雄哼哼 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 安装方法1:我在ubuntu下安装requests的过程(先要安装pip,pip是linux上快速安装python包的软件):Install pip and virtualenv for Ubuntu 10.10 Maverick and newer$ sudo apt-get install py... 阅读全文
posted @ 2014-12-01 14:28 雄哼哼 阅读(17208) 评论(0) 推荐(0) 编辑
摘要: 字符串指针数组,也即该数组中的每一项都是一个指向字符串的指针。定义:char* s[3];即包含三个指针的数组,写成这种形式也可以更好的理解,即数组存的类型就是char*。另外一点:数组名一般是指首地址,所以对该数组的第一个元素取地址&s[0],由于s[0]是指针,所以数组名也就是一个指向指针的指针... 阅读全文
posted @ 2014-11-28 16:43 雄哼哼 阅读(1282) 评论(0) 推荐(0) 编辑
摘要: Given preorder and inorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in the tree.给定一棵树的前序遍历和中序遍历... 阅读全文
posted @ 2014-11-27 16:31 雄哼哼 阅读(141) 评论(0) 推荐(0) 编辑
摘要: Given a collection of numbers, return all possible permutations.For example,[1,2,3]have the following permutations:[1,2,3],[1,3,2],[2,1,3],[2,3,1],[3,... 阅读全文
posted @ 2014-11-25 10:34 雄哼哼 阅读(2094) 评论(0) 推荐(0) 编辑
摘要: 原文老张爱喝茶,废话不说,煮开水。出场人物:老张,水壶两把(普通水壶,简称水壶;会响的水壶,简称响水壶)。1 老张把水壶放到火上,立等水开。(同步阻塞)老张觉得自己有点傻2 老张把水壶放到火上,去客厅看电视,时不时去厨房看看水开没有。(同步非阻塞)老张还是觉得自己有点傻,于是变高端了,买了把会响笛的... 阅读全文
posted @ 2014-11-24 20:58 雄哼哼 阅读(152) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/fatsandwich/article/details/2131707#http://jakielong.iteye.com/blog/771663当一个任务(进程)执行系统调用而陷入内核代码中执行时,我们就称进程处于内核运行态(或简称为内核态)。此时处理器... 阅读全文
posted @ 2014-11-24 20:46 雄哼哼 阅读(289) 评论(0) 推荐(0) 编辑
摘要: Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large and are non-nega... 阅读全文
posted @ 2014-11-24 12:30 雄哼哼 阅读(266) 评论(0) 推荐(0) 编辑
摘要: Given a set of distinct integers,S, return all possible subsets.Note:Elements in a subset must be in non-descending order.The solution set must not co... 阅读全文
posted @ 2014-11-24 10:15 雄哼哼 阅读(373) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 16 下一页