Pular para o conteúdo principal

4 documentos selecionados com "sliding-window"

Ver todas os Marcadores

Contains Duplicate II

This question is asked by Google. Given an array, nums, and an integer k, return whether or not two unique indices exist such that nums[i] = nums[j] and the two indices i and j are at most k elements apart.