Skip to content

Commit

Permalink
Merge pull request #1880 from PradeepFSTdhane123/cont_dup
Browse files Browse the repository at this point in the history
udate the file
  • Loading branch information
ajay-dhangar authored Nov 6, 2024
2 parents e5d45c5 + 2a6d54f commit 97bf1bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/DSA-Problem-Solution/Contains_duplicate.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ int main() {
```
## Approach and code explanation
**Using a Set for Uniqueness:**
- A set data structure inherently stores unique values. In C++, we use an unordered_set for this purpose, which allows us to:
- A set data structure inherently stores unique values. In C++, we used an unordered_set for this purpose, which allows us to:
Insert elements in O(1) average time.
Check if an element exists (lookup) in O(1) average time.
Expand Down

0 comments on commit 97bf1bd

Please sign in to comment.