摘要:
1. 以引用或指针形式传入: cpp void foo(std::vector<int> &vec); // 以引用形式传入 void bar(std::vector<int> *ptr); // 以指针形式传入 这种方式不会复制vec,函数内操作的是vec本身。可以改变vec。例如: cpp st 阅读全文
posted @ 2023-05-21 10:36
Yohoc
阅读(1174)
评论(0)
推荐(0)
摘要:
题目: Given a non-empty tree with root R, and with weight Wiassigned to each tree node Ti. The weight of a path from R to L is defined to be the sum o 阅读全文
posted @ 2023-05-21 10:35
Yohoc
阅读(45)
评论(0)
推荐(0)

浙公网安备 33010602011771号