This one was interesting, some people got it right away (about 1/3) another 1/3 got but took a while and rest got stuck… GPT 4 just states a contraindication lol Same disclaimer of this being one shot thing and me not wasting time prompt meshing etc. PROBLEM: we are trying figure out how to decode part of memory we are observing. We know the part of memory we are observing is an 8 bit unsigned integer (so 0 to max 255 must be represented). Also we know just standard bit operations can be applied to the binary values (or, xor, and, not, right and left shift) in a consistent manner (we apply the same operations always regardless of the original 8 bits) As luck would have it, we know what the binary values equal for the samples below! We split them up four bits a time for ease of reading 1010-1010 = 0 1010-1011 = 1 1010-1000 = 2 1010-1001 = 3 1010-1110 = 4 1010-1111= 5 1010-1100 = 6 1010-1101 = 7 1010-0010 = 8 1000-0000 = 42 1000-0001 = 43 How in general do we decode the 8 bit unsigned integer in this part of memory? Could you tell us what 1100-1001 is equal to (even if ya had to guess)? GPT 4
Solution: Serializing an enum into a number with a non-sequential encoding scheme is poor design, file a bug and keep the software author away from anything important
This a reverse engineering exercise, this comes up in video game hacking a lot
I know it is reverse engineering, I am saying it is a poor question because it is based on a completely nonsensical implementation (unless this is an encoding scheme I dont know about, which I am perfectly willing to concede). There are so many better ways of framing this type of problem and testing an applicant's thinking process.
It can be anything. I can construct a mapping function arbitrarily to fit the data points given.
It can’t be arbitrary since you have to map each number to the binary represention of the decimal number without contradiction and fit all of 0-255 integers Like the first value gives it away HINT
GPT4 isn't 'smart' so that's a silly question It just had more data available to it than you or I will ever have
It’s gets it wrong what???