今天挑戰的題目是 LeetCode 1365「How Many Numbers Are Smaller Than the Current Number」。題目要...
今天會提到 Python 最常用的資料結構之一:列表(List)。列表就像一個「資料的盒子」,可以一次裝很多東西,並且能用索引(index)存取、修改裡面的資料...
控制流程
case
number = 3
case number do
1 -> "match 到 1"
2 -> &...
class Solution { // review 34 O(logN) O(1)
public:
vector<int> sea...
今天解的題目是第四十八題 Rotate Image。這題的目標是將一個 n x n 的二維矩陣順時針旋轉 90 度,並且必須原地修改,也就是不能建立新的矩陣來存...
Problem Description
Write a function that finds the sum of all its arguments.
e...