前言
今天我們要來解一個二元樹的題目,叫做 Symmetric Tree。
這題其實還滿有趣的,因為它要我們檢查一棵樹是不是「對稱的」,也就是說這棵樹的左邊...
應該會暫時刷Linked List相關的LeetCode全部的easy題目,等到刷完再換其他類型,都刷完Easy之後,就該挑戰一下Medium~
234. Pa...
HardRelated Topics: Graph / Heap (Priority Queue) / Shortest PathLeetCode Sourc...
559. Maximum Depth of N-ary Tree
tags: Easy、Tree
Given a n-ary tree, find its m...
961. N-Repeated Element in Size 2N Array
tags: Easy、Sizeof
You are given an int...
20. Valid Parentheses
題目描述:
給定一個只包含 '('、')'、'{'、'}'、'[' 和 ']' 的字符串 s,判斷字符串是否有效。...