Also, usually it would be more applicable to use arrays over hash structures when wanting to index by number.
Only when the numbers being stored are densely distributed and can be offset into 0..N, when the numbers are sparsely distributed a hash is better.
In reply to Re^2: Learn Data Structures easy
by demerphq
in thread Learn Data Structures easy
by l.frankline
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |