題目
給定兩個整數 dividend 和 divisor,要求 不使用乘法、除法和 mod 運算,實現兩個整數的除法。結果需要向零截斷(丟掉小數部分)。
注意:...
昨天我們才剛把 Integer to Roman 搞懂,今天馬上迎來反向操作 —— Roman to Integer。其實這題就像昨天的倒帶,只是方向顛倒了,但...
交叉軸對齊:align-items
控制項目在交叉軸上的對齊方式
拉伸填滿(預設)css
.align-stretch {
display: flex;...
CSS 單位說明
絕對單位範例
css
.absolute-units {/*絕對單位 像素(最常用) */
width: 300px;
height...
Lowest Common Ancestor of a Binary Search Tree
thoughts
BST 性質:左子樹 < root &l...
Palindrome Linked List - leetode 234
thoughts
判斷一個單向鏈結串列是否為迴文(palindrome)。
E...