203. Remove Linked List Elements
tags: Easy、Linked-List
Given the head of a lin...
108. Convert Sorted Array to Binary Search Tree
tags: Easy、Tree
Given an intege...
559. Maximum Depth of N-ary Tree
tags: Easy、Tree
Given a n-ary tree, find its m...
MediumRelated Topics: Array / GreedyLeetCode Source
解題想法
題目唯一要注意的點就是 arrays 最大...
EasyRelated Topics: Array / Hash Table / String / CountingLeetCode Source
解題想法...
Sliding Window是一種針對處理substring以及subarray的解題方法,可以減少時間複雜度,將O(n2)或O(n3)減至O(n)。
那麼Sl...