題目:給定一個整數陣列 nums,找出其中最長嚴格遞增子序列的長度。
子序列是指從陣列中刪除一些元素後(或不刪除任何元素)剩下的元素,它們的相對順序保持不變。...
Problem :
Given the root of a binary tree, determine if it is a valid binary sea...
解題程式碼
var DetectSquares = function () {
this.points = new Map();
};
/**
* @p...
112. Path Sum
题目描述:
給定一個二元樹的根節點 root 和一個整數 targetSum,判斷該樹中是否存在從根節點到葉子節點的路徑,使得這條路...
Given an unsorted integer array nums. Return the smallest positive integer that...
Given an integer array nums of length n where all the integers of nums are in t...