[algogeeks] Please suggest good book on permutations and combinations

2012-09-02 Thread g4ur4v
Lot of programming problems test really test your math skills especially permutation and combinations.Please suggest a good book that I should buy. -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To view this discussion on the web visit ht

[algogeeks] Coins on the table-question taken up from interviewstreet-please help me out with this problem

2012-08-15 Thread g4ur4v
You have a rectangular board consisting of n rows , numbered from 1 to n and m columns , numbered from 1 to m . Initially - at time 0 - there is a coin on the bottom-left cell of your board. Each cell of your board contains one of these letters: *, exactly one of your cells has letter * U, I

[algogeeks] Given an array of 32bit unsigned integers in which every number appears exactly twice except three of them, find those three numbers in O(n) time using O(1) extra space

2012-08-12 Thread g4ur4v
-- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To view this discussion on the web visit https://groups.google.com/d/msg/algogeeks/-/La5cAv04gqQJ. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this gro

[algogeeks] Re: candies - interviewstreet -- how to go about solving this problem

2012-07-10 Thread g4ur4v
@sumit the sequence is fixed -- 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 opti

[algogeeks] candies - interviewstreet -- how to go about solving this problem

2012-07-08 Thread g4ur4v
Alice is a teacher of kindergarten. She wants to give some candies to the children in her class. All the children sit in a line and each of them has a rating score according to his or her usual performance. Alice wants to give at least 1 candy for each children. Because children are somehow jeal

[algogeeks] Coin On The Table

2012-06-19 Thread g4ur4v
Please suggest how to go about solving the following question... https://www.interviewstreet.com/challenges/dashboard/#problem/4fb12fb9cb75b -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@google

[algogeeks] Differentiate the following declarations.

2012-06-06 Thread g4ur4v
1. const char *a; 2. char* const a; 3. char const *a; For each of the above, which operation below is legal and which is not? *a='F' a ="Hi" -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@goo

[algogeeks] What would be the output for the following code fragment?

2012-06-06 Thread g4ur4v
main() { int i=300; char *ptr = &i; *++ptr=2; printf("%d",i); } -- 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+unsubs

[algogeeks] Amazon : Find popular cost

2012-05-31 Thread g4ur4v
How to find popular cost of the books, say book1 $10 book2 $20 book3 $40 book4 $50 book5 $10 book6 $20 http://www.careercup.com/question?id=13720752 -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, se

[algogeeks] The following problem is a variation of "Tower of hanoi" problem...Plz suggest on how to approach the following problem...

2012-05-30 Thread g4ur4v
There are K pegs. Each peg can hold discs in decreasing order of radius when looked from bottom to top of the peg. There are N discs which have radius 1 to N; Given the initial configuration of the pegs and the final configuration of the pegs, output the moves required to transform from the initial

[algogeeks] money matters

2011-10-05 Thread g4ur4v
how to approach this problem http://www.codechef.com/problems/MONEY -- 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+unsu

[algogeeks] rise and fall of power

2011-10-03 Thread g4ur4v
can anyone please help me on how to approach this problem=> http://www.codechef.com/problems/MARCHA4 -- 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 gro

[algogeeks] test the following code with the data given

2011-10-03 Thread g4ur4v
Original question=> http://www.codechef.com/problems/WORDS1 code=> #include #include #include //#include int compare(const void *a,const void *b) { const char *a_=*(const char **)a; const char *b_=*(const char **)b; return(strcmp((char *)a_,(char *)b_)); } int main() { int t,n,i