二叉树
xiaobai11as
我想知道答案,就必须一步步向前。
展开
-
训练2 8题
题目:A有1数m,B来猜.B每猜一次,A就说"太大","太小"或"对了" 。 问B猜n次可以猜到的最大数。 思路:用到二叉树!假设 n 为 3. 那么是这样的。第一次猜 4 结果有两种 , 太大 ,太小如果太大的话 下一次可以猜 2如果太小的话 下一次可以猜 6原创 2016-04-20 11:45:05 · 257 阅读 · 0 评论 -
训练2 习题2
题目:Now, here is a fuction: F(x) = 6 * x^7+8*x^6+7*x^3+5*x^2-y*x (0 <= x <=100)Can you find the minimum value when x is between 0 and 100.思路:求导 又有实际意义知极值为0 是解 用二分法求x 然后求F(原创 2016-04-23 23:06:09 · 285 阅读 · 0 评论 -
训练2 4题
Problem DescriptionThe recreation center of WHU ACM Team has indoor billiards, Ping Pang, chess and bridge, toxophily, deluxe ballrooms KTV rooms, fishing, climbing, and so on.We all like toxophil原创 2016-04-24 19:04:14 · 318 阅读 · 0 评论