Giter Club home page Giter Club logo

leetcode-learner's Introduction

leetcode-learner

直接全文检索,带正则 [.*KEYWORDS.*]

strategy

tags

  • memo 记忆化

contents

  1. 二分 $\to$ 分治
  2. 滑动窗口
  3. 搜索 BFS, DFS, 回溯
  4. 贪心+回溯 $\to$ 动态规划 DP
    • 回溯算法就是个 N 叉树的前后序遍历问题 ref
    • DP VS 记忆化递归
      • 没空间优化需求直接就记忆化(方便), 否则用迭代 dp
  5. 背包
  6. 位运算
  1. 适用场景
    1. 局部最优解能得到整体的最优解
    2. 贪心选择不会影响以后的状态,只与当前状态有关
  2. 贪心 + 回溯 = 动态规划
  3. 贪心算法的难点在于如何知道贪心的策略是正确的, 证明方法:
    1. 反证法
    2. 数学归纳法

题目归类

leetcode-learner's People

Contributors

a1exlism avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.