Whatsapp sticker problem

1 · Toby Lam · Nov. 21, 2022, midnight
Summary
Motivation In whatsapp, there’s a few rules to how stickers are processed and displayed. If a person sends only one sticker, then that sticker would take up a block of space. If however they send more than one sticker, then 2 stickers could be combined together to form a block. This process is repeated until a different person sends a sticker, where the chain stops and there would be a new block for the stickers the other peron sends. The question is given a sequence of people sending stickers, ...