All Questions
2 questions
4
votes
4
answers
539
views
Is it better to generate a large list during the constructor or when it's accessed?
I've got a class member function that generates a large list and puts it into a private member variable so it can be accessed through a getter. The generation of this list is a rather intensive ...
-3
votes
2
answers
650
views
Which data-structure or programming technique to use when?
While studying for Data structures and Algorithms, I noticed that there is a pattern/group in which every question falls into.
Example - Given this, do/find that - Category 1. use these methods/...