haisayu's recent timeline updates
haisayu

haisayu

V2EX member #195770, joined on 2016-10-12 11:18:13 +08:00
haisayu's recent replies
Apr 18, 2022
Replied to a topic by 3dwelcome 算法 链表快还是数组快?
conclusion
to conclude, we can get some facts about each data structure:

- std::vector is insanely faster than std::list to find an element
- std::vector always performs faster than std::list with very small data
- std::vector is always faster to push elements at the back than std::list
- std::list handles large elements very well, especially for sorting or inserting in the front
these are the simple conclusions on usage of each data structure:

- for number crunching : use std::vector
- for linear search : use std::vector
- for random insert/remove : use std::list (if data size very small (< 64b on my computer), use std::vector)
- for big data size : use std::list (not if intended for searching)

你给的链接说的挺清楚了。不同场景不一样。
Nov 4, 2019
Replied to a topic by yang59324 问与答 如果手机只能安装 2 个应用
就不能再买个手机吗?!
我上次也是搞了半天,airdrop 太多张会失败,我试了 200 张这种可以成功,7,8 次就传完了。
或者先复制到 Windows 里,iPhone 插上就可以看到图库的文件夹,拖进入就行了
想做智能家居,另外是想监控两只仓鼠的动态。。。[email protected]
缘分啊
支付宝里有自带的记账本,可以了解一下,自动记账,也可以手动记账
Aug 3, 2017
Replied to a topic by ToMistry 杭州 联通是不是不想好了
联通小宝卡,话费小于 10 元不能主动呼叫,就是不能打电话出去。。。10 元不是我的钱
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3530 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 15ms · UTC 05:07 · PVG 13:07 · LAX 22:07 · JFK 01:07
♥ Do have faith in what you're doing.