View Single Post
Old 05-05-2007, 01:35 PM   #5 (permalink)
match000
Psycho
 
your partner's solution does not take care of the case where the userID has a single occurence AND has a query of '-'.

my soln offers one way of taking care of this..

also for my soln, move j++ inside the if block that has the print statement. i am assuming j counts the number of userID (blocks) printed..
match000 is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43