上一页 1 2 3 4 5 6 7 8 9 10 ··· 16 下一页
摘要: Given an integern, generate a square matrix filled with elements from 1 ton2in spiral order.For example,Givenn=3,You should return the following matri... 阅读全文
posted @ 2015-01-14 14:51 雄哼哼 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 参考文章一:写在前面DJango系列学习笔记主要以学习为主,并没有抱着写成一个产品做市场的心态。所以很多框架配置博主都是本着简单至上的原则,大家如果想在这里找到追求稳定、高性能的DJango相关内容,恐怕得失望了。但是我认为如果你是个和我一样的新手,不妨我们一起学习,一起进步。二:关于Python既... 阅读全文
posted @ 2015-01-13 21:39 雄哼哼 阅读(1831) 评论(0) 推荐(0) 编辑
摘要: Given an unsorted array of integers, find the length of the longest consecutive elements sequence.For example,Given[100, 4, 200, 1, 3, 2],The longest ... 阅读全文
posted @ 2015-01-13 15:26 雄哼哼 阅读(139) 评论(0) 推荐(0) 编辑
摘要: Suppose a sorted array is rotated at some pivot unknown to you beforehand.(i.e.,0 1 2 4 5 6 7might become4 5 6 7 0 1 2).You are given a target value t... 阅读全文
posted @ 2015-01-13 14:23 雄哼哼 阅读(188) 评论(0) 推荐(0) 编辑
摘要: Given a linked list, reverse the nodes of a linked listkat a time and return its modified list.If the number of nodes is not a multiple ofkthen left-o... 阅读全文
posted @ 2015-01-12 16:52 雄哼哼 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 原文地址将Sublime Text 2搭建成一个好用的IDE 说起编辑器,可能大部分人要推荐的是Vim和Emacs,本人用过Vim,功能确实强大,但是不是很习惯,之前一直有朋友推荐SUblime Text 2这款编辑器,然后这段时间就试了一下,就深深地喜欢上这款编辑器了,对于类似的编辑器,我用过n... 阅读全文
posted @ 2015-01-11 21:48 雄哼哼 阅读(181) 评论(0) 推荐(0) 编辑
摘要: Givennpairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, givenn= 3, a solution set is:"((()))... 阅读全文
posted @ 2015-01-11 15:52 雄哼哼 阅读(186) 评论(0) 推荐(0) 编辑
摘要: Given an arraySofnintegers, find three integers inSsuch that the sum is closest to a given number, target. Return the sum of the three integers. You m... 阅读全文
posted @ 2015-01-10 11:59 雄哼哼 阅读(171) 评论(0) 推荐(0) 编辑
摘要: Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, ... 阅读全文
posted @ 2015-01-09 15:54 雄哼哼 阅读(147) 评论(0) 推荐(0) 编辑
摘要: #include #include using namespace std;void my_swap(vector &a,int i,int j){ int temp=a[i]; a[i]=a[j]; a[j]=temp;}vector v;int n;void printPrem... 阅读全文
posted @ 2015-01-09 13:29 雄哼哼 阅读(509) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 16 下一页