104. Maximum Depth of Binary Tree
题目描述:
給定一個二元樹的根節點 root,返回其最大深度。
Example 1:
In...
EasyRelated Topics: Bit ManipulationLeetCode Source
解題想法
十進位數字轉成二進制
之後將1轉成0
將0...
21. Merge Two Sorted Lists
You are given the heads of two sorted linked lists l...
145. Binary Tree Postorder Traversal
tags: Easy、Tree
Given the root of a binary...
題目
3217. Delete Nodes From Linked List Present in Array難度: 中等
題意
給定一個鏈結串列head與一整...
前言
嘿嘿~我們又回來啦!延續上次的 Longest Valid Parentheses 題目,這次我們要換個方式來解決。還記得上次我們用了動態規劃法嗎?
今...