2024 iThome 鐵人賽
Share More Gain More
佛心分享-刷題不只是刷題
選手 27 文章 768
題目:給定一個整數陣列 nums,找出其中最長嚴格遞增子序列的長度。 子序列是指從陣列中刪除一些元素後(或不刪除任何元素)剩下的元素,它們的相對順序保持不變。...
Problem : Given the root of a binary tree, determine if it is a valid binary sea...
Day 30
2024-10-14
562
0
解題程式碼 var DetectSquares = function () { this.points = new Map(); }; /** * @p...
Day 25
2024-09-03
561
0
112. Path Sum 题目描述: 給定一個二元樹的根節點 root 和一個整數 targetSum,判斷該樹中是否存在從根節點到葉子節點的路徑,使得這條路...
Day 26
2024-09-07
561
0
Given an unsorted integer array nums. Return the smallest positive integer that...
Day 27
2024-09-08
561
0
Given an integer array nums of length n where all the integers of nums are in t...