Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Learn Data Structures easy

by zshzn (Hermit)
on Feb 06, 2006 at 17:13 UTC ( [id://528274]=note: print w/replies, xml ) Need Help??


in reply to Learn Data Structures easy

Neat examples. It could be worth pointing out that data structures can be further nested. Also, usually it would be more applicable to use arrays over hash structures when wanting to index by number.

s/easy/easily/g;

Replies are listed 'Best First'.
Re^2: Learn Data Structures easy
by demerphq (Chancellor) on Feb 07, 2006 at 09:02 UTC

    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.

    ---
    $world=~s/war/peace/g

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://528274]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (11)
As of 2024-04-18 14:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found