given numbers 1 4 2 0 2 0, move all zeros to beginning using minimum sorting technique
Anonymous
NSArray * arrNumbers = @[@1,@4,@2,@0,@2,@0]; arrNumbers = [arTeste sortedArrayUsingSelector:@selector(compare:)]; NSLog(@"Sorted Zeros: = %@",arrNumbers);
Check out your Company Bowl for anonymous work chats.