jendon

jendon

V2EX member #321471, joined on 2018-06-08 22:59:46 +08:00
Per jendon's settings, the topics list is hidden
Deals info, including closed deals, is not hidden
jendon's recent replies
Aug 31, 2020
Replied to a topic by jrotty PHP PHP 关于随机打乱部分数组顺序
只是回答如何打乱数组这步
Aug 31, 2020
Replied to a topic by jrotty PHP PHP 关于随机打乱部分数组顺序
LeetCode 第 384 题-打乱数组。Fisher-Yates 洗牌算法
依次将数组中的每个元素,与其到末尾[i, n-1]范围内的随机个元素交换,这样已交换过的元素不会再被交换;
for (int i = 0; i < n; ++i) {
swap(cur[i], cur[i + rand() % (n - i)]);
}
时间复杂度 O(n)
Jul 13, 2020
Replied to a topic by lwp2070809 程序员 2020.07.13 15:00 Github 部分服务降级
三点前还能访问,现在一直 500 了
Jun 28, 2020
Replied to a topic by arobota 程序员 leetcode 国服挂啦
恢复了
Jun 28, 2020
Replied to a topic by arobota 程序员 leetcode 国服挂啦
我估计周赛第一题太多人建 20000x20000 的矩阵了,leetcode 给自己整了个内存压力测试
图像分隔,人体分隔,搜 bodypix 即可
Apr 21, 2020
Replied to a topic by kop1989 问与答 27 寸 4k 显示器到底怎么选?
PHL272P7 路过,出厂校色, 原生 10bit, 没有 HDR, 感觉还行
Jan 17, 2020
Replied to a topic by a87586179 生活 多少人是 24 号才放假的=。=
大家有年假吗?《职工带薪年休假条例》第三条规定,职工累计工作已满 1 年不满 10 年的,年休假 5 天;已满 10 年不满 20 年的,年休假 10 天;已满 20 年的,年休假 15 天。
前包装工程路过……这种应该算泡罩包装,和药片的包装类似,背面铝箔换成了纸。推测是考虑到悬挂在超市时,被顾客翻动较多,为了防止不小心打开所以设计成这样……?
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2533 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 18ms · UTC 09:13 · PVG 17:13 · LAX 02:13 · JFK 05:13
♥ Do have faith in what you're doing.