hehe12980

hehe12980

V2EX member #516031, joined on 2020-11-05 09:59:46 +08:00
hehe12980's recent replies
May 8, 2021
Replied to a topic by 23571113 程序员 暑期实习怎么选
阿里 华为差不多 无法阿里在互联网行业要强过华为,但是你这也就是数据库深挖而已,阿里华为都行,建议去华为
貌似被降权了 还是咋回事 发的帖子自己跑第二页去了
Mar 26, 2021
Replied to a topic by lbllol365 职场话题 唉。八股文还是得好好背啊,被血虐
问了哪些八股文?
Mar 26, 2021
Replied to a topic by Martin9 职场话题 找工作找到心态炸裂
有啥问题被问懵了的 说出来 大家帮你分析分析 还有你三年期望薪资是多少
Mar 25, 2021
Replied to a topic by Jackwang0127 程序员 八种排序算法有哪几种呀?
@mitu9527 基数排序
@hantsy 做过
@dbpe mq 和 redis 都能做,mq 比较主流
@hantsy 不用 JTA 很正常,大型分布式系统应该不会考虑使用二阶段三阶段提交这种产物,太影响并发,基本都是做补偿机制,写了 5 年程序的人为啥要用 JTA,没有必然关系把
Mar 23, 2021
Replied to a topic by going Python Python 高性能小算法
@hehe12980

上面好像写的不太对

def arr = [1, 2, 3, 4, 5, 7, 8, 9, 10]
if (arr.size() < 3) {
return
}
int min = arr[0] + arr[1] + arr[2]
int max = arr[0] + arr[1] + arr[2]
int prefix = 0
for (int i = 3; i < arr.size(); i++) {
int sum = arr[i] + max - arr[prefix++]
max = Math.max(max, sum)
min = Math.min(min, sum)
}
println(min)
println(max)
Mar 23, 2021
Replied to a topic by going Python Python 高性能小算法
随便给你写了一个
def arr = [1, 2, 3, 4, 5, 7, 8, 9, 10]
if (arr.size() < 3) {
return
}
int min = arr[0] + arr[1] + arr[2]
int max = arr[0] + arr[1] + arr[2]
int prefix = 0
for (int i = 3; i < arr.size(); i++) {
int sum = arr[i] + max - arr[prefix++]
max = Math.max(max, sum)
min = Math.min(max, min)
}
println(min)
println(max)
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3091 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 19ms · UTC 12:09 · PVG 20:09 · LAX 05:09 · JFK 08:09
♥ Do have faith in what you're doing.