数二叉树节点的个数(精简版) 摘要:```c int countNodes(struct TreeNode* root){ if(root==NULL) return 0; return coun…… 文章列表 2021年10月17日 0 点赞 0 评论 213 浏览 评分:0.0
牛客竞赛题目——python 摘要:完全平方数 比赛主页 我的提交 时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 131072K,其他语言262144K 64bit IO Format: %ll…… 文章列表 2021年10月22日 0 点赞 0 评论 328 浏览 评分:0.0
字符串读取 摘要:#include<stdio.h>int main(){ char a[100]; int i=0,j=0,d=1; scanf("%c",&a[i]); i=1; while(d){ sca…… 文章列表 2021年10月23日 0 点赞 0 评论 196 浏览 评分:0.0
Sn公式求和;;;;; 摘要:#include<stdio.h>int main(){ int a=2,n=0,i=0,j=0,s=0,m=1; scanf("%d",&n); for(i=0;i<n;i++){ f…… 文章列表 2021年10月23日 0 点赞 0 评论 282 浏览 评分:0.0
阶乘求和!!!!! 摘要:#include<stdio.h>int main(){ int n=0,i=0,j=0,s=0,m=1; scanf("%d",&n); if(n<=20){ for(i=0;i<n;…… 文章列表 2021年10月23日 0 点赞 0 评论 461 浏览 评分:0.0
python实现二叉树的操作 摘要:```python from collections import deque class Stack(object): def __init__(self): sel…… 文章列表 2021年10月23日 0 点赞 0 评论 366 浏览 评分:0.0
udp服务器编程系列0 摘要:udp 是一个面向无连接的,不安全的,报式传输层协议,udp 的通信过程默认也是阻塞的。 1、UDP通信不需要建立连接 ,因此不需要进行 connect () 操作 2、UDP通信过程中,每次…… 文章列表 2021年10月26日 0 点赞 0 评论 266 浏览 评分:0.0
有疑惑的题目 摘要:#### 待解决的问题 ###### 问题001 - 问题: 我们输入数字时都是用: `scanf("%d", &num);` 但是我们输入的不一定就是数字, 比如这里输入了一个字符‘a’, …… 文章列表 2021年10月27日 0 点赞 0 评论 325 浏览 评分:0.0
udp服务器并发编程1 摘要:测试代码: #define _DEFAULT_SOURCE #include<arpa/inet.h> #include<unistd.h> #include<stdbool.h> #inc…… 文章列表 2021年10月27日 0 点赞 0 评论 161 浏览 评分:0.0
TCP网络编程之多进程并发 摘要:公共头文件:#pragma once #include<stdio.h> #include<stdint.h> #include<string.h> #include<unistd.h> #…… 文章列表 2021年10月29日 0 点赞 0 评论 254 浏览 评分:0.0