Skip to content

Instantly share code, notes, and snippets.

View avinashkk1's full-sized avatar

Avinash Kumar Konda avinashkk1

View GitHub Profile
@avinashkk1
avinashkk1 / printRecursionTree.py
Created November 8, 2021 12:19 — forked from AgarwalPragy/printRecursionTree.py
Python3 decorator for visualizing the recursion tree of a function call
from functools import wraps
import builtins
def printRecursionTree(func):
global _recursiondepth
_print = builtins.print
_recursiondepth = 0
def getpads():
if _recursiondepth == 0: