Re: [algogeeks] Re: How to Solve This

2011-10-24 Thread Prabhat Kiran
Correct me if I am wrong, If the given number is lets say 'p'. We have to find N such that N=(10^m-1)/9 for least m,that is divisible by 'p'. (10^m-1)/9 = 0 (mod p) (10^m-1) = 0 (mod p) 10^m = 1 (mod p) Since the given number 'p' always ends with a 3 in its units place, 10^m and p are always

[algogeeks] Re: C output

2011-07-28 Thread prabhat
i think there will be warning due to inner structure is not declaring variable. Inner structure must be like: struct yy { char s; struct xx *p; }a; On Jul 27, 9:22 pm, Aman Goyal aman.goya...@gmail.com wrote: #include‹stdio.h› main() { struct xx { int x; struct yy { char s;      

[algogeeks] Re: Sparse matrix

2011-07-28 Thread prabhat
as far as i know multi linklist it used to store sparse matrix On Jul 27, 11:33 pm, aditi garg aditi.garg.6...@gmail.com wrote: How wud u store a sparse matrix( whch has elemensts only below or abv the diagonal) in memory...what data structure u wud use and y? -- You received this message