What is 1 of the more important things you should consider when deciding which data structure is best suited to solve a particular problem?
When deciding on which data structure to use, you should consider how you need to use the data to solve a particular problem. Different data structures can take up different amount of space in memory and are more efficient in different ways depending on how you want to manipulate the data.
How can we ensure that we’ll avoid an infinite recursive call stack?
When using a recursive function you need to make sure to include a base case in the function to prevent an infinite loop. The base case defines a condition in the function in which the function doesn’t call itself. As long as the base case condition isn’t met then the function will continue to call itself by using the recursive case.