well element can be placed in two order only s= same d=different
_d _ d _ d _ d _ upto n times their are n+1 gap in between which should be filled by same element so same element can be detected by 1. if atelast one couple of two/more same element filled in one gap ( so check for two consecutive same element) 2. each filled in different gap so check for two same element in three consecutive group -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
