全排列可以用深搜的方式求解。解答树如下:
可以运行的代码:
import java.util.ArrayList;
import java.util.List;
public class Perm {
public static Integer[] data = {19, 37, 61, 79, 89};
public static int depth;
public...
分类:
其他好文 时间:
2014-05-09 21:09:51
阅读次数:
293
作为一名程序员,你的代码量有多少,有空可以测测的。public class ItemCount
{ private static int lineCount;//表示代码行数 private static int fileCount;//表示文件个数
private static ...
分类:
其他好文 时间:
2014-05-09 20:28:02
阅读次数:
365
class Student { private string _name; public int
Age = 0; public static void Test() { Student stu = new ...
分类:
其他好文 时间:
2014-05-09 20:27:01
阅读次数:
305
/** 输入参数* _Request: Page.Request 对象* _Response:
Page.Response 对象* _fileName: 下载文件名* _fullPath: 带文件名下载路径* _speed 每秒允许下载的字节数*
返回是否成功*/public static bool...
分类:
Web程序 时间:
2014-05-09 20:25:04
阅读次数:
537
下面是第一篇的连接Android的ViewGroup中事件的传递机制(一)关于onInterceptTouchEvent和onTouchEvent的详细解释。
1 public class MainActivity extends Activity { 2 Group1 group1; 3 ...
分类:
移动开发 时间:
2014-05-09 20:21:43
阅读次数:
379
using UnityEngine;using System.Collections;public
class MoveSample : MonoBehaviour{ void Start(){ //iTween.MoveBy(gameObject,
iTween.Hash("x", 2, "e.....
分类:
其他好文 时间:
2014-05-09 20:11:02
阅读次数:
455
//定义一个委托 public delegate int DoSomething(int
count); //BeginInvoke 的回调函数 private static void Execute(IAsyncResult async) ...
分类:
Web程序 时间:
2014-05-09 19:51:27
阅读次数:
422
/** * Created by rabbit on 2014-5-9. */ class
ArrayTest2 { public static void SelectSort(int [] arr) //定义选择排序的方法 { for (int
x=0;x<arr.length;x++) { .....
分类:
编程语言 时间:
2014-05-09 19:49:37
阅读次数:
236
Android写动画效果不是一般的麻烦,网上找了好久,终于解决了动画的问题,总结记录以共勉。仅以水平方向移动效果做说明,垂直方向类似。public
void slideview(final float p1, final float p2) { TranslateAnimation anima...
分类:
移动开发 时间:
2014-05-09 19:48:01
阅读次数:
305
using System;using System.IO;using
System.Security.Cryptography;using System.Text;namespace Test{ public class
MD5Code { /// /// ...
分类:
其他好文 时间:
2014-05-09 19:43:27
阅读次数:
277