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) 復雜度理論與雙指針算法入門 必須熟練掌握的兩個排序算法 二分法 三種雙指針算法 相向雙指針(判斷回文串) 背向雙指針(最長回文...
發(fā)送數(shù)據(jù) 發(fā)送數(shù)據(jù)時常用的有三個函數(shù),分別是 write、send 和 sendmsg: 每個函數(shù)都是單獨使用的,使用的場景略有不同: 第一個函數(shù)是常見的文件寫函數(shù),如果把 ...
套接字和地址 講這幅圖的真正用意在于引入 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 |...