Although no inputs are given on flight timing (date and time) front but that is one more factor that should be considered while scheduling the cheapest round trip journey as it happens on travel sites normally
On Wed, Oct 13, 2010 at 2:56 PM, Shiyam code_for_life < mailshyamh...@gmail.com> wrote: > When a user wants to choose to fly from A to B, suggest the flight > with lowest fare that's available, here its A1, if A1 is busy then A2 > and so on > Repeat the same for B to A. > > Am I missing something here? > > Complexity is O( (number of flights from A to B) + number of flights > from B to A) ) > > Cheers > > 'Coding is an art' > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to algoge...@googlegroups.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...@googlegroups.com<algogeeks%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algoge...@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.