码迷,mamicode.com
首页 >  
搜索关键字:integer game    ( 20395个结果
取文件的大小 (KB,MB,GB...)
取文件的大小 (KB,MB,GB...) 2种方式: VB 和 C# 1,  VB Public Function GetFileSize(ByVal iFileSizeKB As Long) As String Dim iFileSizeMB As Integer Dim iFileSizeGB As Integer If (iFileSizeKB >= 1024) Th...
分类:其他好文   时间:2014-06-19 12:39:06    阅读次数:310
Jump Game II
题目 Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maximum jump length at that position. ...
分类:其他好文   时间:2014-06-19 11:46:47    阅读次数:277
Pow(x, n)
题目 Implement pow(x, n). 方法 注意Integer.MIN_VALUE值和Integer.MAX_VALUE值。 public double pow(double x, int n) { if (n == 0) { return 1; } if (n == Integer.MIN_VAL...
分类:其他好文   时间:2014-06-19 10:37:27    阅读次数:210
create a cocos2d-x-3.0 project in Xcode
STEP1: Open Terminal SETP2: Run setup.py SETP3: Run source /Users/your_user/.bash_profile( so that environment variables are actually updated) SETP4: Run cocos new my game -p com.your_company.mygame -l cpp -d /diretory_to_your_game Open Terminal R...
分类:其他好文   时间:2014-06-16 12:22:35    阅读次数:178
LeetCode ---- Merge Sorted Array
题目链接Problem discriptionGiven two sorted integer arrays A and B, merge B into A as one sorted array.Note:You may assume that A has enough space (size t...
分类:其他好文   时间:2014-06-16 11:12:36    阅读次数:192
java hashcode的Delphi实现
程序使用java做后台服务,数据处理时使用了java的hashcode,Delphi程序也需要生成这个hashcode,为了一致,所以要在Delphi下实现和Java一样的算法。下面即Delphi版的hashCode:function hashCode(val: string): Integer;v...
分类:编程语言   时间:2014-06-16 09:30:51    阅读次数:303
delphi 结束指定进程
转自:http://blog.csdn.net/mailreboot/article/details/1946866 1 //结束进程 2 function KillTask(ExeFileName: string): Integer; 3 const 4 PROCESS_TERMINATE = ....
分类:其他好文   时间:2014-06-16 07:11:11    阅读次数:270
LeetCode Integer to Roman
class Solution {private: const static char* pattern[]; const static char* roman_digit[];public: string intToRoman(int num) { if (num ...
分类:其他好文   时间:2014-06-16 07:04:22    阅读次数:171
[LeetCode] [First Missing Positive 2012-03-08]
Given an unsorted integer array, find the first missing positive integer.For example, Given [1,2,0] return 3, and [3,4,-1,1] return 2.Your algorithm s...
分类:其他好文   时间:2014-06-13 20:25:38    阅读次数:241
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!