摘要:
https://www.hollischuang.com/archives/6427 阅读全文
摘要:
为什么读已提交的并发性更好 在数据库中,锁的时间和范围是影响并发性的重要因素。已提交读(Read Committed)隔离级别与可重复读(Repeatable Read)的主要区别就在于它们在读取数据时对锁的使用方式不同。让我们详细看看为什么已提交读的锁的时间和范围更小。 1. 已提交读(Read 阅读全文
摘要:
class Solution: def numBusesToDestination(self, routes: List[List[int]], source: int, target: int) -> int: if source == target: return 0 station_route 阅读全文
摘要:
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 阅读全文