2024 iThome 鐵人賽
Share More Gain More
佛心分享-刷題不只是刷題
選手 27 文章 768
題目:給定兩個字串 text1 和 text2,回傳兩個字串的最長公共子序列的長度。 子序列是指一個字串中刪除某些(或不刪除任何)字元後剩下的字元序列,並且順...
解題程式碼 var isSubtree = function (root, subRoot) { const isSameTree = (p, q) =&g...
Day 13
2024-09-25
356
0
今天就來講講第13題 題目 題目翻譯 題目要求將整數 (num) 轉換成羅馬數字表示,並給定羅馬數字轉換表。 解題思路 建立羅馬字符對應表: 使用哈希表...
Day 22
2024-09-05
353
0
572. Subtree of Another Tree tags: Easy、Tree Given the roots of two binary tree...
Day 22
2024-09-22
352
0
昨天的10969 演唱歌單中,最愛的歌是カラス,分享給大家僕は何で悲しくも この時代に生まれてきたんだろう自分すら制御できずまるで飛び方を忘れてるカラスhttp...
Day 17
2024-08-29
351
0
Given an integer array nums and an integer k, return the kth largest element in...