03 2023 档案
摘要:nums1 = [1, 2, 4, 6, 8] nums2 = [3, 5, 7, 10, 12, 15, 23] # res = [] # while nums1 and nums2: # if nums1[0] < nums2[0]: # res.append(nums1.pop(0)) # e
阅读全文
摘要:graph = {'保安':['巡检', '巡逻', '监控'], '监控':['监视','密切','白领'], '巡逻':['白领', '蓝领', '科学家'], '白领':['销售', '大堂经理', '采购']} def bfs(graph, root): queue = [root] see
阅读全文