Math Fundamentals18 sections · 814 units
Open in Course

Problem - Contains Duplicate

Compare time complexities

Given an integer array numsnums, return truetrue if any value appears at least twice in the array. Return falsefalse if every element is distinct.

This problem has multiple solutions with different time complexities. Comparing them will reinforce your understanding of Big O analysis.