How to know which data structure should be implemented in a particular program? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to know which data structure should be implemented in a particular program?

Often when we come across a particular programmig question we try to figure out the logic to solve the programming problem. And that logic has to implemented with the help of a data structure. How to know which data structure is the most feasible for a particular program?

17th Oct 2017, 2:02 PM
Vibhash Ranjan Ray
Vibhash Ranjan Ray - avatar
1 Answer
+ 1
First you have to understand how the different types of data structures work. Then you have to analyze your problem and answer some questions like: Do i have alot of memory to use? Does this program need alot of memory? Will this program use alot of entries? (...) Finally you choose the best data structure based on those requirements!
17th Oct 2017, 3:47 PM
Chriptus13
Chriptus13 - avatar