employer cover photo
employer logo
employer logo

Imagination Technologies

Engaged Employer

Imagination Technologies Interview Question

Minimum space to store 3 strings with 4 characters per string

Interview Answer

Anonymous

Jan 16, 2017

Each string is composed of 4 characters, log2(4) = 2 bits per character rather than 8 bits to store ASCII, store in uint and manually poke bits with bitwise ops).