Why is laptop 3 unassigned?


Loving the book :smiley:

Clarification question: why is laptop 3 unassigned in the output? I understand why 5 is because of
[employees removeObjectAtIndex:5];

but why 3?

Thx :ugeek:


Laptops are distibuted randomly, some employees may get two laptops.

Just so happened that employee 5 had laptop 3 and also laptop 5.

(On one run of the program, I had the same results. Next run was different.)