摘要:
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)
摘要:
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)
摘要:
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)
摘要:
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)
摘要:
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)
摘要:
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)
摘要:
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)
摘要:
You are given a sorted unique integer array nums. A range [a,b] is the set of all integers from a to b (inclusive). Return the smallest sorted list of
阅读全文
posted @ 2025-03-18 09:22
ZhangZhihuiAAA
阅读(8)
推荐(0)
摘要:
Given an integer array nums and an integer k, return true if there are two distinct indices i and j in the array such that nums[i] == nums[j] and abs(
阅读全文
posted @ 2025-03-17 20:04
ZhangZhihuiAAA
阅读(8)
推荐(0)