longestincreasingsubsequence

package
v0.0.0-...-b52cf63 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LengthOfLIS

func LengthOfLIS(nums []int) int

Method 1 Time: O(N^2)

func LengthOfLIS2

func LengthOfLIS2(nums []int) int

Method 2 二分法查詢 - 與紙牌遊戲 patience game 有關 只要分類出牌堆的數量,該數量就表示最長子序列

func LengthOfLIS3

func LengthOfLIS3(nums []int) int

Method 3 Leetcode 的解答

func Max

func Max(x, y int) int

Types

This section is empty.

Jump to

Keyboard shortcuts

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