上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 43 下一页

2020年9月16日

Golang调度器GMP原理与调度全分析(转 侵 删)

摘要: 该文章主要详细具体的介绍Goroutine调度器过程及原理,包括如下几个章节。 第一章 Golang调度器的由来 第二章 Goroutine调度器的GMP模型及设计思想 第三章 Goroutine调度场景过程全图文解析 一、Golang“调度器”的由来? (1) 单进程时代不需要调度器 我们知道,一 阅读全文

posted @ 2020-09-16 20:33 wsw_seu 阅读(249) 评论(0) 推荐(0) 编辑

2020年9月15日

Single Number III

摘要: Given an integer array nums, in which exactly two elements appear only once and all the other elements appear exactly twice. Find the two elements tha 阅读全文

posted @ 2020-09-15 22:18 wsw_seu 阅读(58) 评论(0) 推荐(0) 编辑

innodb中的锁

摘要: 一、锁的对象 InnoDb的行级锁是基于索引实现的,即枷锁的对象是索引而非具体数据。当加操作使用聚集索引时 ,Innodb会锁住聚集索引;而使用非聚集索引时,innodb会先锁住非主键索引,再锁定非聚集索引锁对应的聚集索引。 行级锁的加锁条件必须有对应的索引项,否则会退化为表级锁。 二、共享锁 共享 阅读全文

posted @ 2020-09-15 20:12 wsw_seu 阅读(278) 评论(1) 推荐(0) 编辑

2020年9月13日

41. First Missing Positive

摘要: Given an unsorted integer array, find the smallest missing positive integer. Example 1: Input: [1,2,0] Output: 3 Example 2: Input: [3,4,-1,1] Output: 阅读全文

posted @ 2020-09-13 16:31 wsw_seu 阅读(70) 评论(0) 推荐(0) 编辑

268. Missing Number

摘要: Given an array containing n distinct numbers taken from 0, 1, 2, ..., n, find the one that is missing from the array. Example 1: Input: [3,0,1] Output 阅读全文

posted @ 2020-09-13 14:47 wsw_seu 阅读(121) 评论(0) 推荐(0) 编辑

154. Find Minimum in Rotated Sorted Array II(循环数组查找)

摘要: Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., [0,1,2,4,5,6,7] might become [4,5,6,7,0,1,2]). F 阅读全文

posted @ 2020-09-13 14:01 wsw_seu 阅读(94) 评论(0) 推荐(0) 编辑

局部最小值(二分)

摘要: 局部最小存在的几种情况,1. 长度为1,arr[0]就是局部最小;2. 数组的开头,如果arr[0] < arr[1] ,arr[0]被定义为局部最小。 3. 数组的结尾,如果arr[N-1] < arr[N-2] ,arr[N-1]被定义为局部最小。 所以剩下就是数组下标1~N-2之间的了。再按a 阅读全文

posted @ 2020-09-13 12:13 wsw_seu 阅读(1101) 评论(0) 推荐(0) 编辑

92. Reverse Linked List II 翻转链表II

摘要: Reverse a linked list from position m to n. Do it in one-pass. Note: 1 ≤ m ≤ n ≤ length of list. Example: Input: 1->2->3->4->5->NULL, m = 2, n = 4 Out 阅读全文

posted @ 2020-09-13 11:00 wsw_seu 阅读(80) 评论(0) 推荐(0) 编辑

leetcode Reverse Nodes in k-Group翻转链表K个一组

摘要: Given a linked list, reverse the nodes of a linked list k at a time and return its modified list. k is a positive integer and is less than or equal to 阅读全文

posted @ 2020-09-13 10:44 wsw_seu 阅读(158) 评论(0) 推荐(0) 编辑

2020年9月8日

Mysql分区、分表、分库

摘要: 1、MySQL分区 一般情况下我们创建的表对应一组存储文件,使用MyISAM存储引擎时是一个.MYI和.MYD文件,使用Innodb存储引擎时是一个.ibd和.frm(表结构)文件。 当数据量较大时(一般千万条记录级别以上),MySQL的性能就会开始下降,这时我们就需要将数据分散到多组存储文件,保证 阅读全文

posted @ 2020-09-08 19:59 wsw_seu 阅读(301) 评论(0) 推荐(0) 编辑

上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 43 下一页

导航