LeetCode - 720. Longest Word in Dictionary 字典树
题目 解析 第一种方法: 暴力。这方法没什么好说的。。 先将 words 构建成一个 HashSet 表,这样查询快; 然后对于每一个 word ,去到 HashSet 中查是…
Linux 线程创建时属性参数的设置 pthread_attr_t 及 join 功能的使用
线程的属性由结构体 pthread_attr_t 进行管理。 typedef struct{ int detachstate; 线程的分离状态 int schedpolicy; 线程调度策略 struct sched_para…
自定义 hook - useLocalStorage
function useLocalStorage(key, initialValue) { const [value, setValue] = useState(() => { const storedValue = localStorage.getItem(key); retu…
- 共 1 页
- 1