題目
1945. Sum of Digits of String After Convert難度: 簡單
題意
給定一字串s與整數k將字串s中的字元按照字母序轉...
線性排序法
線性排序(Linear sort),指的是時間複雜度為O(n)的排序演算法,之所以時間複雜度能達到線性,是因為這種排序非基於比較的,但它的適用場景也...
118. Pascal's Triangle
题目描述:
給定一個非負整數 numRows,生成帕斯卡三角形的前 numRows 行。
Example :
I...
原文題目
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...
上課紀錄
Path Traversal
Intro
像是類似這樣的網址,如果把 ?file=report.pdf 改成 ?file=../../../../e...