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