所有公开日志

所有WHY42公开日志的联合展示。您可以通过选择日志类型、输入用户名(区分大小写)或相关页面(区分大小写)筛选日志条目。

日志
  • 2024年2月27日 (二) 14:35 Riguz 讨论 贡献创建了页面219.Contains Duplicate II (创建页面,内容为“=Description= {{LeetCode |id=triangle |no=219 |difficulty=Medium |category=Array |collection=Top 150 |title=Contains Duplicate II |summary=Given an integer array nums and an integer k, return true if there are two distinct indices i and j in the array such that nums[i] == nums[j] and abs(i - j) <= k.}} Example 1: <syntaxhighlight lang="bash"> Input: nums = [1,2,3,1], k = 3 Output: true </syntaxhighlight> Example 2: <syntaxhighlight lang="bash"> Input: nums =…”)