11 2020 档案

摘要:5000次添加: Hashtable:90 ms 双数组:280 ms 2017+自带字典:64 ms 10万次添加: Hashtable:750 ms 双数组:66103 ms 2017+自带字典:4910 ms 阅读全文
posted @ 2020-11-23 01:04 trykle
摘要:注意,mxs的下标是从1开始,1to10,就表示1to10,而不是1to9 二分查找 --列表必须有序 fn bin_stream arr target = ( left = 1 right = arr.count while left < right - 1 do --可被查找,候选区有值 ( m 阅读全文
posted @ 2020-11-14 10:41 trykle
摘要:根据文档如何变得更好的说法,return exit 之类的使用 c++的异常来实现的,很粗暴。 fn test1 v = (if v == true do return 1; 0) fn test2 v = (if v == true do return 1) fn test3 v = (if v 阅读全文
posted @ 2020-11-06 11:02 trykle
摘要:实测 a = 100017.911 100018.0 b = 100017.815 100018.0 a 100018.0 b 100018.0 a == b false a as string == b as string true 阅读全文
posted @ 2020-11-05 22:39 trykle