摘要:
Design a data structure that follows the constraints of a Least Recently Used (LRU) cache. Implement the LRUCache class: LRUCache(int capacity) Initia
阅读全文
posted @ 2025-03-23 17:42
ZhangZhihuiAAA
阅读(22)
推荐(0)
摘要:
Given the head of a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list. Return the
阅读全文
posted @ 2025-03-23 12:17
ZhangZhihuiAAA
阅读(5)
推荐(0)
摘要:
Given the head of a linked list, reverse the nodes of the list k at a time, and return the modified list. k is a positive integer and is less than or
阅读全文
posted @ 2025-03-23 10:15
ZhangZhihuiAAA
阅读(16)
推荐(0)
摘要:
Given the head of a singly linked list and two integers left and right where left <= right, reverse the nodes of the list from position left to positi
阅读全文
posted @ 2025-03-23 08:10
ZhangZhihuiAAA
阅读(9)
推荐(0)