Python quizzes: #collections

5 quizzes about #collections, with an explanation for every answer.

5 collections Hard Use Counter, defaultdict, deque and namedtuple, and know their surprising behaviours. Python · Libraries & Files #collections#standard-library 10 questions · ~8 min Not started Start
1 ArrayList Easy Add, read, replace and remove elements in a Java ArrayList and avoid the immutable-list traps. Java · Java Collections #collections#list 10 questions · ~5 min Not started Start
2 HashMap Medium Store, update and look up key-value pairs in a Java HashMap and avoid the null and hashCode traps. Java · Java Collections #collections#map 10 questions · ~6 min Not started Start
3 HashSet Medium Keep unique values in Java sets and understand how equals and hashCode decide what a duplicate is. Java · Java Collections #collections#set 10 questions · ~6 min Not started Start
4 Iterators & ConcurrentModificationException Hard Remove elements while looping without ConcurrentModificationException, skipped items or surprises. Java · Java Collections #collections#gotchas 10 questions · ~8 min Not started Start

Other tags: