0

what is used the most in general ? lists, stacks, queues or arrays?

25th Sep 2016, 5:25 PM
Mansi Verma
Mansi Verma - avatar
3 Réponses
+ 1
Just depends what your needs are. Some data structures are better than others in certain ways. Each data structure has its own pros and cons. Finally for your question based on my experience i seem to use ArrayLists, LinkedLists more.
25th Sep 2016, 7:22 PM
Ousmane Diaw
0
As for web application with LINQ usage it's usual to use arrays, dictionaries and lists. And if I remember right arrayLists do not use generics what makes them slower than arrays or lists (boxing and unboxing everytime).
27th Sep 2016, 9:01 PM
Ivan G
Ivan G - avatar
0
It depends on situation but generally we always use stack and arrays only.
27th Sep 2016, 9:34 PM
Jai Verma
Jai Verma - avatar