码迷,mamicode.com
首页 >  
搜索关键字:return 设置样式 获取样式    ( 61336个结果
汇编实验课程设计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
java 日期字符串
public class MyDateFormat { /** * 格式化时间 * @param date * @param format * @return string */ public static String dateToStr...
分类:编程语言   时间:2014-05-19 16:36:00    阅读次数:339
【leetcode】Copy List with Random Pointer
A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null.Return a deep copy ...
分类:其他好文   时间:2014-05-19 15:50:28    阅读次数:447
解释器模式
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
迷上了代码!