12 2020 档案
摘要:1694. Reformat Phone Number 通过对字符串长度对3取模进行分析。 public String reformatNumber(String number) { number = number.replaceAll("-", ""); number = number.repla
阅读全文
摘要:BIO 文件 IO 方面 操作系统分为用户空间和内核空间,应用程序一般不能直接操作系统资源,需要通过操作系统开放的接口才能使用系统资源,例如网络,磁盘等等。 Linux 系统写数据的步骤流程如下图: 从上往下分析张图片,用户数据通过 stdio lib 的 printf(), fputc() 等将数
阅读全文
摘要:最近花了几天时间,将链表题除带锁外的题目做完了,下面对链表题部分题目进行总结和分析。 链表题目解决方法 1、链表反转 2、快慢指针 链表反转模板 ListNode cur = head.next; head.next = null; while (cur != null) { ListNode ne
阅读全文