Is this your company?
Placing M ads with N separation between them.
Anonymous
I did some permutations and combinations and came up with a formula going by mathematical induction. The interviewer wanted some code. I still have no idea what he wanted me to solve. He was himself confused.
Check out your Company Bowl for anonymous work chats.