当前位置: 编程技术>java/j2ee
java使用回溯法求解数独示例
来源: 互联网 发布时间:2014-10-31
本文导语: 代码如下:import java.util.Calendar;import java.util.Date; public class Matrix { private int matrix[][]; private long timeAfter=0; private long timeBefore =0; public Matrix(int m[][]) { matrix = new int[9][9]; for (int i=0; i
代码如下:
import java.util.Calendar;
import java.util.Date;
public class Matrix {
private int matrix[][];
private long timeAfter=0;
private long timeBefore =0;
public Matrix(int m[][]) {
matrix = new int[9][9];
for (int i=0; i