Junior — Middle
Which built-in collection is missing from the Swift standard library?
sobes.tech AI
Answer from AI
The Swift standard library does not include a built-in 'LinkedList' collection. Swift has collections such as Array (dynamic array), Set (set), and Dictionary (dictionary), but a linked list must be implemented manually if needed.
This is because Array in Swift is optimized for most tasks, and a linked list is often less efficient due to memory management and caching characteristics.