Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It's things like this which convince me that I am never going to pass an interview at a decent tech place. When I attempt to write solutions to things like this I make a million mistakes and can never quite get there.

My idea was to create a buffer of 1000 bytes and recursively call a function while each byte is dereferenced until it finally hits a byte which causes a segfault... but I just can't get it working.

The function pointer solution is genius...



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: