<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>二维数组</title>
<script type="text/javascript">
var mycha = new Array();
for(var i=0;i<3;i++){
mycha[i] = new Array();
for(var j=0; j<6;j++){
mycha[i][j] = (i+1) * (j+1);
}
}
document.write(mycha + "<br>");
for(var i=0;i<mycha.length;i++){
for(var j=0;j<mycha[i].length;j++){
document.write(mycha[i][j] + " ");
}
document.write("<br>");
}
</script>
</head>
<body>
</body>
</html>
时间复杂度仍然为O(n²),这样效率没有提高很多呀?