Coder Social home page Coder Social logo

guider / snorlax Goto Github PK

View Code? Open in Web Editor NEW

This project forked from smartkeyerror/snorlax

0.0 0.0 0.0 14.08 MB

👻 Explore data structure & algorithm with C/C++.总结常用的数据结构和算法,包含图论,以及 Leetcode 刷题记录

C 10.24% Makefile 0.89% C++ 88.05% Python 0.73% Shell 0.09%

snorlax's Introduction

Snorlax


🔭 Algorithm

🔥 动态规划

🐾 Graph

🐡 Other Algorithm Topics

👻 System Design


🗃️ Algorithm Summary

Binary Tree

方法 注意点 能够解决的问题
前序遍历 将根节点的信息传递至左右子树 验证 BST: 98. Validate Binary Search Tree
判断两棵树是否完全相同: 100. Same Tree
判断是否为子树: 572. Subtree of Another Tree
根节点到叶子节点的路径问题: 113. Path Sum II
所有二叉树的构造问题都是前序遍历: 108. Convert Sorted Array to Binary Search Tree
中序遍历 BST 的中序遍历结果有序 验证 BST: 98. Validate Binary Search Tree
BST 中第 K 小/大的元素: 230. Kth Smallest Element in a BST
后序遍历 将左右子树的信息传回给根节点 二叉树的最大高度: 104. Maximum Depth of Binary Tree
二叉树的最小高度: 111. Minimum Depth of Binary Tree
翻转二叉树: 226. Invert Binary Tree
翻转二叉树为链表: 114. Flatten Binary Tree to Linked List
最近公共祖先问题: 236. Lowest Common Ancestor of a Binary Tree
DP + BinaryTree: 337. House Robber III
层序遍历 使用 queue 保存每一层的节点
BFS 用于求解无权图最短路径
寻找二叉树每一行的最大节点值: 515. Find Largest Value in Each Tree Row
二叉树的右视图: 199. Binary Tree Right Side View
多叉树最短路径问题: 310. Minimum Height Trees
二叉树中所有距离为 K 的节点: 863. All Nodes Distance K in Binary Tree

🍻 Interesting Problems

Danamic Programing

Linked-List

intersection-of-two-linked-list

snorlax's People

Contributors

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