yuiyake

你好呀

vuePress-theme-reco yuiyake    2021 - 2022
yuiyake

Choose mode

  • dark
  • auto
  • light
Home
文章
  • 面试相关
分类
  • 计组
  • vue
  • react
  • 计网
  • 操作系统
  • algorithm
  • javaee
  • js
  • node
  • 剑指offer
  • 软件测试
  • three
  • 软件设计
  • wx
  • mysql
  • 设计模式
  • uml
时间轴
标签
联系我吧
  • GitHub (opens new window)
author-avatar

yuiyake

58

Articles

1

Tags

    Home
    文章
    • 面试相关
    分类
    • 计组
    • vue
    • react
    • 计网
    • 操作系统
    • algorithm
    • javaee
    • js
    • node
    • 剑指offer
    • 软件测试
    • three
    • 软件设计
    • wx
    • mysql
    • 设计模式
    • uml
    时间轴
    标签
    联系我吧
    • GitHub (opens new window)

    记录一些算法的模板

    vuePress-theme-reco yuiyake    2021 - 2022

    记录一些算法的模板

    yuiyake 3/15/2022

    # DFS与BFS

    # DFS

    function check(args) {
        if(条件) return 1;
        return 0;
    }
    function dfs(args) {
        判断边界{
            操作
        }
        尝试每种可能{
            满足check
            标记
            继续下一步dfs
            恢复初始状态
        }
    }
    
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    • DFS与BFS
    • DFS