I have input as two arrays shown below
NSArray *array1=[[NSArray alloc]initWithObjects:@"1",@"2",@"3", nil];
NSArray *array2=[[NSArray alloc]initWithObjects:@"1",@"2",@"1", nil];
the output should resemble like this.
the same element should be cancelled only one time.
NSArray *array3=[[NSArray alloc]initWithObjects:@"1",@"2", nil];
THANKS IN ADVANCE…..
Use
NSCountedSetfor the above situation