Position of Difference

Design a function @pos_dif(r, s)@ that, given two strings r and s,
returns the first position at which r and s are different. If r and s
are equal, the function must return −1.

Sample session

Problem information

Author: InfBesos

Generation: 2026-01-25T14:54:23.006Z

© Jutge.org, 2006–2026.
https://jutge.org
