第一章

提交中缺一个timestamp的值,补上即可。

document.getElementsByName('timestamp')[0].value = new Date().getTime();

之后输入用户名邮箱即可进入。

第二章

左边的考察border-radius的椭圆写法

border-radius: 20px / 30px;

右边的考察三角形的CSS画法。四个边框的某一个边染色即可。
旋转中心其实是右上角。

border-color: transparent black;
-webkit-transform: rotate(-60deg);
-webkit-transform-origin: right top;

第三章

因为敌人AI开源,所以最简单的办法就是把敌人的AI复制一份到我方AI,多打几次就赢了。。

第四章

Array.prototype.slice是很好用的类数组拷贝函数。

Q1. Array.prototype.slice.call(arr);

Q2. s.trim(); 前提是你的浏览器足够新,否则请用正则表达式。

Q3. Array.prototype.slice.call(list);

第五章

一个粗糙的DFS:

function work(index, list) {
  var children = document.getElementById('box').children;
	if (list.length == children.length) {
		if (!('result' in window) || list.reduce(function (a, b) { return a + b; }) > window.result.reduce(function (a, b) { return a + b; })) {
			window.result = list;
		}
	} else {
		work(index, list.concat(+children[list.length].children[index].textContent));
		work(index + 1, list.concat(+children[list.length].children[index].textContent));
	}
}
work(0, []);
console.log(result);

未完待续...