206. Reverse Linked List 206. Reverse Linked List 在當前的節點中,我們要把原先指向下一個節點的方向,轉變為指向上一個節點(已經反轉完成的節點),接著處理下一個節點。 1.
841. Keys and Rooms 841. Keys and Rooms 透過拿到的鑰匙來造訪後面的房間,是圖形搜索的一種問題。 class Solution: def canVisitAllRooms(
405. Convert a Number to Hexadecimal 405. Convert a Number to Hexadecimal 💡這個題目有一個知識點需要先複習:「二補數」 class Solution:
2095. Delete the Middle Node of a Linked List 2095. Delete the Middle Node of a Linked List # Definition
747. Largest Number At Least Twice of Others 747.Largest Number At Least Twice of Others 這一題是一個簡單的題目,解題的主要邏輯:
1466. Reorder Routes to Make All Paths Lead to the City Zero 1466. Reorder Routes to Make All Paths Lead to the