Arrays and Set • Beginner • 10 min Contains Duplicate How to move away from O(n²) by noticing the problem only asks whether you have seen the value before. Open challenge Open challenge Open challenge