V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
V2EX  ›  lu5je0  ›  全部回复第 4 页 / 共 6 页
回复总数  116
1  2  3  4  5  6  
2021 年 5 月 7 日
回复了 aviator 创建的主题 云计算 [求助] 腾讯轻量云内存占用高。。
可以看下 Huge Pages 的占用
可以参考游戏更新
所以为什么要加班呢
2021 年 3 月 30 日
回复了 bthulu 创建的主题 MySQL 西数蓝盘批量写入, 主键 uuid, 无限掉速
innodb 页分裂
steam 有现成的 api 。多看看文档
2021 年 3 月 4 日
回复了 0x47 创建的主题 程序员 面试应该怎么出编程题?
打工人何苦为难打工人,写个 kmp 吧
2021 年 2 月 22 日
回复了 Ficelle 创建的主题 Java 多模块单应用项目改造 dubbo 遇到的问题求助
dubbo filter
2021 年 2 月 2 日
回复了 afirefish 创建的主题 程序员 请教将服务器控制面板映射到公网是否安全?
需要操作的时候,用 ssh 转发端口吧,比较方便
2021 年 1 月 31 日
回复了 suueyoung 创建的主题 Go 编程语言 怎么用 golang 搞一个 [多维的笛卡尔积] 呀?
```java
class Demo {

public static void main(String[] args) {
new Demo().func();
}

public void func() {
List<List<Integer>> res = new ArrayList<>();
List<List<Integer>> sourceList = new ArrayList<>();
sourceList.add(Arrays.asList(0, 1, 2));
sourceList.add(Arrays.asList(0, 1));
sourceList.add(Arrays.asList(0, 1, 2, 3, 4));
dfs(sourceList, res, new ArrayList<>(), 0);
System.out.println(res);
}

public void dfs(List<List<Integer>> sourceList, List<List<Integer>> res, List<Integer> curList, int index) {
if (index == sourceList.size()) {
res.add(new ArrayList<>(curList));
} else {
List<Integer> source = sourceList.get(index);
for (Integer i : source) {
curList.add(i);
dfs(sourceList, res, curList, index + 1);
curList.remove(curList.size() - 1);
}

}
}

}
```
2021 年 1 月 13 日
回复了 c2000a 创建的主题 Apple 求远程连接在家 mac 命令行的方法
frp
2021 年 1 月 8 日
回复了 hahaFck 创建的主题 Apple 你们用的 idea 有这个问题么?
mac 版同样有这个问题
2020 年 11 月 30 日
回复了 psw84 创建的主题 推广 NUC 黑果套餐 继续开车 有福利!
分子分子
2020 年 11 月 18 日
回复了 Sain 创建的主题 Apple 新款 M1 mac 外接 4k 显示器性能和散热如何?
同问,能否支持 4k120
@ArJun 然而功耗比也是 amd 比较强
2020 年 10 月 29 日
回复了 liceal 创建的主题 程序员 为了赶项目连续加班一个月正常吗?
包身工?
2020 年 10 月 27 日
回复了 gdw1986 创建的主题 Python 估计面试没通过,唉
public static List<List<Integer>> cal(int[] arr, int target) {
List<List<Integer>> results = new ArrayList<>();
func(results, new ArrayList<>(), arr, target, 0);
return results;
}

public static void func(List<List<Integer>> results, List<Integer> curList, int[] arr, int target, int start) {
int num = curList.stream().mapToInt(value -> value).sum();
if (num > target) {
return;
}

if (num == target) {
results.add(new ArrayList<>(curList));
} else {
for (int i = start; i < arr.length; i++) {
curList.add(arr[i]);
func(results, curList, arr, target, i);
curList.remove(curList.size() - 1);
}
}
}
回溯法吧
2020 年 8 月 5 日
回复了 Vimax 创建的主题 Java 升级到 IDEA 2020.2 后经常没提示及报错修复后不会消失
退回 2020.1.4 吧
一直在用
此堆非彼堆
1  2  3  4  5  6  
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3040 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 35ms · UTC 02:09 · PVG 10:09 · LAX 19:09 · JFK 22:09
♥ Do have faith in what you're doing.