Actually, no claim of equivalence was made. As an exercise, determine in what situations the two expressions are equivalent.if not (1 <= i <= *s) then ... if *s < i < 1 then ...
s
, to produce
another string that contains the characters of s
in alphabetical
order with duplicate characters removed:
Problem: Write a procedurestring(cset(s))
anagram(s)
that produces
a string consisting of the characters in s
in alphabetical
order, but without the deletion of duplicates. For example,
should produceanagram("hello")
ehllo
.