码迷,mamicode.com
首页 > 其他好文
设计模式之单例模式
1 /////////////////////////////////////////////////////////////////////////////// 2 // 3 // FileName : singleton.h 4 // Version : 0.10 5...
分类:其他好文   时间:2014-06-27 11:29:51    阅读次数:227
猴子请来的逗比项目流水总结
一、美工相关 因为2D sprite图片使用rotate翻转之后貌似碰撞器不会随之改变位置,所以使用scale * -1 来实现翻转,这样一来,3渲2出来的图片最好关于中心轴对称,否则翻转之后会出现如下问题: 从游戏画面角度来说这个人物就好像瞬移旋转一样。 使用程序初步解决了这个问题,在翻转前...
分类:其他好文   时间:2014-06-27 11:31:11    阅读次数:198
[再寄小读者之数学篇](2014-06-23 Grownall-type inequality)
Suppose that $$\bex \cfrac{\rd f}{\rd t}+h\leq gf\quad (f,g,h\geq 0,\ t\in [0,T]). \eex$$ Then for $t\in [0,T]$, $$\bex f(t)+\int_0^t h(s)\rd s \leq f...
分类:其他好文   时间:2014-06-27 11:31:51    阅读次数:132
【POJ】2503 Babelfish
字典树简单题。 1 #include 2 #include 3 #include 4 5 typedef struct Trie { 6 Trie *next[26]; 7 char str[15]; 8 } Trie; 9 10 Trie root;11 12 void c...
分类:其他好文   时间:2014-06-27 11:32:27    阅读次数:172
jvm调优
jvm性能调优的目地:1)控制jvm的堆栈大小。比方当你的程序年轻代对象在某个时间段产生的比較多的时候,就须要控制年轻代的堆大小。同一时候还要控制总的JVM大小避免内存溢出2)控制GC的行为。GC是一个后台处理,可是它也是会消耗系统性能的,因此要依据执行程序的特点来更改GC行为。3)控制jvm线程的...
分类:其他好文   时间:2014-06-27 11:33:39    阅读次数:162
[leetcode] Anagrams
Given an array of strings, return all groups of strings that are anagrams.
分类:其他好文   时间:2014-06-27 11:34:57    阅读次数:641
DECLARE
-- 修正用プログラム DECLARECURSOR c_adv_fee_detail ISSELECT adv_fee.fee_mgmt_num,adv_fee.fee_mgmt_eda,adv_fee.receipt_num,adv_fee.his,adv_fee.ksai_sha_code,ad...
分类:其他好文   时间:2014-06-27 11:36:56    阅读次数:292
LeetCode OJ - Add Two Numbers
题目:You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a sing...
分类:其他好文   时间:2014-06-27 11:38:12    阅读次数:207
6月26号=》216页-220页
10.1 布局相关属性 CSS提供了如下布局相关属性。 float:该属性控制目标HTML组件是否浮动以及如何浮动。当通过该属性设置某个对象浮动后,该对象将被当做块(block-level) 组件处理,即相当与display属性被设置为block。也就...
分类:其他好文   时间:2014-06-27 11:37:35    阅读次数:166
[leetcode] Rotate List
Given a list, rotate the list to the right by k places, where k is non-negative.
分类:其他好文   时间:2014-06-27 11:39:33    阅读次数:289
[leetcode] N-Queens II
Now, instead outputting board configurations, return the total number of distinct solutions.
分类:其他好文   时间:2014-06-27 11:40:13    阅读次数:277
[leetcode] Spiral Matrix II
Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order.
分类:其他好文   时间:2014-06-27 11:40:49    阅读次数:156
Ubuntu中Git服务器搭建
git服务器搭建过程参考网上资料搭建git服务器过程记录 如下:需求硬件需求:一台Ubuntu或者debian电脑(虚拟机),能通过网络访问到。软件需求:git-core, gitosis, openssh-server, openssh-client, Apache2(Gitweb)安装配置git...
分类:其他好文   时间:2014-06-27 11:41:26    阅读次数:208
[leetcode] Jump Game
Given an array of non-negative integers, you are initially positioned at the first index of the array.
分类:其他好文   时间:2014-06-27 11:42:04    阅读次数:146
CREATE OR REPLACE FUNCTION
CREATE OR REPLACE FUNCTION SF_Taishou_Ksai_Date(v_receiptNum IN CHAR, v_his IN CHAR) RETURN VARCHAR2 DETERMINISTIC IS RESULT VARCHAR2(50); v_result_t ...
分类:其他好文   时间:2014-06-27 11:42:42    阅读次数:170
[leetcode] Maximum Subarray
Find the contiguous subarray within an array (containing at least one number) which has the largest sum.
分类:其他好文   时间:2014-06-27 11:43:25    阅读次数:173
[leetcode] Insert Interval
Given a set of non-overlapping intervals, insert a new interval into the intervals (merge if necessary).
分类:其他好文   时间:2014-06-27 11:44:03    阅读次数:180
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!