Skip to content

Commit c1c730c

Browse files
authored
Update smallest-number-in-infinite-set.cpp
1 parent 17003a6 commit c1c730c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

C++/smallest-number-in-infinite-set.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class SmallestInfiniteSet {
2020
}
2121

2222
void addBack(int num) {
23-
if (num >= n_ || bst_.count(num)) {
23+
if (num >= n_) {
2424
return;
2525
}
2626
bst_.emplace(num);

0 commit comments

Comments
 (0)