Follow up for "Unique Paths":Now consider if some obstacles are added to the grids. How many unique paths would there be?An obstacle and empty space i...
分类:
其他好文 时间:
2014-08-12 16:40:14
阅读次数:
157
Consider integer numbers from 1 to n. Let us call the sum of digits of an integer number its weight. Denote the weight of the number x as w(x).
Now let us order the numbers using so called graduated ...
分类:
其他好文 时间:
2014-08-10 18:47:20
阅读次数:
406
在前面一篇文章中,我们分析了Android系统在启动时安装应用程序的过程,这些应用程序安装好之后,还须要有一个Home应用程序来负责把它们在桌面上展示出来,在Android系统中,这个默认的Home应用程序就是Launcher了,本文将详细分析Launcher应用程序的启动过程。 Andr...
分类:
移动开发 时间:
2014-08-10 18:23:00
阅读次数:
396
MainActivity如下:
package cc.uu;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;
import andr...
分类:
移动开发 时间:
2014-08-09 23:16:49
阅读次数:
407
Sumdiv
Time Limit: 1000MS
Memory Limit: 30000K
Total Submissions: 13959
Accepted: 3433
Description
Consider two natural numbers A and B. Let S be the sum of all natur...
分类:
其他好文 时间:
2014-08-09 11:43:07
阅读次数:
226
Unique Paths IIFollow up for "Unique Paths":Now consider if some obstacles are added to the grids. How many unique paths would there be?An obstacle an...
分类:
其他好文 时间:
2014-08-08 23:55:17
阅读次数:
263
题目: Implement atoi to convert a string to an integer.Hint: Carefully consider all possible input cases. If you want a challenge, please do not see be....
分类:
编程语言 时间:
2014-08-07 12:08:49
阅读次数:
260
本文出自svitter的blog
——怒草哈希表!
题意
Consider equations having the following form: a1x13+ a2x23+ a3x33+ a4x43+ a5x53=0 The coefficients are given integers from the interval [-50,50]. It is consider a sol...
分类:
其他好文 时间:
2014-08-07 09:46:59
阅读次数:
187
1、当做安卓移植的时候遇到如下问题:
Android NDK: jni/Android.mk: Cannot find module with tag 'CocosDenshion/android' in import path
Android NDK: Are you sure your NDK_MODULE_PATH variable is properly defined ?
Andr...
分类:
移动开发 时间:
2014-08-06 19:16:22
阅读次数:
214
在进行UI布局的时候,可能经常会用到android:gravity 和android:layout_Gravity 这两个属性。关于这两个属性的区别,网上已经有很多人进行了说明,这边再简单说一下。 (资料来自网络)LinearLayout有两个非常相似的属性:android:gravity与andr...
分类:
移动开发 时间:
2014-08-06 17:53:11
阅读次数:
268