Skip to content

Commit

Permalink
Add big O info.
Browse files Browse the repository at this point in the history
  • Loading branch information
trekhleb committed Mar 30, 2018
1 parent 8319355 commit 74cd611
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
Binary file removed assets/big-O-graph.jpeg
Binary file not shown.
Binary file added assets/big-O-graph.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion src/algorithms/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@

## Big O Notation

![Big O graphs](https://github.com/trekhleb/javascript-algorithms/blob/master/assets/big-O-graph.jpeg)
Order of growth of algorithms specified in Big-O notation. Source: [Big-O Cheat Sheet](http://bigocheatsheet.com/).

![Big O graphs](https://github.com/trekhleb/javascript-algorithms/blob/master/assets/big-O-graph.png)

Below is the list of some of the most used Big O notations and their performance comparisons against different sizes of the input data.

| Big O Notation | Computations for 10 elements | Computations for 100 elements | Computations for 10 elements |
| -------------- | ---------------------------- | ----------------------------- | ----------------------------- |
Expand Down

0 comments on commit 74cd611

Please sign in to comment.