This is a pretty cool design question that I liked solving. It has the potential to test a lot of fundamental concepts like recursion, iterators, generators etc.
Note: It would definitely help if you have a decent understanding of how iterators and generators work before solving this problem.
Edit: At 15:40 I made a mistake. I wanted to say "the job of unpack is basically to ensure that the top of the stack *is an integer"
Problem link: https://leetcode.com/problems/flatten...
On this page of the site you can watch the video online FLATTEN NESTED LIST ITERATOR | LEETCODE 341 | PYTHON | 3 METHODS - RECURSIVE, ITERATIVE, GENERATORS with a duration of hours minute second in good quality, which was uploaded by the user AniPy 02 February 2023, share the link with friends and acquaintances, this video has already been watched 28 times on youtube and it was liked by 1 viewers. Enjoy your viewing!