题目链接:题目:
We are playing the Guess Game. The game is as follows:I pick a number from 1 to n. You have to guess which number I picked.Every time you guess wrong, I’ll tell you whether the number I picke...
分类:
其他好文 时间:
2016-07-24 00:35:19
阅读次数:
425
原理minMax,最小化最大损失 从第i天到j天中,如果猜x的损失为x + Math.max(DP[i][x-1], DP[x+1][j]) 那么i~j天中最小的最大损失是Math.min(猜x的损失) ...
分类:
其他好文 时间:
2016-07-21 06:24:50
阅读次数:
163
传送门 375. Guess Number Higher or Lower II QuestionEditorial Solution My Submissions 375. Guess Number Higher or Lower II QuestionEditorial Solution My ...
分类:
其他好文 时间:
2016-07-20 13:09:11
阅读次数:
190
binary search. 开始偷懒了一下mid没有写成这样:mid = l + (r - l) / 2,于是卡了很久,简直报应= = ...
分类:
其他好文 时间:
2016-07-20 07:58:23
阅读次数:
181
DEPENDENCIES AND PREREQUISITES 依赖和先决条件
Android 1.6 or higher
YOU SHOULD ALSO READ
Application Resources 应用资源
Designing for Multiple Screens 设计多屏幕
Android devices come in many ...
We are playing the Guess Game. The game is as follows: I pick a number from 1 to n. You have to guess which number I picked. Every time you guess wron ...
分类:
其他好文 时间:
2016-07-17 11:30:40
阅读次数:
327
We are playing the Guess Game. The game is as follows:
I pick a number from 1 to n. You have to guess which number I picked.
Every time you guess wrong, I'll tell you whether the number is higher ...
分类:
其他好文 时间:
2016-07-15 11:11:50
阅读次数:
141
We are playing the Guess Game. The game is as follows: I pick a number from 1 to n. You have to guess which number I picked. Every time you guess wron ...
分类:
其他好文 时间:
2016-07-13 13:45:53
阅读次数:
113