Custom Iterator Class
Interview insights are lockedSee how often this is asked and which companies asked it with Buncho Pro.Write a custom iterator class NumberIterator(limit) that yields 1, 2, ..., limit and works in a for loop.
Write a custom iterator class NumberIterator(limit) that yields 1, 2, ..., limit and works in a for loop.
Found a mistake in this question?
Locked until you attempt this problem
Log in and submit an answer to get personalised AI feedback.