It says if this is a string of length 0 or 1, I'm done. I'm going to return the answer true.
我就会返回答案为真,否则的话我得判断它。
Okay, so why was it after all that work -- why was it that 1 wasn't the winning answer?
为什么经过一系列的推理,1不是最终的答案呢
4 So even if the correct mathematical answer is 1.4 or whatever, when you divide an int by an int, you only have room in that variable, in the response for an actual integer.
所以即使那个正确的答案是4,或别的数值,当你用一个整型数除以一个整型数,在那个变量的返回值里,只有,存储一个整型数的空间。
Actually it's not 40, I think these are, 75 alright. So the answer is 75 and the number of calls is 1.7 million.
实际上不是4,我觉得,好了,所以答案是5,调用次数是1百70万次。
Okay, so 1 is a viable answer in some contacts that needs constant time, the same amount of time no matter what.
在需要常量时间的情况下,答案是1,不管怎样,总时间是,相同的。
00 Seems to think the answer is 1.00.
它觉得这个答案是。
I could have used if b is equal to 0, the answer is 1, that would have also worked.
如果b等于0的话,答案是1,这种情况也能解决。
Why wasn't 1 the winning answer?
为什么选1不能获胜啊
It says, if I am in the base case, if b is equal to 1, the answer is just a.
首先解决基本的,如果b等于1的话,那么答案就是a了。
would have been the winning answer had everyone assumed that the average would have been constantly compounded down to 1, but since a couple of people chose the, I mean not incorrect answers, but the higher averages, then it was pushed up to 13.
如果大家都认为,平均数会一直下降到1的话,1应该是最终的答案,但是由于一部分人选择了,并不是说是错误的,但是却高于平均值的数,就把平均数推高到了13
I had T of 1-- I have an answer now.
我得到了T--现在有答案了。
应用推荐