fhl's recent timeline updates
fhl

fhl

V2EX member #557805, joined on 2021-10-08 05:42:15 +08:00
fhl's recent replies
Oct 8, 2021
Replied to a topic by KomiSans 程序员 之前面试时遇到的一个有些奇怪的问题
@fhl 果然需要换成算法解,换成 100000 纯计算就没边了
Oct 8, 2021
Replied to a topic by KomiSans 程序员 之前面试时遇到的一个有些奇怪的问题
let sum = 0;
let num = 0;

while(sum <= 10000) {
num++;
sum += 1000 / num;
}

console.log(num);
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5366 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 17ms · UTC 03:51 · PVG 11:51 · LAX 20:51 · JFK 23:51
♥ Do have faith in what you're doing.