For further actions, you may consider blocking this person and/or reporting abuse
For further actions, you may consider blocking this person and/or reporting abuse
dev.to staff -
Sloan the DEV Moderator -
Craftingbugs -
dev.to staff -
Once suspended, blender will not be able to comment or publish posts until their suspension is removed.
Once unsuspended, blender will be able to comment and publish posts again.
Once unpublished, all posts by blender will become hidden and only accessible to themselves.
If blender is not suspended, they can still re-publish their posts from their dashboard.
Once unpublished, this post will become invisible to the public and only accessible to Saloni Goyal.
They can still re-publish the post if they are not suspended.
Thanks for keeping DEV Community safe. Here is what you can do to flag blender:
Unflagging blender will restore default visibility to their posts.
Top comments (15)
My favorite data structure is the Array.
P.S : If you are coming from a Java background, you feel DSA is quite conceptual and brilliant subject if you work with Java.
HashMaps and Linked Hashset.
But I love the array in PHP.
They cover so much, they are Hashmaps, Hashsets, ordered Maps, Stacks(derived), Queues(derived) and of course, arrays too :P
i love tries! got introduced into those in cs50 and did a "real" implementation in the ml course at my uni. Have been in love with them ever since. In a trie - its like every node you navigate to makes up a piece of information (sort of like a treasure hunt where each step leads to the next clue and so on) and by the end - u retrieve the full information! super exiting :)
My favourite data structure is the one that gets the job done efficiently. /joke
To give a serious answer, my most used, and therefore most often favourite would be a map. Knowing the various underlying implementations is really fun and important in order to make a good performance decision.
I found this site helpful in visualising the various algorithms and data structures cs.usfca.edu/~galles/visualization...
Personally I love hashmaps, they are an elegant way to quickly and efficiently store unsorted data in an organized fashion. I typically use them in situations such as spatial hashing, which makes many of my collision based algorithms so much more efficient. I also use them for situations where I need only one of each type, as hashmaps can only have a single key to value relationship. Overall their O(1) nature and their intrinsic properties make them a favorite for me!
HashMap (
<String, Object>
obviously).Right Now, it's Stack. I only know two, Stack and Queue.
Why Stack ? coz it pops well. :)
😂🤩👏
Definitely Array 😄
Object, formed up everything
Basic immutable and enumerable collection. Often all you need.
Is that your favorite pick-up line?
😂