码迷,mamicode.com
首页 >  
搜索关键字:return    ( 60766个结果
汇编实验课程设计1之设置时间半成品
; 感觉双休就想睡觉,这鬼天气,一直下雨。设置时间未完成,只是加了一个所谓的主界面; display system time. press f1 to change the color displayed, press esc to return main list. f3 exit; clear_...
分类:其他好文   时间:2014-05-27 03:09:58    阅读次数:320
【LeetCode】Permutations
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,...
分类:其他好文   时间:2014-05-27 02:42:35    阅读次数:202
bash里,echo对换行符的处理
echo -e "#include \nint main()\n{\n printf(\"hello world\\\n\");\n return 0;\n}" > h.c; gcc h.c; ./a.outh.c里的内容#include int main(){ printf("h...
分类:其他好文   时间:2014-05-24 07:34:05    阅读次数:213
java判断请求是否为ajax请求
/** * isAjaxRequest:判断请求是否为Ajax请求. * @param request 请求对象 * @return boolean * @since JDK 1.6 */public boolean isAjaxRequest(HttpServletRequest request....
分类:编程语言   时间:2014-05-24 06:11:54    阅读次数:254
解释器模式
Context.javapackage edu.interpreter;public class Context { private String input; private int output; public String getInput() { return...
分类:其他好文   时间:2014-05-19 14:56:22    阅读次数:322
LeetCode:Multiply Strings
题目链接Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large and are non-...
分类:其他好文   时间:2014-05-19 14:10:25    阅读次数:250
找到数组中唯一重复的数
#include#include#includeusing namespace std;int helper1(int a[],int n){ int sum = accumulate(a,a+n,0); int sum2 = n*(n-1)/2; return sum-sum2;}int h...
分类:其他好文   时间:2014-05-19 12:25:25    阅读次数:183
【LeetCode】Add Binary
Given two binary strings, return their sum (also a binary string).For example,a ="11"b ="1"Return"100".public class Solution { public String addBin...
分类:其他好文   时间:2014-05-19 12:15:49    阅读次数:220
在O(n)时间复杂度内找到出现超过一半的数
#includeusing namespace std;bool solver(const int a[],const int n, int & num){ if(NULL == a || 0>= n) return false; ////注意,是小写~ int count = 0; ...
分类:其他好文   时间:2014-05-19 12:11:20    阅读次数:335
Leetcode | Remove Duplicates from Sorted Array I && II
Remove Duplicates from Sorted Array IGiven a sorted array, remove the duplicates in place such that each element appear only once and return the new l...
分类:其他好文   时间:2014-05-19 12:10:41    阅读次数:329
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!