ZhangZhihui's Blog  
上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 102 下一页

2025年3月23日

摘要: 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) 推荐(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) 推荐(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) 推荐(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) 推荐(0)

2025年3月21日

摘要: A linked list of length n is given such that each node contains an additional random pointer, which could point to any node in the list, or null. Cons 阅读全文
posted @ 2025-03-21 21:56 ZhangZhihuiAAA 阅读(11) 评论(0) 推荐(0)
 
摘要: You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order, and each of their nodes conta 阅读全文
posted @ 2025-03-21 15:38 ZhangZhihuiAAA 阅读(13) 评论(0) 推荐(0)
 
摘要: Given a string s representing a valid expression, implement a basic calculator to evaluate it, and return the result of the evaluation. Note: You are  阅读全文
posted @ 2025-03-21 10:32 ZhangZhihuiAAA 阅读(13) 评论(0) 推荐(0)

2025年3月20日

摘要: You are given an array of strings tokens that represents an arithmetic expression in a Reverse Polish Notation. Evaluate the expression. Return an int 阅读全文
posted @ 2025-03-20 21:23 ZhangZhihuiAAA 阅读(5) 评论(0) 推荐(0)

2025年3月19日

摘要: You are given an array of non-overlapping intervals intervals where intervals[i] = [starti, endi] represent the start and the end of the ith interval 阅读全文
posted @ 2025-03-19 13:33 ZhangZhihuiAAA 阅读(12) 评论(0) 推荐(0)

2025年3月18日

摘要: Given an array of intervals where intervals[i] = [starti, endi], merge all overlapping intervals, and return an array of the non-overlapping intervals 阅读全文
posted @ 2025-03-18 12:37 ZhangZhihuiAAA 阅读(9) 评论(0) 推荐(0)
上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 102 下一页