I meant what is your algorithm, are you summing up the entire numbers A and B every time a set query is made? Sukun Tarachandani IDD Electrical Engineering(2nd year) IIT Roorkee
On Fri, May 4, 2012 at 11:32 PM, Umer Farooq <the.um...@gmail.com> wrote: > They haven't shared the rest of test cases. However, the execution time > difference is extremely high. > > It took about 0.3 and 0.6 sec for the cases in which it executed > successfully. However, it was taking more than 5 sec on test cases in which > it couldn't run. > > > On Fri, May 4, 2012 at 10:26 PM, vIGNESH v <v.v.07121...@gmail.com> wrote: > >> >> Hai >> >> Can you brief about the rest of the cases? >> >> On 4 May 2012 01:56, Umer Farooq <the.um...@gmail.com> wrote: >> >>> Hi friends! >>> >>> I hope that you are doing really good these days. >>> >>> I submitted my code on interviewstreet.com >>> >>> The problem statement can be found on >>> https://www.interviewstreet.com/challenges/dashboard/#problem/4f1c739a6ea3a >>> >>> >>> However, it passed for only two cases and gave a time out error for the >>> rest of cases. Can anyone please tell me where I am lacking? >>> >>> Is there anything I can do to improve the running time of my code? >>> >>> I thought it was because Java runs slower, but they have a greater limit >>> of running time for java code. >>> >>> Please find the code in the attachment. >>> >>> -- >>> Umer >>> >>> -- >>> 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. >>> >> >> -- >> 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. >> > > > > -- > Umer > > -- > 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. > -- 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.