Algorithms: Consequences of adding more loops

Az Codez
2 min readJan 8, 2023
Photo by Anna Dziubinska on Unsplash

Code Example

Let's consider this code

As you see here, there is a loop inside a loop.

Time Complexity

--

--

Az Codez

Cloud Software Engineer focusing on PHP, Python, JS, CI/CD, GitOps, AWS, Azure, Adobe Commerce. I enjoy code for good projects, tech, gym, nature & travel