Re: [algogeeks] output

2013-12-09 Thread Tamanna Afroze
I got some other outputs.. when line 6 isn't commented i got 3 1 2 3, i m using turbo c++ compiler.. On Fri, Dec 6, 2013 at 8:17 AM, pawan yadav pawan1991ya...@gmail.comwrote: Hi All, I'm not able to get output of following c program : #includestdio.h main() { int a[] ={

Re: [algogeeks] output

2013-12-09 Thread Tamanna Afroze
i think because of operator the program is working differently... also there is four data value print operation.. On Mon, Dec 9, 2013 at 2:34 AM, Tamanna Afroze afroze...@gmail.com wrote: I got some other outputs.. when line 6 isn't commented i got 3 1 2 3, i m using turbo c++ compiler

Re: [algogeeks] Ternary operators

2012-10-30 Thread Tamanna Afroze
both codes are same. Where is the difference? -- 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

Re: [algogeeks] Ternary operators

2012-10-30 Thread Tamanna Afroze
sorry for my last post, i didn't look carefully at the code. I think without bracket the ternary expression is incomplete, that's why; first code doesn't compile correctly. On Wed, Oct 31, 2012 at 9:51 AM, Tamanna Afroze afroze...@gmail.com wrote: both codes are same. Where is the difference

Re: [algogeeks] Prolog...

2012-10-22 Thread Tamanna Afroze
I think heredity(bird,X)- can(bird,X), have (bird,X), subclass(bird,X). On Sat, Oct 20, 2012 at 3:06 AM, Victor Manuel Grijalva Altamirano kavic1.mar...@gmail.com wrote: Hi, i am new programming with prolog, i hav the next sentence... can(bird,fly). have(bird,wings). subclass(bird,animal).

Re: [algogeeks] how many times you can write that word using subsets of the string

2011-12-28 Thread Tamanna Afroze
how? -- 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

Re: [algogeeks] Re: how many times you can write that word using subsets of the string

2011-12-28 Thread Tamanna Afroze
This is really an interesting problem. If it is searched from the left to right the most possible subset is 7 and for the 8th number we have to track from right to left. -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group,

Re: [algogeeks] Re: Frequency Sort Algo

2011-12-26 Thread Tamanna Afroze
This problem is very old and O(NlgN) may be the best runtime . -- 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

Re: [algogeeks] Re: Infinite Array

2011-09-30 Thread Tamanna Afroze
as the array is sorted binary search is the best option... -- 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

Re: [algogeeks] urgent soln needed

2011-09-30 Thread Tamanna Afroze
if(matrix[i][j]==0){ for(int j=0;jn;j++) matrix[i][j]=0; } -- 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

Re: [algogeeks] Segment Tree Optimization

2011-09-27 Thread Tamanna Afroze
The code is already optimized... -- 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

Re: [algogeeks] Segment Tree Optimization

2011-09-27 Thread Tamanna Afroze
nice link:: @shady -- 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

Re: [algogeeks] Re: prime factorization algo

2011-09-20 Thread Tamanna Afroze
haveFactor() function checked the factor of a number. if a number has a factor other than 1 and itself it isn't prime. Operation function does the rest of the thing, i.e. file reading and file writing and looping throgh the file's input. Does that make sense? Pz let me know. -- You received

Re: [algogeeks] Re: prime factorization algo

2011-09-20 Thread Tamanna Afroze
I checked whether th enuber s divisible by 2 nd 3 repeatedly... I got no other number which aren't divisible by these two numbers. nd I am done. Tht's all abhinav. Tamanna -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group,

Re: [algogeeks] Re: prime factorization algo

2011-09-20 Thread Tamanna Afroze
Thanks to all for the nice suggestions. thanks @abhianv and @siddhart. I will try all the suggestions.. Tamanna -- 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

Re: [algogeeks] Re: prime factorization algo

2011-09-20 Thread Tamanna Afroze
@abhinav I think time complexity will be higher for that algorithm -- 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

Re: [algogeeks] Easy Dp problem

2011-09-16 Thread Tamanna Afroze
couldn't understand the problem -- 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

[algogeeks] A logical Question

2011-09-15 Thread Tamanna Afroze
*If you are on a boat and you throw out a suitcase, Will the level of water increase.* -- 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

Re: [algogeeks] Math Puzzle

2011-09-14 Thread Tamanna Afroze
yah the ans is 3 -- 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

Re: [algogeeks] Math Puzzle

2011-09-14 Thread Tamanna Afroze
P+Q = -R (P+Q)3 = -R3 P3+Q3+3PQ(P+Q) = -R3 P3+Q3+R3 = =3PQ(P+Q) P3+Q3+R3 = 3PQR NOW, P2/QR+Q2/PR+R2/PQ=(P3+Q3+R3)PQR = 3 -- 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

Re: [algogeeks]

2011-07-06 Thread Tamanna Afroze
I think C++ has some advanced feature for memory allocation like new. On Wed, Jul 6, 2011 at 6:34 PM, Piyush Sinha ecstasy.piy...@gmail.comwrote: Why is it suggested not to use malloc() or calloc() in C++ for memory allocation? -- *Piyush Sinha* *IIIT, Allahabad* *+91-8792136657*

[algogeeks] Grouop activity

2011-07-06 Thread Tamanna Afroze
Hi All, This group is very active and useful. Very useful to shre information related to algorithms, its problem and solution. -- Best Regards, *Tamanna Afroze* -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send

Re: [algogeeks] image processing

2011-06-20 Thread Tamanna Afroze
at http://groups.google.com/group/algogeeks?hl=en. -- Best Regards, *Tamanna Afroze* *Linux Developer*** *EXLING LLC*** [image: logo] *House 3G, Road No 104, Suite B4, Gulshan 2, Dhaka - 1212, Bangladesh.*** *Direct Cell: (880) 1711-059642 Tel: (8802)-881-8687 Fax: (8802)-881-8688