1162_as-far-from-land-as-possible

command
v0.0.0-...-60194e6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2020 License: Unlicense Imports: 0 Imported by: 0

README

1162_as-far-from-land-as-possible

遍历所有0格:

  1. flood fill相邻的0(标记为2), 找到所有边缘的1, 将水面和边缘分别记录到两个set(map).
  2. 单次flood fill之后, 遍历set中的边缘和水面以计算曼哈顿距离, 求最小值.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL