PostAddsense


태그 : GraphTheory 요약보기전체보기목록닫기

1

PenLift

Codeimport java.util.ArrayList;public class PenLift{    int len, size;    boolean[] usedS, usedV;    int[] nv;    &nbs...

PowerOutage

Codeimport java.util.LinkedList;import java.util.Queue;public class PowerOutage{    public int estimateTimeout(int[] fromJunction, int[] toJunction, int[] ductLength) { &nbs...

ShuffleMethod

Codepublic class ShuffleMethod{    int n;    int[] ts;    boolean[] flag;    int[] sn;        &nbs...

UndergroundVault

Code1import java.util.ArrayList;public class UndergroundVault{    int n;    boolean canBeSealed(int[][] adj, boolean[] sealed, int room) {   &n...

Rooms

Codepublic class Rooms{    public int[] finalRooms(String[] rooms, String doors, int start) {        int n = rooms.length;  &nbs...

Circuits

Codepublic class Circuits{    public int howLong(String[] connects, String[] costs) {        int N = connects.length;   &nb...

Escape

Codeimport java.util.LinkedList;public class Escape{    int[] dx = {1,0,-1,0};    int[] dy = {0,1,0,-1};    int[][] map, dist;    boolean[][] used;  &nbs...
1