You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| 376 |[Wiggle Subsequence](//leetcode.com/problems/wiggle-subsequence/)|[Go](./problems/algorithms/0376.go)| Medium |
121
121
| 377 |[Combination Sum IV](//leetcode.com/problems/combination-sum-iv/)|[Go](./problems/algorithms/0377.go)| Medium |
122
122
| 378 |[Kth Smallest Element in a Sorted Matrix](//leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/)|[Go](./problems/algorithms/0378.go)| Medium |
123
+
| 380 |[Insert Delete GetRandom O(1)](//leetcode.com/problems/insert-delete-getrandom-o1/)|[Go](./problems/algorithms/0380.go)| Medium |
| 1014 |[Best Sightseeing Pair](//leetcode.com/problems/best-sightseeing-pair/)|[Go](./problems/algorithms/1014.go)| Medium |
167
+
| 1026 |[Determine if String Halves Are Alike](//leetcode.com/problems/maximum-difference-between-node-and-ancestor/)|[Go](./problems/algorithms/1026.go)| Medium |
166
168
| 1048 |[Longest String Chain](//leetcode.com/problems/longest-string-chain/)|[Go](./problems/algorithms/1048.go)| Medium |
167
169
| 1074 |[Number of Submatrices That Sum to Target](//leetcode.com/problems/number-of-submatrices-that-sum-to-target/)|[Go](./problems/algorithms/1074.go)| Hard |
| 1143 |[Longest Common Subsequence](//leetcode.com/problems/longest-common-subsequence/)|[Go](./problems/algorithms/1143.go)| Medium |
172
+
| 1207 |[Unique Number of Occurrences](//leetcode.com/problems/unique-number-of-occurrences)|[Go](./problems/algorithms/1207.go)| Easy |
170
173
| 1220 |[Count Vowels Permutation](//leetcode.com/problems/count-vowels-permutation/)|[Go](./problems/algorithms/1220.go)| Hard |
171
174
| 1232 |[Check If It Is a Straight Line](//leetcode.com/problems/check-if-it-is-a-straight-line/)|[Go](./problems/algorithms/1232.go)| Easy |
172
175
| 1268 |[Search Suggestions System](//leetcode.com/problems/search-suggestions-system/)|[Go](./problems/algorithms/1268.go)| Medium |
173
176
| 1281 |[Subtract the Product and Sum of Digits of an Integer](//leetcode.com/problems/subtract-the-product-and-sum-of-digits-of-an-integer/)|[Go](./problems/algorithms/1281.go)| Easy |
177
+
| 1289 |[Minimum Falling Path Sum II](//leetcode.com/problems/minimum-falling-path-sum-ii)|[Go](./problems/algorithms/1289.go)| Hard |
174
178
| 1290 |[Convert Binary Number in a Linked List to Integer](//leetcode.com/problems/convert-binary-number-in-a-linked-list-to-integer/)|[Go](./problems/algorithms/1290.go)| Easy |
175
179
| 1309 |[Decrypt String from Alphabet to Integer Mapping](//leetcode.com/problems/decrypt-string-from-alphabet-to-integer-mapping/)|[Go](./problems/algorithms/1309.go)| Easy |
176
180
| 1314 |[Matrix Block Sum](//leetcode.com/problems/matrix-block-sum/)|[Go](./problems/algorithms/1314.go)| Medium |
| 1338 |[Reduce Array Size to The Half](//leetcode.com/problems/reduce-array-size-to-the-half/)|[Go](./problems/algorithms/1338.go)| Medium |
179
183
| 1342 |[Number of Steps to Reduce a Number to Zero](//leetcode.com/problems/number-of-steps-to-reduce-a-number-to-zero/)|[C++](./problems/algorithms/1342.cpp)[Go](./problems/algorithms/1342.go)| Easy |
184
+
| 1347 |[Minimum Number of Steps to Make Two Strings Anagram](//leetcode.com/problems/minimum-number-of-steps-to-make-two-strings-anagram/)|[Go](./problems/algorithms/1347.go)| Medium |
180
185
| 1354 |[Construct Target Array With Multiple Sums](//leetcode.com/problems/construct-target-array-with-multiple-sums/)|[Go](./problems/algorithms/1354.go)| Hard |
181
186
| 1356 |[Sort Integers by The Number of 1 Bits](//leetcode.com/problems/sort-integers-by-the-number-of-1-bits/)|[Go](./problems/algorithms/1356.go)| Easy |
182
187
| 1423 |[Maximum Points You Can Obtain from Cards](//leetcode.com/problems/maximum-points-you-can-obtain-from-cards/)|[Go](./problems/algorithms/1423.go)| Medium |
| 1642 |[Furthest Building You Can Reach](//leetcode.com/problems/furthest-building-you-can-reach/)|[Go](./problems/algorithms/1642.go)| Medium |
195
200
| 1647 |[Minimum Deletions to Make Character Frequencies Unique](//leetcode.com/problems/minimum-deletions-to-make-character-frequencies-unique/)|[Go](./problems/algorithms/1647.go)| Medium |
201
+
| 1657 |[Determine if Two Strings Are Close](//leetcode.com/problems/determine-if-two-strings-are-close/)|[Go](./problems/algorithms/1657.go)| Medium |
196
202
| 1658 |[Minimum Operations to Reduce X to Zero](//leetcode.com/problems/minimum-operations-to-reduce-x-to-zero/)|[Go](./problems/algorithms/1658.go)| Medium |
| 1689 |[Partitioning Into Minimum Number Of Deci-Binary Numbers](//leetcode.com/problems/partitioning-into-minimum-number-of-deci-binary-numbers/)|[Go](./problems/algorithms/1689.go)| Medium |
200
206
| 1695 |[Maximum Erasure Value](//leetcode.com/problems/maximum-erasure-value/)|[Go](./problems/algorithms/1695.go)| Medium |
201
207
| 1696 |[Jump Game VI](//leetcode.com/problems/jump-game-vi/)|[Go](./problems/algorithms/1696.go)| Medium |
208
+
| 1704 |[Determine if String Halves Are Alike](//leetcode.com/problems/determine-if-string-halves-are-alike/)|[Go](./problems/algorithms/1704.go)| Easy |
202
209
| 1710 |[Maximum Units on a Truck](//leetcode.com/problems/maximum-units-on-a-truck/)|[Go](./problems/algorithms/1710.go)| Easy |
| 1779 |[Find Nearest Point That Has the Same X or Y Coordinate](//leetcode.com/problems/find-nearest-point-that-has-the-same-x-or-y-coordinate/)|[Go](./problems/algorithms/1779.go)| Easy |
205
212
| 1790 |[Check if One String Swap Can Make Strings Equal](//leetcode.com/problems/check-if-one-string-swap-can-make-strings-equal/)|[Go](./problems/algorithms/1790.go)| Easy |
206
213
| 1822 |[Sign of the Product of an Array](//leetcode.com/problems/sign-of-the-product-of-an-array/)|[Go](./problems/algorithms/1822.go)| Easy |
207
214
| 2125 |[Number of Laser Beams in a Bank](//leetcode.com/problems/number-of-laser-beams-in-a-bank)|[Go](./problems/algorithms/2125.go)| Medium |
215
+
| 2225 |[Find Players With Zero or One Losses](//leetcode.com/problems/number-of-laser-beams-in-a-bank)|[Go](./problems/algorithms/2225.go)| Medium |
208
216
| 2319 |[Check if Matrix Is X-Matrix](//leetcode.com/problems/check-if-matrix-is-x-matrix/)|[Go](./problems/algorithms/2319.go)| Easy |
209
217
| 2320 |[Count Number of Ways to Place Houses](//leetcode.com/problems/count-number-of-ways-to-place-houses/)|[Go](./problems/algorithms/2320.go)| Medium |
210
218
| 2321 |[Maximum Score Of Spliced Array](//leetcode.com/problems/maximum-score-of-spliced-array/)|[Go](./problems/algorithms/2321.go)| Hard |
// Given an array of strings strs, group the anagrams together. You can return the answer in any order.
8
+
// An Anagram is a word or phrase formed by rearranging the letters of a different word or phrase, typically using all the original letters exactly once.
// * RandomizedSet() Initializes the RandomizedSet object.
10
+
// * bool insert(int val) Inserts an item val into the set if not present. Returns true if the item was not present, false otherwise.
11
+
// * bool remove(int val) Removes an item val from the set if present. Returns true if the item was present, false otherwise.
12
+
// * int getRandom() Returns a random element from the current set of elements (it's guaranteed that at least one element exists when this method is called). Each element must have the same probability of being returned.
13
+
//
14
+
// You must implement the functions of the class such that each function works in average O(1) time complexity.
// Given the root of a binary tree, find the maximum value v for which there exist different nodes a and b where v = |a.val - b.val| and a is an ancestor of b.
8
+
//
9
+
// A node a is an ancestor of b if either: any child of a is equal to b or any child of a is an ancestor of b.
0 commit comments