The question might be a bit weird for most modern language users but here is how I practically put it. How do you C programmers tackle those questions that require hash set/map? Anyone have a good suggestion on quick/lightweighted approach on building hash structures in C?
There is no build-in hash support in C. You'll need to use hash library.
For instance, uthash is supported in OJ - https://troydhanson.github.io/uthash/userguide.html