GithubHelp home page GithubHelp logo

makejun168 / leetcodesolution Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 4.72 MB

👍leetCode 刷题项目

Home Page: https://leetcode-cn.com/

JavaScript 100.00%
leetcode leetcode-solutions leetcode-javascript javascript

leetcodesolution's Introduction

leetCode

小小前端目标刷够 LeetCode 热门100 + 剑指 Offer 题目,附上简单的答题思路

目录结构

根据题目的解法或者数据结构分类,可能存在同一题目,多个不同的分类情况

  • 数据结构
    • String 字符串
    • Array 数组
    • Tree 二叉树
    • Stack 栈
    • List 链表
    • Queue 队列
    • Hash 哈希表
  • 算法分类
    • 递归
      • DFS 深度优先遍历
      • BFS 广度优先遍历
    • 回溯
    • 分治
    • 贪心算法
    • 动态规划
      • 记忆化搜索
      • 线性DP
      • 背包DP
    • 位运算
    • 排序

进度

128 / 175

已经通过的题目:128
提交未通过的题目 4
未完成的题目:47
尝试过没有成功 12

通过的题目 通过类型不同进行分类

Simple 简单

Normal 中等难度

Difficult

+ Array
    - 暂无👍

总结

算法题类型 解法思路 原因
String 正则表达式 转化成数组判断 效率低 正则匹配难度大 转化是数组判断效率低下 数据类型转换浪费性能
Maths 基础数学方法 数学逻辑解题方法 (包含 字符串数组的解题思路) 阅读理解
Array 二分法查找(递归) 排序 去重 嵌套循环(暴力解题) 循环递归嵌套 合理使用 Array.API 考虑时间和空间复杂度 嵌套循环的时间复杂度是 O(n^2) 优化方向是使用 O(1)的复杂度实现 O(1)<O(logn)<O(n)<O(nlogn)<O(n²)<O(n³)<O(2ⁿ)<O(n!)
Tree 递归 dfs(深度优先遍历) bfs(广度优先遍历) 二叉树的数据结构适合使用递归 常见树的层次遍历有 DFS 和 BFS 两种方法
Object 面向对象编程 业务向 阅读理解题目
ListNode 递归 双指针 不熟悉递归算法 无应用
Sql mySql 语法糖 目前碰到的题目不算太难

金句

递归的是人,迭代的是神。
递归二叉树,一般操作
深度遍历二叉树,不会的操作 dfs 配合栈一起使用

leetcodesolution's People

Contributors

makejun168 avatar

Stargazers

 avatar  avatar  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.