11 2022 档案
摘要:You are given an inclusive range [lower, upper] and a sorted unique integer array nums, where all elements are in the inclusive range. A number x is c
阅读全文
摘要:Design and implement an iterator to flatten a 2d vector. It should support the following operations: next and hasNext. Example: Vector2D iterator = ne
阅读全文
摘要:Given a string s and an integer k, return the length of the longest substring of s that contains at most k distinct characters. Example 1: Input: s =
阅读全文