Loading

摘要: 两个线程交替打印0-100 import java.util.concurrent.locks.Condition; import java.util.concurrent.locks.ReentrantLock; public class Main { public static Reentran 阅读全文
posted @ 2024-09-01 14:15 Duancf 阅读(61) 评论(0) 推荐(0)
摘要: 多线程循环打印ABC import java.util.concurrent.locks.Condition; import java.util.concurrent.locks.ReentrantLock; public class Main { public static ReentrantLo 阅读全文
posted @ 2024-09-01 14:14 Duancf 阅读(63) 评论(0) 推荐(0)
摘要: class Node: def __init__(self, key=0, value=0): self.key = key self.value = value self.prev = None self.next = None class LRUCache: def __init__(self, 阅读全文
posted @ 2024-09-01 14:13 Duancf 阅读(19) 评论(0) 推荐(0)
摘要: class Node: def __init__(self, key=0, val=0, pre=None, next=None, fre=0, tail=None): self.key = key self.val = val self.pre = pre self.next = next sel 阅读全文
posted @ 2024-09-01 14:09 Duancf 阅读(26) 评论(0) 推荐(0)