1 2 3 4 5 ··· 7 下一页
摘要: 就是求 区间覆盖的问题。 【x, y】 按x排序, 对y,二分找刚好大于它的x。 阅读全文
posted @ 2018-05-11 23:47 brayden 阅读(134) 评论(0) 推荐(0) 编辑
摘要: int[] A 求 X, Y 使得 A[X] - A[Y] + (X - Y) 最大 time O(N), space O(N) 阅读全文
posted @ 2018-05-11 23:35 brayden 阅读(101) 评论(0) 推荐(0) 编辑
摘要: int[] A 求 X, Y 使得 A[X] - A[Y] + (X - Y) 最大 time O(N), space O(N) 阅读全文
posted @ 2018-05-11 23:34 brayden 阅读(104) 评论(0) 推荐(0) 编辑
摘要: https://stackoverflow.com/questions/39881068/frog-jumps-across-a-river-with-stones Note that the earliest time you can reach x = i can be expressed by 阅读全文
posted @ 2018-05-08 21:01 brayden 阅读(333) 评论(0) 推荐(0) 编辑
摘要: API 和网页 按不同的url处理 用go-curl调用底层service json.Marshal/Unmarshal 把json字符串转 go struct https://gobyexample.com/json http.Template 来写 web页面 https://golang.go 阅读全文
posted @ 2018-02-07 16:44 brayden 阅读(235) 评论(0) 推荐(0) 编辑
摘要: Explicit Redistribute Motion The Explicit Redistribute iterator moves tuples to segments explicitly specified in the segment ID column of the tuples. 阅读全文
posted @ 2018-01-26 18:11 brayden 阅读(900) 评论(0) 推荐(0) 编辑
摘要: android 环境,因为国内被墙, 搭起来非常费劲。怀念外企的时光啊 1. 下载最新的android studio3, sdk, gradle http://android-studio.org/ 2. Android SDK 在线更新镜像服务器资源 http://ask.android-stud 阅读全文
posted @ 2018-01-15 10:30 brayden 阅读(761) 评论(0) 推荐(0) 编辑
摘要: ElasticHashinator.java, 阅读全文
posted @ 2017-08-24 17:36 brayden 阅读(194) 评论(0) 推荐(0) 编辑
摘要: gremlin-server中 实现session需要两点保证: session 绑定了 变量列表; 每一个session必须 在同一台 server进程的同一个 线程中运行。 这是又tinkpop graph transaction的threadlocal 机制要求的。 1. SessionOpP 阅读全文
posted @ 2017-02-04 11:22 brayden 阅读(3042) 评论(0) 推荐(0) 编辑
摘要: postgres 同理的code: backend/cdb/cdblogsync.c, createZeroFilledNewFile() 看代码随手记:log_put.c, __log_write() 我的理解:在flush log时使用fdatasync, 若log文件长度发生变化, 则仍需要写 阅读全文
posted @ 2017-01-05 23:41 brayden 阅读(214) 评论(0) 推荐(0) 编辑
1 2 3 4 5 ··· 7 下一页