iT邦幫忙

2025 iThome 鐵人賽

DAY 18
0

題目介紹:

  • 編號:226
  • 類型:tree, Depth-First Search, Breadth-First Search, Binary Search
  • 難度:easy
  • 題目連結:https://leetcode.com/problems/invert-binary-tree/description/
  • 描述:給定一棵二元樹,將左右子樹互換

解題成功截圖:
https://ithelp.ithome.com.tw/upload/images/20251002/20178840DqTldrvjJW.jpg

notion筆記截圖:
https://ithelp.ithome.com.tw/upload/images/20251002/20178840A80hNyrCj1.jpghttps://ithelp.ithome.com.tw/upload/images/20251002/20178840qbpEMY7IsD.jpg


上一篇
<DAY17> - Same Tree
下一篇
<DAY19> - Symmetric Tree
系列文
「用 LeetCode 挑戰 30 天,打造扎實的程式邏輯力」- 結合Notion記錄學習筆記19
圖片
  熱門推薦
圖片
{{ item.channelVendor }} | {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言