151
behdad
8y

Data Structures...

Comments
  • 7
    I sucked at data structure. After learning and doing clojure now, it's easy.
  • 12
    Tonight I'm using them all. At the bar πŸΊπŸ»πŸ˜™
  • 1
    @theothergod So Clojure made you like the Data Structure! :D
  • 1
    @oscarascal Amazing πŸ˜‚πŸ˜‚βœŒπŸ»
  • 1
    heap is funny πŸ˜‚
  • 1
    @gedankennebel Yeah,that's why the Heap Overflow occurredπŸ˜‚
  • 1
    @behdad it's lisp dialect and you know the rest (lisp and data structures).
  • 2
    You have to admire the creative use of paper cups! πŸ˜‚
  • 2
    Well, I think Matrix can get worse than that!

    If you allocate everything in linear memory, i.e. access M[i + n*j], where n is the row dimension, than it's exactly as an array.

    If you allocate the matrix statically, then again, it's in contiguous memory (not sure if it's row-wise or column-wise).

    But if you allocate a jagged array of arrays, then you're gonna end up having rows in contiguous memory, but each row is not guaranteed to be close to each other!
  • 0
    You forgot the: List/ArrayList/Vector/any other Dynamic data structure
Add Comment