2024 iThome 鐵人賽
Share More Gain More
佛心分享-刷題不只是刷題
選手 27 文章 768
Day 20
2024-10-04
209
0
題目:給定兩個整數陣列,分別表示二元樹的前序遍歷和中序遍歷結果,請構造該二元樹並回傳其根節點。 範例: 前序遍歷 (preorder) = [3, 9, 20,...
A sentence consists of lowercase letters ('a' to 'z'), digits ('0' to '9'), hyph...
Problem : Given the root of a binary tree, imagine yourself standing on the righ...
Day 11
2024-09-25
208
0
.call跟.apply 都可以直接呼叫函式並且改變函式內 this 的指向,兩者最主要的差異是傳入的參數形式不同。 .call 定義:.call 方法會立即...
You are given a 2D integer array ranges and two integers left and right. Each ra...
Day 16
2024-09-30
206
0
DAY 16 試題 問題描述 給定一個單向鏈結串列的頭節點 head,以及一個整數 n,要求從該鏈結串列中移除倒數第 n 個節點,並返回修改後的鏈結串列的頭節...