144. Binary Tree Preorder Traversal
tags: Easy、Tree
Given the root of a binary...
EasyRelated Topics: Bit ManipulationLeetCode Source
解題想法
十進位數字轉成二進制
之後將1轉成0
將0...
解題程式碼
var characterReplacement = function(s, k) {
let maxLength = 1;
let...
DAY 29 試題
問題描述
給定一個 n x n 的二維矩陣,代表一張圖片。請將圖片「順時針旋轉 90 度」。旋轉需要在原地進行,也就是說,必須直接修改輸入...
58. Length of Last Word
題目描述:
給定一個只包含大小寫字母和空格 ' ' 的字符串 s,返回其最後一個單詞的長度。如果字符串尾部包含空...
2848. Points That Intersect With Cars
tags: Easy、Pointer
You are given a 0-inde...