Skip to content

Instantly share code, notes, and snippets.

View reactivemobile's full-sized avatar

Donal O'Callaghan reactivemobile

View GitHub Profile
import java.util.*
/**
* A basic implementation of a hash map to demonstrate internal workings
*/
class BasicHashMap<K, V> {
private data class Entry<K, V>(val key: K, val value: V)
private val loadFactor = 0.75