-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.txt
44 lines (30 loc) · 808 Bytes
/
setup.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import {lcmArr, lcm, gcd, ComplexNumber, Stack, Queue, JsonSet, FunctionSet, MinHeap } from '../../base'
export async function taskOne(input: string[]): Promise<void> {
}
export async function taskTwo(input: string[]): Promise<void> {
}
/*
const grid = input.map(i => i.split(''))
for (let y = 0; y < grid.length; y++) {
for (let x = 0; x < grid[y].length; x++) {
}
}
const queue = new Queue<State>()
const visited = new Set<string>()
queue.push()
while(!queue.isEmpty()) {
const q = queue.pop()
const k = q.x + '|' + q.y
if (visited.has(k)) continue
visited.add(k)
for () {
queue.push()
}
}
interface State {
x: number
y: number
}
const dir of [[1,0],[-1,0],[0,1],[0,-1]]
const dir of [[1,0],[-1,0],[0,1],[0,-1],[1,1],[1,-1],[-1,1],[-1,-1]]
*/