| Author |
Comment/Response |
simple
|
02/19/13 9:31pm
I want to make a function. Its domain is set of all lists, and its range is {0,1}. The function value becomes 0 iff the list contains at least one pair of same element. For example,
f({1,3,5,5,9})=0,
f({1,3,3,9,9})=0,
f({1,5,5,5,9})=0,
f({1,3,5,7,9})=1.
I am trying to construct this function, but I could not succeed. Can you help me ?
URL: , |
|