I have a function that is receiving messages with the following pattern:
(In this picture, "string" and "message" are synonymous.)
I'm only interested in the largest messages, such as these:
over a particular window.
Is there an algorithm that can appropriately filter the messages in the desired manner over a specified window?