原文題目Given a string s, find the length of the longest substring without repeating...
今天來解第14題
題目
題目翻譯
一個陣列中有許多個字串,寫一個function找出這些字串最長的共同字首。
解題思路
檢查空輸入:
如果輸入的字串陣列...
當呼叫 setState 後會發起 component re-render,React 會啟動 reconciliation 流程,最終更新瀏覽器的 DOM 並...
Shallow clone 又稱淺複製,淺複製是將一個物件的 第一層屬性 複製到另一個物件上,讓兩個物件擁有相同的第一層屬性。這意味著當屬性是基本型別(如字串、...
🟨扒手I
本題取自 Leetcode 198. House Robber
題目
You are a professional robber planning t...
Problem :
Given a string s containing just the characters '(', ')', '{', '}', '[...