Clarizen Interview Question

get(i) set(i,val) setAll(val) given these function, how would you keep the date ? all functions runtime should be O(1)

Interview Answer

Anonymous

Jul 25, 2016

Hint: Hashtable, (i, {version, val}) for setAll - use bool isSetAll