摘要: https://www.hollischuang.com/archives/6427 阅读全文
posted @ 2024-10-05 19:34 Duancf 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 为什么读已提交的并发性更好 在数据库中,锁的时间和范围是影响并发性的重要因素。已提交读(Read Committed)隔离级别与可重复读(Repeatable Read)的主要区别就在于它们在读取数据时对锁的使用方式不同。让我们详细看看为什么已提交读的锁的时间和范围更小。 1. 已提交读(Read 阅读全文
posted @ 2024-10-05 19:34 Duancf 阅读(561) 评论(1) 推荐(1) 编辑
摘要: class Solution: def numBusesToDestination(self, routes: List[List[int]], source: int, target: int) -> int: if source == target: return 0 station_route 阅读全文
posted @ 2024-10-05 12:02 Duancf 阅读(10) 评论(0) 推荐(0) 编辑
摘要: class Solution: def isBipartite(self, graph: List[List[int]]) -> bool: n = len(graph) colors = [0]*n def bfs(i): colors[i] = 1 queue = [(i,1)] while q 阅读全文
posted @ 2024-10-05 11:11 Duancf 阅读(10) 评论(0) 推荐(0) 编辑
more_horiz
keyboard_arrow_up dark_mode palette
选择主题
点击右上角即可分享
微信分享提示