501. Find Mode in Binary Search Tree Easy Easy Easy Given a binary search tree (BST) with duplicates, find all the mode(s) (the most frequently occurr ...
分类:
其他好文 时间:
2020-01-01 09:53:54
阅读次数:
58
496. Next Greater Element I Easy Easy Easy You are given two arrays (without duplicates) nums1 and nums2 where nums1’s elements are subset of nums2. F ...
分类:
其他好文 时间:
2019-12-30 09:36:29
阅读次数:
60
题号 题目链接 说明 基础 27 Remove Element 26 Remove Duplicates from Sorted Array 80 Remove Duplicates from Sorted Array II 277 Find the Celebrity 189 Rotate Arr ...
分类:
其他好文 时间:
2019-12-29 12:57:11
阅读次数:
77
Description Given a set of words without duplicates, find all word squares you can build from them. A sequence of words forms a valid word square if t ...
分类:
其他好文 时间:
2019-12-22 00:37:08
阅读次数:
86
Description Given an integer array nums with all positive numbers and no duplicates, find the number of possible combinations that add up to a positiv ...
分类:
其他好文 时间:
2019-12-21 22:30:21
阅读次数:
119
原地移除元素,返回新长度 javascript const removeDuplicates = nums = { let index = 1; for (let i = 0; i ...
分类:
其他好文 时间:
2019-12-15 10:36:46
阅读次数:
76
Given a sorted integer array without duplicates, return the summary of its ranges. Example 1: Input: [0,1,2,4,5,7] Output: ["0->2","4->5","7"] Explana ...
分类:
其他好文 时间:
2019-11-23 09:21:31
阅读次数:
67
DataFrame.drop_duplicates(self, subset=None, keep='first', inplace=False) Return DataFrame with duplicate rows removed, optionally only considering ce ...
分类:
其他好文 时间:
2019-11-22 22:11:05
阅读次数:
83
Algorithm 给定一个排序数组,你需要在原地删除重复出现的元素,使得每个元素只出现一次,返回移除后数组的新长度。不要使用额外的数组空间,你必须在原地修改输入数组并在使用 O(1) 额外空间的条件下完成。 [Remove Duplicates from Sorted Array]( https: ...
分类:
其他好文 时间:
2019-11-10 15:29:41
阅读次数:
73
82. Remove Duplicates from Sorted List II 跳过重复节点,返回head。 class Solution { public ListNode deleteDuplicates(ListNode head) { if(head == null || head.ne ...
分类:
其他好文 时间:
2019-11-04 17:09:45
阅读次数:
79