A message encoding of a given non-empty string is a dictionary which contains, for each unique symbol in , an ordered list of the positions where that symbol occurs within .
Implement the function @coder(s)@ such that, given the message , it returns a dictionary where the keys are the unique symbols in , and the values are ordered lists containing the positions at which each symbol appears in .
Author: Professors Informàtica EEBE
Generation: 2026-01-25T13:39:47.610Z
© Jutge.org, 2006–2026.
https://jutge.org