Module gopy.dfs

Expand source code
from .all_factors import *
from .count_islands import *
from .pacific_atlantic import *
from .sudoku_solver import *
from .walls_and_gates import *

Sub-modules

gopy.dfs.all_factors

Numbers can be regarded as product of its factors. For example, 8 = 2 x 2 x 2; = 2 x 4 …

gopy.dfs.count_islands

Given a 2d grid map of '1's (land) and '0's (water), count the number of islands. An island is surrounded by water and is formed by connecting …

gopy.dfs.pacific_atlantic
gopy.dfs.sudoku_solver

It's similar to how human solve Sudoku …

gopy.dfs.walls_and_gates

You are given a m x n 2D grid initialized with these three possible values: -1: A wall or an obstacle. 0: A gate. INF: Infinity means an …