HashMap vs Set
In a one-hour coding test you have to find duplicates in a list of customer IDs and also count how often each ID appears. When would you use Swift's Set and when Dictionary?
HashMap vs Set
In a one-hour coding test you have to find duplicates in a list of customer IDs and also count how often each ID appears. When would you use Swift's Set and when Dictionary?
CS fundamentals and algorithmsMultiple choiceIntro
Which of these Swift collection operations have O(1) average time complexity? Select all …
#set #complexity
Performance and debuggingMultiple choiceIntro
With the same 100,000 elements stored in each, which operations are clearly faster on a S…
#set #complexity
CS fundamentals and algorithmsMultiple choiceIntro
You're picking a data structure for the message list on a chat screen. Which is the most …
#complexity
CS fundamentals and algorithmsShort answerBasics
A live feed calls posts.insert(newPost, at: 0) every time a new post arrives. What goes w…
#complexity