Entradas

Mostrando entradas de febrero, 2022

Recursion , let´s traverse a stack, and back to beginning!

Imagen
  Congrats, you have a recursion!   One of the best attributes to become a programmer is to optimize the code, your task as proffesional coder is to find all the possible ways to develop a clear and efficient code and recursion is one of the most used methods.   Things to remember: Be able to explain an algorithm in as few words as possible. Whiteboarding clearly and as educationally as possible Efficient coding that prevents over use of system memory. Not abusing loops, a few nested loops are alright, but too much can be messy! RECURSION By  definition , recursion is:     The repeated application of a recursive procedure or definition.   What? Aren´t there so much recursive words? Let's work with a more understandable definition, which is the one that programmers normally have. Recursion refers to a  function or procedure that calls itself . The way this works is a function that  within ...