Ctrl K
Problem

Does Any Value Repeat

Easy · Does Any Value Repeat

A sensor has logged a series of readings, given as an integer array `readings`. Find out whether any reading occurred more than once. Return `True` if at least one value appears in the array two or more times, and `False` if all values are distinct.…

Solve the problem →