線性排序法
線性排序(Linear sort),指的是時間複雜度為O(n)的排序演算法,之所以時間複雜度能達到線性,是因為這種排序非基於比較的,但它的適用場景也...
125. Valid Palindrome
題目描述:一個字串如果在將所有大寫字母轉換為小寫字母並移除所有非字母數字的字符後,正反讀起來相同,則稱為Palind...
118. Pascal's Triangle
题目描述:
給定一個非負整數 numRows,生成帕斯卡三角形的前 numRows 行。
Example :
I...
上課紀錄
Path Traversal
Intro
像是類似這樣的網址,如果把 ?file=report.pdf 改成 ?file=../../../../e...
原文題目
You are given an n x n 2D matrix representing an image, rotate the image by...
原文題目
Given an array nums of size n, return the majority element.
The majority el...