Source: https://lyceeomar.atspace.cc/CoursComplexitePyhton.pdf