Given a positive integer n, write a function that returns the number of set bits in it...
Given a positive integer n, write a function that returns the number of set bits in it...
aligned means: returned memory address starts with an address that are divisible by ali...
V0: basic init with given backing up buffer, reject to enqueue if full(no override), su...
Very basic one, not handling edge cases or optimization. in C sizeof(char) == 1 by defi...
Common problems: start and end are modified during partitioning, so after the loop:star...
Solve this problem incrementally, don't try to get to the optimal solution in one shot....
What I Wish Someone Had Told Me[https://blog.samaltman.com/what-i-wish-someone-had-told...
Step 3 Hash Table APIs In this implementations, hash table provides public APIs like ge...
Step 2: hash function XOR(Exclusive or) is a logical operator that works on bits. Let’s...
There's a very interesting github repo called "build-your-own-x": https://github.com/co...
相向双指针 专题一 Two Sum Two Sum III - Data structure designhttps://leetcode.com/problems/two-...
Week1/2 刷题 (7.9 - 7.23) 复杂度理论与双指针算法入门 必须熟练掌握的两个排序算法 二分法 三种双指针算法 相向双指针(判断回文串) 背向双指针(最长回文...
发送数据 发送数据时常用的有三个函数,分别是 write、send 和 sendmsg: 每个函数都是单独使用的,使用的场景略有不同: 第一个函数是常见的文件写函数,如果把 ...
套接字和地址 讲这幅图的真正用意在于引入 socket 的概念,请注意,以上所有的操作,都是通过 socket 来完成的。无论是客户端的 connect,还是服务端的 acc...
Factors affecting our sleep quality AdenosineSleepiness is driven by increase of adenos...
HTTP HTTP or HyperText Transfer Protocol is the protocol at the core of the web. Object...
The TCP/IP Model Transmission Control Protocol (TCP) and the Internet Protocol (IP) The...
进程间通信的各种模式 Pipe Message Queue Shared Memory 管道 还记得咱们最初学 Linux 命令的时候,有下面这样一行命令: ps -ef |...