Re: [algogeeks] Re: fork() problem
yes ..19 is the correct answer. p(f1) / \ p1 p (f2) (f2) / \ / \ / \ / \ p2 p1 p11 p(f3) (f4) (f3) (f4)/\ / \ /\ /\ / \ /\ / \ / \ / \ p3 p2 p6 p1 f5f5 f4 f5 and so on if fork2 returns zero then fork3 is not executed. -- 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.
Re: [algogeeks] Re: Amazon interview Question (Array yet again!)
i think this prob cannot be solved by DP then... Because anytime a new value coming into the non decreasing sub-array obtained by the DP equation can be disrupted(like in the above example). I think a backtracking approach cud prove useful. (Recursion) anytime we get a new element we can do two things : Either delete it or decrement the previous values equal to it. We do both by calling the same function twice for each element. Plz comment on this... -- 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.
Re: [algogeeks] Re: Simple reVerse
can u plz tel the logic here... -- 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.
Re: [algogeeks] Re: find duplicate and missing element
@ashish: cud u plzz explain a bit more... -- 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.
Re: [algogeeks] Re: Take 5 digit number and find 2 power that number.............
nice... -- 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.
Re: [algogeeks] Re: Amazon interview Question (Array yet again!)
@gene ..if u just give an example herethat will make things more clear... -- 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.
Re: [algogeeks] Re: Subsequence
> @Yan Wang..can u tel me wat u meant by saying the following : > > And we know all the different numbers in A[...]. we put them in a > rigorously increasing sequence B[1..p], where B[1] < B[2] < ... < > B[p-1] < B[p], and for every i from 1 to n, A[i] can be found in > B[1..p]. > -- 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.
Re: [algogeeks] Re: Subsequence
@Yan Wang..can u tel me wat u meant by saying the following : And we know all the different numbers in A[...]. we put them in a rigorously increasing sequence B[1..p], where B[1] < B[2] < ... < B[p-1] < B[p], and for every i from 1 to n, A[i] can be found in B[1..p]. -- 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.
Re: [algogeeks] Re: Converting a decimal number to base -2
can you plzz tel me y -1 is interpreted as 11 ? -- 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.