WRITELOOP

GROKKING ALGORITHMS - STACKS

2022 April 25
  • What is the cost of usings stacks? Memory - taller the stack, higher the memory requirements are.

  • What are 2 alternatives to overcome stacks memory drawback?

  1. Code rewriting using loops
  2. Using tail recursion.
NOTE: The original content(s) that inspired this one can be found at:
https://www.amazon.com/Grokking-Algorithms-illustrated-programmers-curious/dp/1617292230
All copyright and intellectual property of each one belongs to its' original author.