MediumRelated Topics: Hash Table / String / Greedy / Sorting / CountingLeetCode...
145. Binary Tree Postorder Traversal
tags: Easy、Tree
Given the root of a binary...
tags: Easy、Sort
Given an array of integers nums, sort the array in increasing o...
35. Search Insert Position
题目描述:
給定一個排序陣列和一個目標值,請在陣列中找到目標值,並返回其索引。如果目標值不在陣列中,則返回...
解題程式碼
var DetectSquares = function () {
this.points = new Map();
};
/**
* @p...
題目:給定一個整數陣列 nums,找出其中最長嚴格遞增子序列的長度。
子序列是指從陣列中刪除一些元素後(或不刪除任何元素)剩下的元素,它們的相對順序保持不變。...