package
Version:
v0.0.0-...-b52cf63
Opens a new window with list of versions in this module.
Published: Nov 7, 2025
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func LengthOfLIS(nums []int) int
Method 1
Time: O(N^2)
func LengthOfLIS2(nums []int) int
Method 2
二分法查詢 - 與紙牌遊戲 patience game 有關
只要分類出牌堆的數量,該數量就表示最長子序列
func LengthOfLIS3(nums []int) int
Method 3
Leetcode 的解答
Source Files
¶
Click to show internal directories.
Click to hide internal directories.