Tuesday, January 28, 2025
Contains Duplicate

Updated: January 2025
Contains Duplicate
easy
💡 Intuition
- Idea is to track every number.
- If we track each number as we move forward in the array, we can check whether we've already seen that number in our tracking data structure.
🚀 Solution
go
⏳ Time Complexity
- Since we are taking single loop for the array of length n, the time complexity will be
O(n)