Student Support Forum: 'If same element exists in a list, gives 0.' topicStudent Support Forum > General > "If same element exists in a list, gives 0."

 Next Comment > Help | Reply To Topic
 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: ,

 Subject (listing for 'If same element exists in a list, gives 0.') Author Date Posted If same element exists in a list, gives 0. simple 02/19/13 9:31pm Re: If same element exists in a list, gives 0. Bill Simpson 02/20/13 1:34pm Re: Re: If same element exists in a list, gives... yehuda 02/20/13 3:25pm Re: If same element exists in a list, gives 0. Bill Simpson 02/20/13 4:08pm Re: If same element exists in a list, gives 0. yehuda 02/21/13 3:08pm
 Next Comment > Help | Reply To Topic