← Back to notebook index

Notebook Topic

Data Structures Algorithms

English topic guide inspired by the original iOS Developer Notebook, expanded for both iOS and Android teams.

What this topic covers

Execution checklist

iOS implementation notes

Android implementation notes

Code examples

Swift

// O(1) lookup for dedupe
var seen = Set()
for id in incoming where !seen.contains(id) { seen.insert(id) }

Kotlin

val seen = hashSetOf()
incoming.filter { seen.add(it.id) }

Reference links

Related topics