摘要:
这题这么简单也好意思标中等吗? 这题的朴素写法: for(int a = 1; a <= n; a++){ for(int b = a + 1; b <= n; b++){ for(int c = b + 1; c <= n; c++){ ...// 总共 k 层for循环 { int res[] 阅读全文
摘要:
class Solution { int fact(int n){ int ret = 1; for(int i = 2; i <= n; i++){ ret *= i; } return ret; } public: string getPermutation(int n, int k) { st 阅读全文
摘要:
class Solution { vector<vector<string>> ans; vector<string> tmp; int N; char Q = 'Q'; public: bool check(int i, int j){ for(int k = i - 1; k >= 0; k-- 阅读全文
摘要:
June 8th I‘m sorry that I wasted almost two month with almost nothing achieved. Even the daily target of reviewing 10 pages of math was failed as well 阅读全文