设计一个图形类,来对应一个图形!这个类大概的代码是:public class ShapeModel extends ... { [bindable] private var _x:Number = 0; [bindable] private var _y:Number = 0...
分类:
其他好文 时间:
2014-07-09 22:40:29
阅读次数:
207
1. [代码]方法代码 function cp(source, target) { function isBaseType(v) { var type = typeof v; var basetype = { "string": true, "number": t...
分类:
编程语言 时间:
2014-07-09 20:43:56
阅读次数:
330
今天在review项目代码的时候看到这样一个问题,有一张号码表,每次需要从这样表中随机取6个空闲的号码,也就是每次取出来的6个号码应该都会有所不同。然后我就看到了这样的SQL select t.* from tel_number_tbl t where t.status = '空闲' and t.a...
分类:
数据库 时间:
2014-07-09 00:30:21
阅读次数:
220
题目
Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent
a number.
An example is the root-to-leaf path 1->2->3 which represents the number 123.
Find ...
分类:
其他好文 时间:
2014-07-08 21:43:08
阅读次数:
219
#include
using namespace std;
int partition(int *a,int p,int r)
{
int x=a[r];
int i=p-1;//note i important which is used for
//storage the number smaller than flag x=a[r]
for (int j=p;j<r;j++...
分类:
其他好文 时间:
2014-07-08 21:06:59
阅读次数:
232
Minimum Inversion Number
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 9864 Accepted Submission(s): 6069
Problem Description
T...
分类:
其他好文 时间:
2014-07-08 19:15:43
阅读次数:
232
Visual Studio 2013 与 14
如果
Install Visual Studio on the same computer as Visual Studio in 2013 "14" when CTP 14.0.21730.1 DP, a number of known issues.
While we expect that the Visual Stu...
分类:
其他好文 时间:
2014-07-08 16:09:04
阅读次数:
196
Method 4: Gets the value of element number i
For example, if list is {22, 33, 44, 55, 66, 77, 88, 99}, then get(list, 2) will return 44.
Solution 1:
static int get(Node list, int i) {
if (i < 0) ...
分类:
其他好文 时间:
2014-07-08 14:07:52
阅读次数:
262
http://acm.hdu.edu.cn/showproblem.php?pid=3652
大致题意:"B-number"即一个整数含有子串"13"且被13整除。求1-n之间这样的数的个数。
思路:有两个限制条件:含有子串“13”和能被13整除。那么设dp[site][mod][flag],表示到第site位对13取余为mod且标记为flag的数的个数。flag表示是否含有子...
分类:
其他好文 时间:
2014-07-08 13:43:12
阅读次数:
173
Given n points on a 2D plane, find the maximum number of points that lie on the same straight line.
分类:
其他好文 时间:
2014-07-08 00:41:49
阅读次数:
235