day270

package
v0.0.0-...-d40efbb Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TimeAllNodesReceiveMessage

func TimeAllNodesReceiveMessage(n int, edges []Edge) int

TimeAllNodesReceiveMessage returns the time required for all edges to receive the message originating from node '0'. Nodes are from 0 to N inclusive.

Types

type Edge

type Edge struct {
	Start, End, Time int
}

Edge represents a directed edge from a start to an end with a time cost.

Jump to

Keyboard shortcuts

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