Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
eyas-ranjous committed Jul 13, 2024
1 parent 244a0be commit 69da68c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ console.log(bidsQueue.pop()); // { id: 7, value: 8000 }
```

### contains
checks if the queue contains an element that meet a criteria in O(log(n)) runtime.
checks if the queue contains an element that meet a criteria in O(n*log(n)) runtime.

```js
carsQueue.contains((car) => car.price === 50000); // true
Expand Down

0 comments on commit 69da68c

Please sign in to comment.