Documentation ¶
Index ¶
Constants ¶
View Source
const (
ResourceGPU types.ResourceName = "nvidia.com/gpu"
)
Variables ¶
This section is empty.
Functions ¶
func AddNodeToSortedTreeNode ¶
func AddNodeToSortedTreeNode(node *SortedTreeNode, nodeToAdd *SortedTreeNode)
func CompareTreeNode ¶
func CompareTreeNode(node1 *SortedTreeNode, node2 *SortedTreeNode) bool
returns true if same
func LogTreeNode ¶
func LogTreeNode(loglevel int, node *SortedTreeNode)
func PrintTreeNode ¶
func PrintTreeNode(node *SortedTreeNode)
Types ¶
type SortedTreeNode ¶
type SortedTreeNode struct { Val int Score float64 // used for tie breaker Child []*SortedTreeNode }
func AddToSortedTreeNode ¶
func AddToSortedTreeNode(node *SortedTreeNode, valToAdd int) *SortedTreeNode
func AddToSortedTreeNodeWithScore ¶
func AddToSortedTreeNodeWithScore(node *SortedTreeNode, valToAdd int, score float64) *SortedTreeNode
AddToSortedTreeNode adds value as child of node values are in descending order
Click to show internal directories.
Click to hide internal directories.