码迷,mamicode.com
首页 >  
搜索关键字:samll note    ( 7370个结果
快速排序之算法导论实现
#include using namespace std; int partition(int *a,int p,int r) { int x=a[r]; int i=p-1;//note i important which is used for //storage the number smaller than flag x=a[r] for (int j=p;j<r;j++...
分类:其他好文   时间:2014-07-08 21:06:59    阅读次数:232
Leetcode--3Sum
Problem Description: Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero. Note: El...
分类:其他好文   时间:2014-07-08 18:31:01    阅读次数:159
Python中文乱码问题
1:源代码#!/usr/bin/env pythonname = raw_input('请输入您的姓名:')print 'Hello,', name运行时出错:y@y:~/my_note/my_python$ python 5.py File "5.py", line 3SyntaxError:.....
分类:编程语言   时间:2014-07-06 21:57:42    阅读次数:236
leetcode-Subsets
SubsetsTotal Accepted:13267Total Submissions:48509My SubmissionsGiven a set of distinct integers,S, return all possible subsets.Note:Elements in a sub...
分类:其他好文   时间:2014-07-06 17:50:21    阅读次数:170
Leetcode Anagrams
Given an array of strings, return all groups of strings that are anagrams.Note: All inputs will be in lower-case.题目的意思是:给出一组字符串,按组返回拥有相同变位词的字符串解题思路是: ...
分类:其他好文   时间:2014-07-06 17:47:10    阅读次数:210
安装配置NFS服务
超级好的配置centos下服务的链接 http://www.server-world.info/en/note?os=CentOS_6&p=nfs http://linux.vbird.org/linux_server/0330nfs.php 以下是NFS最显而易见的好处: 本地工作站使用更少的磁盘...
分类:其他好文   时间:2014-07-06 16:37:55    阅读次数:188
Single Number
Given an array of integers, every element appearstwiceexcept for one. Find that single one.Note:Your algorithm should have a linear runtime complexity...
分类:其他好文   时间:2014-07-06 13:17:57    阅读次数:199
Leetcode Construct Binary Tree from Inorder and Postorder Traversal
Given inorder and postorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in the tree.class Solution...
分类:其他好文   时间:2014-07-03 20:25:21    阅读次数:219
Leetcode Construct Binary Tree from Preorder and Inorder Traversal
Given preorder and inorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in the tree.此题目有两种解决思路:1)递归...
分类:其他好文   时间:2014-07-03 20:07:01    阅读次数:199
C++ Primer Study Note 系列[1]-chapter1快速入门
Iwanttostudyitallthetime,andnowIamreadytostudythisbookinthenextmouth.Time:2014/07/02先看一个程序体验一下:#include<iostream> intmain() { /*Thisisatestexample*/ std::cout<<"Entertwonumbers:"<<std::endl; intv1,v2; std::cin>>v1>>v..
分类:编程语言   时间:2014-07-03 15:24:04    阅读次数:221
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!