摘要:
flowchart TD A[开始] --> B{p1 是否为空} B -->|No| C[保存 p1.next 到 temp] C --> D[将 p1.next 指向 p2] D --> E[更新 p2 为 p1] E --> F[更新 p1 为 temp] F --> B B -->|Yes| 阅读全文
posted @ 2025-01-10 16:16
KooTeam
阅读(20)
评论(0)
推荐(0)
摘要:
237.删除链表中的节点 /** * Definition for singly-linked list. * function ListNode(val) { * this.val = val; * this.next = null; * } */ /** * @param {ListNode} 阅读全文
posted @ 2025-01-10 15:34
KooTeam
阅读(28)
评论(0)
推荐(0)
摘要:
var RecentCounter = function() { this.queue=[] }; /** * @param {number} t * @return {number} */ RecentCounter.prototype.ping = function(t) { this.queu 阅读全文
posted @ 2025-01-10 14:31
KooTeam
阅读(47)
评论(0)
推荐(0)

浙公网安备 33010602011771号