摘要: 如果是选择一个自增主键, 那么插入数据会逐渐填充页面 如果是一个随机主键, 那么在一个页面上的主键值是不连续的 此时插入一个主键为2的记录, 数据根据主键在逻辑上要有序存储, 那么就要做页分裂 总结 1.自增主键只在顺序填充满当前页才会分裂, 而随机主键的插入, 更新操作会随机造成页分裂, 页分裂会 阅读全文
posted @ 2022-05-10 12:31 Poceer 阅读(642) 评论(0) 推荐(0) 编辑
摘要: TWO POINTER 快指针速度2 , 慢指针速度1 相对速度1,有环必然相遇 阅读全文
posted @ 2019-05-31 11:58 Poceer 阅读(106) 评论(0) 推荐(0) 编辑
摘要: [LeetCode] 5. Longest Substring Without Repeating Characters Given a string s, find the longest palindromic substring in s. You may assume that the ma 阅读全文
posted @ 2019-05-29 16:09 Poceer 阅读(89) 评论(0) 推荐(0) 编辑
摘要: [LeetCode] 3. Longest Substring Without Repeating Characters Given a string, find the length of the longest substring without repeating characters. Ex 阅读全文
posted @ 2019-05-28 19:13 Poceer 阅读(108) 评论(0) 推荐(0) 编辑
摘要: [LeetCode] 2. Add Two Numbers You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order 阅读全文
posted @ 2019-05-27 22:43 Poceer 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 2019年5月25日 开始了我的刷题之路,此笔记记录刷题流程 [LeetCode] 1. Two Sum 两数之和 Given an array of integers, return indices of the two numbers such that they add up to a spe 阅读全文
posted @ 2019-05-25 16:16 Poceer 阅读(84) 评论(0) 推荐(0) 编辑
摘要: 1 Two Sum Easy 2 Add Two Numbers Medium 3 Longest Substring Without Repeating Characters Medium 5 Longest Palindromic Substring Medium 141 Linked List 阅读全文
posted @ 2019-05-25 15:43 Poceer 阅读(127) 评论(0) 推荐(0) 编辑