Serenity

热爱可抵岁月漫长

一个热爱技术、喜欢折腾的开发者。 专注于前端开发,偶尔写写后端。 记录生活,分享技术,探索未知。

点击任意处进入哦~
加载中
输入关键词开始搜索
IO多路复用

IO多路复用

1.select#include <stdio.h>#include <arpa/inet.h>#include <stdlib.h>#include <unistd.h>#include <string.h>int main() {

c++专栏
linux
3月 Serenity
网络编程

网络编程

1.字节序/* 字节序:字节在内存中存储的顺序。 小端字节序:数据的高位字节存储在内存的高位地址,低位字节存储在内存的低位地址 大端字节序:数据的低位字节存储在内存的高位地址,高位字节存储在内存的低位地址*/// 通过代码检测当前主机的字节序#include <stdio

c++专栏
linux
3月 Serenity
leetcode167. 两数之和 II - 输入有序数组

leetcode167. 两数之和 II - 输入有序数组

class Solution {public: vector<int> twoSum(vector<int>& numbers, int target) { int i=0,j=numbers.size()-1; while(i&lt

leetcode
双指针 中等
3月 Serenity
leetcode166. 分数到小数

leetcode166. 分数到小数

暂无摘要...

leetcode
字符串 中等
3月 Serenity
leetcode165. 比较版本号

leetcode165. 比较版本号

暂无摘要...

leetcode
字符串 中等
3月 Serenity
leetcode162. 寻找峰值

leetcode162. 寻找峰值

暂无摘要...

leetcode
二分 中等
3月 Serenity
leetcode154. 寻找旋转排序数组中的最小值 II

leetcode154. 寻找旋转排序数组中的最小值 II

暂无摘要...

leetcode
二分 困难
3月 Serenity
leetcode153. 寻找旋转排序数组中的最小值

leetcode153. 寻找旋转排序数组中的最小值

暂无摘要...

leetcode
二分 中等
3月 Serenity
leetcode151. 颠倒字符串中的单词

leetcode151. 颠倒字符串中的单词

暂无摘要...

leetcode
字符串 中等
3月 Serenity
leetcode150. 逆波兰表达式求值

leetcode150. 逆波兰表达式求值

暂无摘要...

acwing
中等
3月 Serenity