Homework help lesson 35: List Unique Items

Create a method uniqueItems. uniqueItems accepts a list of Anys and returns a count of how many of the objects in the list are unique…

The solution allocated 656 bytes to complete the tests,
I tried for in loop, set, map filter many ways to complete the homework but I just got message you use too much memory(19301%).

1 Like

Yes I am wondering the same thing. It would be nice if the console made suggestions to the user on how they can optimize their code. Odd since there seems to be little emphasis on performance or heap usage in these lessons. I would just move on.