Merge pull request #351 from nickolaos77/typo-search-algorithm

fix typo in search algorithm exercise
This commit is contained in:
Ilya Kantor 2018-01-14 20:01:50 +03:00 committed by GitHub
commit 8ac0800ff6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,4 +28,4 @@ let pockets = {
```
1. Use `__proto__` to assign prototypes in a way that any property lookup will follow the path: `pockets` -> `bed` -> `table` -> `head`. For instance, `pockets.pen` should be `3` (found in `table`), and `bed.glasses` should be `1` (found in `head`).
2. Answer the question: is it faster to get `glasses` as `pocket.glasses` or `head.glasses`? Benchmark if needed.
2. Answer the question: is it faster to get `glasses` as `pockets.glasses` or `head.glasses`? Benchmark if needed.