call it as : bipartition(a,-1,2) . coz at the very first time k is being incremented so it needs intiiale value -1.
On Sat, Sep 3, 2011 at 8:46 PM, Siddhartha Banerjee <thefourrup...@gmail.com > wrote: > please check out the code, doesnt give right solution on running... > or perhaps i missed something... how should you call your function? if > array is a={1,2,3} you call from main function as > bipartition(a,0,2), right??? > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to algogeeks@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. > -- ........................ *MOHIT VERMA* -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@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.