_022_03

package
v0.0.0-...-982d520 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Frog1

func Frog1(N int, heights []int) int

Frog 1 https://atcoder.jp/contests/dp/tasks/dp_a

func MatchsticksToSquare

func MatchsticksToSquare(matchsticks []int) bool

Matchsticks to Square leetcode: https://leetcode-cn.com/problems/matchsticks-to-square/

func NaryTreePreorderTraversal

func NaryTreePreorderTraversal(root *Node) []int

func ZigZagConversion

func ZigZagConversion(s string, numRows int) string

ZigZag Conversion leetcode: https://leetcode-cn.com/problems/zigzag-conversion/

Types

type Node

type Node struct {
	Val      int
	Children []*Node
}

N-ary Tree Preorder Traversal leetcode: https://leetcode-cn.com/problems/n-ary-tree-preorder-traversal/

Jump to

Keyboard shortcuts

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