×

Loading...

计算(1+2+3+...+98+99+100)-(a[0]+a[1]+a[2]+...+a[97]+a[98]+a[99])就可以算出来。前面一部分可以直接用常数。

forex (我认为)
(#240251@0)
2001-10-28 -04:00
This post has been archived. It cannot be replied.
Page address has been copied. To share, click to copy page address.
Share Online by QR Code

Back To Topic: 我也来道微软试题。一个数组长度99, 由1-100中的99个数字组成。请给出一个最快算法,用尽可能少的内存,算出不在数组中的数字。

Back To Forum: HOME枫下论坛枫下论坛主坛枫下拾英心情随笔