Picking the right data structure
If you see code that’s using an Array, could it use a Set instead? If so, is it worth the time and effort to swap them out? I wrote up some notes on picking the right data structure.
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
If you see code that’s using an Array, could it use a Set instead? If so, is it worth the time and effort to swap them out? I wrote up some notes on picking the right data structure.
Post a comment