PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Eric! wrote:Looks like an interview question and VladSun is hired.
Heh, after having an M.Sc. in "Video and audio processing" and almost done an PhD in the same area, it would be a shame if I can't recognize it immediately
Though, the implementation shown is somehow naive - if a single or more run lengths are greater than 9, the output can't be decoded unambiguously.
There are 10 types of people in this world, those who understand binary and those who don't