码迷,mamicode.com
首页 >  
搜索关键字:times    ( 2480个结果
单例模式的终结者——setAccessible(true)
先来看下“传统”的单例模式 package go.derek; public class Singleton{ public static int times; private Singleton(){ //构造器被调用的时候会打印出次数 System.out.println("单例构造器被调用"+(++times)+"两次"); } private final sta...
分类:数据库   时间:2014-11-02 00:37:50    阅读次数:167
LeetCode:Single Number(2)
问题描述: Given an array of integers, every element appears three times except for one. Find that single one. Note: Your algorithm should have a linear runtime complexity. Could you implement it ...
分类:其他好文   时间:2014-10-30 11:52:50    阅读次数:256
Single Number
Problem Discription: Suppose the array A has n items in which all of the numbers apear 3 times except one. Find the single number. int singleNumber2(....
分类:其他好文   时间:2014-10-29 14:37:46    阅读次数:170
some time
some time,sometime,some times和 sometimes是常用的几个词,它们形似而含义不同。请记住下面口诀: 分开是“一段”, 相连为“某时”。 分开s是“倍、次”, 相连s是“有时”。读读下面四句话, 便会运用这四个词。例如:(1)I’ll stay here for so...
分类:其他好文   时间:2014-10-29 12:47:46    阅读次数:111
[詹兴致矩阵论习题参考解答]目录
第一章 预备知识 [詹兴致矩阵论习题参考解答]习题1.1   1. 设 $a_1,\cdots,a_n$ 为正实数, 证明矩阵 $$\bex \sex{\frac{1}{a_i+a_j}}_{n\times n} \eex$$ 半正定.
分类:其他好文   时间:2014-10-29 10:29:54    阅读次数:110
[詹兴致矩阵论习题参考解答]习题1.1
1. 设 $a_1,\cdots,a_n$ 为正实数, 证明矩阵 $$\bex \sex{\frac{1}{a_i+a_j}}_{n\times n} \eex$$ 半正定.
分类:其他好文   时间:2014-10-29 09:12:03    阅读次数:150
Using loops for repetitive actions
Loops are an important labor-saving device commonly used in Programming Languages. When you need the same code repeated several times, typing it all o...
分类:其他好文   时间:2014-10-28 15:23:56    阅读次数:199
Color the ball(杭电1556)
Color the ball Time Limit : 9000/3000ms (Java/Other)   Memory Limit : 32768/32768K (Java/Other) Total Submission(s) : 8   Accepted Submission(s) : 2 Font: Times New Roman | Verdana | Georgia ...
分类:其他好文   时间:2014-10-28 08:11:43    阅读次数:149
字符串算法
字符串逆转void reverse(char* str,int beg,int end){ int times = (end- beg +1)/2; while(times > 0) { char tmp = str[end]; str[end--] =...
分类:编程语言   时间:2014-10-26 16:52:45    阅读次数:114
leetcode - Insert Interval
Given a set of non-overlapping intervals, insert a new interval into the intervals (merge if necessary). You may assume that the intervals were initially sorted according to their start times. E...
分类:其他好文   时间:2014-10-26 15:38:41    阅读次数:196
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!