Two sum problem gives address sanitizer error for specific input of [0,4,3,0] with target 0
struct hashmap { int key; int val; }; int hash_find(int num, int size, struct hashmap* hash) { int k, i; for(i = 0; i < size; i++) { k = (num + i) % size; if(hash[k].key == num) return hash[k].val; } return -1; } void hash_add(int num, int size, int index, struct hashmap* hash) { […]