Skip to content

frankcbliu/leetcode-solution

Repository files navigation

leetcode-solution

leetcode 题解 - 个人训练题集(c++)

基于 Clion 的 Leetcode Editor 插件 + Single File Execution 插件

0.Clion插件配置

  • Code Template
${question.content}

\#include "headers.h"

${question.code}

int main() {
  Solution s;
  vector<int> arr{7, 1, 5, 3, 6, 4};
  auto res = s.twoSum(arr, 11);
  showVector(res);
}

headers.h 文件所在路径: leetcode/editor/cn/headers.h

link template: (./leetcode/editor/cn/)

1.动态规划

01背包

完全背包

打家劫舍篇

股票买卖篇

子序列/子数组篇

2.贪心算法

3.回溯法

  • 980-不同路径III

4.周赛(T1)

动态规划篇(先按分数排序, 刷完后再分类)

待刷题单:

5. 链表

About

leetcode 题解

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages