Super learner
This user is a Super Learner. To become a Super Learner, you need to reach Level 8.
Posted on:

21 Jul 2023

0

Missing BigO notation

I think it would be good to explain or challenge the students to guess what is the complexity of these problems. Since the explanation of BigO notation we have not heard any other time about this topic.

Also, it could be explained there why we go populating the stack as we check with each iteration, instead of populating it at the begining and then start the checks. Obviously, it is because that is the optimal solution in terms of saving memory space but it would be worth mentioning. 

0 answers ( 0 marked as helpful)

Submit an answer