Re: [algogeeks] Math problem

2013-05-15 Thread rohit jangid
after few attempts I think you must be getting stuck where you need a^3 + b^3 + c^3 value in terms of abc, C1, and C2 which is possible using this identity-- (a+b+c)³=(a³+b³+c³)+3[(a+b+c)(ab+ac+bc)-abc] refer this link for the proof http://math.stackexchange.com/questions/288965/show-that-abc-a-b

[algogeeks] Math problem

2013-05-15 Thread Soumya Prasad Ukil
If a+b+c=C1 and ab+bc+ac=C2, how do you get abc? C1,C2 are constant. -- regards, soumya prasad ukil -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To unsubscribe from this group and stop receiving emails from it, send an email to algogee

Re: [algogeeks] I am new to CPP STL please help

2013-05-15 Thread Soumya Prasad Ukil
Iterate through index_name, for each value you traverse, now try to find inside name_age by calling find on it. Now if it is found, put it temporary map. Now the iteration is over, clear index_name map. Put all the values from temporary map into _name map. On 9 May 2013 21:40, Nishant Pandey wr