Skip to content

Opening book details…

About this document

Professor X by abinashrock619 is a document available to read on EtoBox.

Professor X has developed a machine that can transmit messages character by character until it encounters a different character, at which point it erases the message and starts over. Given an input string, the task is to find the longest message that can be delivered by finding the longest contiguous substring with identical characters. For the input string "aabbcc", the longest message would be "cc".

Author
abinashrock619
Language
EN