摘要: class Solution { public ListNode reverseList(ListNode head) { if(headnull||head.nextnull){ return head; } ListNode newhead=reverseList(head.next); hea 阅读全文
posted @ 2025-10-14 00:02 Cx330。 阅读(2) 评论(0) 推荐(0)
摘要: class Solution { public ListNode partition(ListNode head, int x) { ListNode small = new ListNode(0); ListNode smallHead = small; ListNode large = new 阅读全文
posted @ 2025-10-14 00:02 Cx330。 阅读(5) 评论(0) 推荐(0)
摘要: import java.util.*; import java.util.concurrent.TimeUnit; public class ArithmeticPractice { private Set generatedQuestions = new HashSet<>(); private 阅读全文
posted @ 2025-10-14 00:01 Cx330。 阅读(7) 评论(0) 推荐(0)