00 Prep: Data Structures and Algorithms - VascoLucas01/cybersecurity-reading-notes GitHub Wiki
Discussion Questions
1. 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 which data structure is best suited to solve a particular problem, one of the more important things to consider is the nature of the problem itself. This includes the type of data to be stored, the operations to be performed on the data, and the efficiency requirements of those operations.
Additionally, when comparing all of the data structures it is important to see and analyze all the strengths and weaknesses of each one and decide according to the requirements for that specific task or problem.
Source: Data Structures
2. How can we ensure that we’ll avoid an infinite recursive call stack?
In computer programming, a base case is a condition that stops a recursive function from calling itself. Without it, we can run the code forever.
So, by using a base case we avoid that the function run forever by using a stop condition.
Source: Recursion