[Tutor] What algorithm suits here

Amit Sethi amit.pureenergy at gmail.com
Wed Jul 13 10:34:14 CEST 2011


I have a list of dictionaries in this form.

{ message : xyz
  parent : 23
  id : 25
}
 or
{ message : abc
parent : None
id : 25
}

{ message : cde
parent : 28
id : 32
}

{ message : cde
parent : 23
id : 35
}

I want to make seperate the lists such that messages in same thread(
The parent message and its child messages } come together . What is
the best algorithm here



-- 
A-M-I-T S|S


More information about the Tutor mailing list