归档
时光荏苒,文字留痕
共 426 篇文章
leetcode1334. 阈值距离内邻居最少的城市
暂无摘要...
leetcode210. 课程表 II
暂无摘要...
leetcode1011. 在 D 天内送达包裹的能力
class Solution {public: int shipWithinDays(vector<int>& weights, int days) { int l=*max_element(weights.begin(),weights.end());
leetcode994. 腐烂的橘子
暂无摘要...
leetcode787. K 站中转内最便宜的航班
暂无摘要...
leetcode743. 网络延迟时间
class Solution {public: int networkDelayTime(vector<vector<int>>& times, int n, int k) { int inf=INT_MAX/2; vector<
leetcode695. 岛屿的最大面积
暂无摘要...
leetcode687. 最长同值路径
暂无摘要...
多线程开发
1.进程创建/* 一般情况下,main函数所在的线程我们称之为主线程(main线程),其余创建的线程 称之为子线程。 程序中默认只有一个进程,fork()函数调用,2进行 程序中默认只有一个线程,pthread_create()函数调用,2个线程。 #include &
进程间通信
进程间通信1. 无名管道/* #include <unistd.h> int pipe(int pipefd[2]); 功能:创建一个匿名管道,用来进程间通信。 参数:int pipefd[2] 这个数组是一个传出参数。 pi