码迷,mamicode.com
首页 >  
搜索关键字:struct stat    ( 35365个结果)
Bash的特性
Bash的特性 1. tab补全 #命令补全 [root@clf ~]# user #命令补全useradd userdel usermod usernetctl users [root@clf ~]# s Display all 195 possibilities? (y or n) #以s开头的 ...
分类:其他好文   时间:2020-07-07 15:26:59    阅读次数:66
运算符重载
public struct Complex { public double real; public double imaginary; public Complex(double real, double imaginary) { this.real = real; this.imaginary ...
分类:其他好文   时间:2020-07-07 13:25:18    阅读次数:57
【Java】使用记事本和 JDK 编译、运行 Java 程序
1.显示文件拓展名 2.新建记事本,编写以下程序 import java.io.*; public class HelloWorld{ public static void main(String[] args){ System.out.println("Hello Java!"); } } 3.保 ...
分类:编程语言   时间:2020-07-07 12:59:50    阅读次数:62
BUU刷
#Reverse ##内涵 0707 直接拖进IDA看到疑似flag,按A可以转中文 A ASCII解析成ASCII ##[BJDCTF 2nd]guessgame 拖进IDA 发现flag ##xor 拖进IDA int __cdecl main(int argc, const char **ar ...
分类:其他好文   时间:2020-07-07 11:39:50    阅读次数:87
路径总和--leetcode112
方法1:递归 /** * Definition for a binary tree node. * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * }; */ bool hasPath ...
分类:其他好文   时间:2020-07-07 10:22:49    阅读次数:60
leetcode104 二叉树的最大深度(Easy)
题目来源:leetcode104 二叉树的最大深度 题目描述: 给定一个二叉树,找出其最大深度。 二叉树的深度为根节点到最远叶子节点的最长路径上的节点数。 说明: 叶子节点是指没有子节点的节点。 示例: 给定二叉树 [3,9,20,null,null,15,7] 返回它的最大深度 3 。 解题思路: ...
分类:其他好文   时间:2020-07-07 10:18:52    阅读次数:80
04_数组
1 /** 2 * 冒泡排序 3 * @author jliu.l 4 * @2020年7月6日 5 * 6 */ 7 public class Demo01 { 8 9 /** 10 * @param args 11 */ 12 public static void main(String[] a ...
分类:编程语言   时间:2020-07-07 10:16:26    阅读次数:56
leetcode226 翻转二叉树(Easy)
题目来源:leetcode226 翻转二叉树 题目描述: 翻转一棵二叉树。 解题思路 递归 /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *ri ...
分类:其他好文   时间:2020-07-07 10:00:25    阅读次数:51
链表:用C/C++实现单链表的增删改查
最近复习了线性表,对链表这一部分遗忘最大,所以手动实现一下加深理解,附上C++代码: #include <iostream> using namespace std; typedef struct LNode //定义一个结构体作为链表结构,有指针域和数据 { int data; struct LN ...
分类:编程语言   时间:2020-07-07 09:54:52    阅读次数:88
Token bucket
Token bucket 令牌桶限流机制: 在长连接时,当一个http请求来临,我们需要进行GetConn,放入一个令牌进桶中,当我们的连接释放,于是可以释放连接。 我们控制桶的大小即可控制http的流量。 令牌桶算法,最近在学Golang,而对于HTTP的限流,Golang的令牌桶实现更为简洁,G ...
分类:其他好文   时间:2020-07-07 09:41:39    阅读次数:84
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!