[algogeeks] ashutosh kumar wants to chat

2011-08-08 Thread ashutosh kumar
--- ashutosh kumar wants to stay in better touch using some of Google's coolest new products. If you already have Gmail or Google Talk, visit: http://mail.google.com/mail/b-f7153d7ffd-a27a8ddf63-pCyu6qSPZ5UM-C0tEn6Fb8

[algogeeks] ashutosh kumar wants to chat

2011-08-08 Thread ashutosh kumar
--- ashutosh kumar wants to stay in better touch using some of Google's coolest new products. If you already have Gmail or Google Talk, visit: http://mail.google.com/mail/b-f7153d7ffd-581b32ffe3-AjbPSdrpIH54VD00H6pGCn

[algogeeks] ashutosh kumar wants to chat

2011-08-08 Thread ashutosh kumar
--- ashutosh kumar wants to stay in better touch using some of Google's coolest new products. If you already have Gmail or Google Talk, visit: http://mail.google.com/mail/b-f7153d7ffd-065748434d-1fol4afrAuAA64GmyNnfps

[algogeeks] ashutosh kumar wants to chat

2011-08-08 Thread ashutosh kumar
--- ashutosh kumar wants to stay in better touch using some of Google's coolest new products. If you already have Gmail or Google Talk, visit: http://mail.google.com/mail/b-f7153d7ffd-cfd032407e-KZHmME7K0zvwxfziHzswYo

[algogeeks] ashutosh kumar wants to chat

2011-08-08 Thread ashutosh kumar
--- ashutosh kumar wants to stay in better touch using some of Google's coolest new products. If you already have Gmail or Google Talk, visit: http://mail.google.com/mail/b-f7153d7ffd-fc12c282fe-J9JTd_oOJYxmy_XJFJPHs7

[algogeeks] ashutosh kumar wants to chat

2011-08-08 Thread ashutosh kumar
--- ashutosh kumar wants to stay in better touch using some of Google's coolest new products. If you already have Gmail or Google Talk, visit: http://mail.google.com/mail/b-f7153d7ffd-857a5bc484-wFE-GuyngBRbrP_08KJcpK

[algogeeks] ashutosh kumar wants to chat

2011-08-08 Thread ashutosh kumar
--- ashutosh kumar wants to stay in better touch using some of Google's coolest new products. If you already have Gmail or Google Talk, visit: http://mail.google.com/mail/b-f7153d7ffd-938ebb5b8c-5SIjeCp3NHOiR9X0cdT8Tv

[algogeeks] ashutosh kumar wants to chat

2011-08-08 Thread ashutosh kumar
--- ashutosh kumar wants to stay in better touch using some of Google's coolest new products. If you already have Gmail or Google Talk, visit: http://mail.google.com/mail/b-f7153d7ffd-e915305ec1-vs57SHRYPU_JF-E7MuBTtk

[algogeeks] ashutosh kumar wants to chat

2011-08-08 Thread ashutosh kumar
--- ashutosh kumar wants to stay in better touch using some of Google's coolest new products. If you already have Gmail or Google Talk, visit: http://mail.google.com/mail/b-f7153d7ffd-54ab1bb494-5ULZKF1DCAsh4miyEx1Tcd

[algogeeks] ashutosh kumar wants to chat

2011-08-08 Thread ashutosh kumar
--- ashutosh kumar wants to stay in better touch using some of Google's coolest new products. If you already have Gmail or Google Talk, visit: http://mail.google.com/mail/b-f7153d7ffd-c6dea44c4b-1udApfkKCnNpBIb_1L3NPa

[algogeeks] ashutosh kumar wants to chat

2011-08-08 Thread ashutosh kumar
--- ashutosh kumar wants to stay in better touch using some of Google's coolest new products. If you already have Gmail or Google Talk, visit: http://mail.google.com/mail/b-f7153d7ffd-d320cda47c-evQ0hjlzcr8kcQhDUP2hRs

[algogeeks] ashutosh kumar wants to chat

2011-08-08 Thread ashutosh kumar
--- ashutosh kumar wants to stay in better touch using some of Google's coolest new products. If you already have Gmail or Google Talk, visit: http://mail.google.com/mail/b-f7153d7ffd-c8d723e7e1-_0IQlRsmGpldxvgIHXatjd

[algogeeks] ashutosh kumar wants to chat

2011-08-08 Thread ashutosh kumar
--- ashutosh kumar wants to stay in better touch using some of Google's coolest new products. If you already have Gmail or Google Talk, visit: http://mail.google.com/mail/b-f7153d7ffd-cb9a914ca5-4TUkKGpEhfkbc2RPXVIwYt

[algogeeks] ashutosh kumar wants to chat

2011-08-08 Thread ashutosh kumar
--- ashutosh kumar wants to stay in better touch using some of Google's coolest new products. If you already have Gmail or Google Talk, visit: http://mail.google.com/mail/b-f7153d7ffd-44a34ca87f-RI_zoBM4CtEQwCHtKKmZP_

[algogeeks] ashutosh kumar wants to chat

2011-08-08 Thread ashutosh kumar
--- ashutosh kumar wants to stay in better touch using some of Google's coolest new products. If you already have Gmail or Google Talk, visit: http://mail.google.com/mail/b-f7153d7ffd-305e880342-m7ieQIBb_XN3zNTgyXW8uU

[algogeeks] ashutosh kumar wants to chat

2011-08-08 Thread ashutosh kumar
--- ashutosh kumar wants to stay in better touch using some of Google's coolest new products. If you already have Gmail or Google Talk, visit: http://mail.google.com/mail/b-f7153d7ffd-2ad294eb4b-gP0aP8IejAZbUNR6c-k9Ln

[algogeeks] ashutosh kumar wants to chat

2011-08-08 Thread ashutosh kumar
--- ashutosh kumar wants to stay in better touch using some of Google's coolest new products. If you already have Gmail or Google Talk, visit: http://mail.google.com/mail/b-f7153d7ffd-abaf6917fe-3LpxrI4v3ghKvJLlF-oHze

Re: [algogeeks] plz explain output

2010-10-09 Thread Ashutosh Tripathi
hey! i am also unable to explain but one thing i got if we use %d in place of %f,we will get the correct output. we must use %d as x is of int data type.so thq code is itself wrong. or u can change x to float data type -- Ashutosh Tripathi UG Student Computer

Re: [algogeeks] Find push/pop/min or max in O(1)

2010-09-29 Thread Ashutosh Shukla
ya ... but you have to modify the structure .. keep an extra pointer for max and min in each node .. that will point to min and max upto that node .. that means when you enter smthing you have to compare it with previous min and previous max . and set the pointer accordin to try that .. its safe .

[algogeeks] Re: Adobe Question

2010-09-24 Thread Ashutosh
n*ceil(log_2n) On Sep 24, 9:23 am, Krunal Modi wrote: > But, how was it derived ? :( > What is the intuition behind ? :( :( -- 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

Re: [algogeeks] Re: 0's and 1's yet again!!!

2010-08-20 Thread Ashutosh Tamhankar
Here is a C++ version of the algorithm to solve this problem. #include #define TRUE 1 #define FALSE 0 typedef struct Binarr{ int iNumber; }; class binaryarr{ Binarr * arr; public: int iHead; int iSize; int iZeroes; int iOnes; int iTail; binaryarr(void); ~bi

Re: [algogeeks] Re: 0's and 1's yet again!!!

2010-08-19 Thread Ashutosh Tamhankar
Dave, check my pseudo code. Both the tasks of checking if the number of 1s and 0s is equal and sorting the array seems to to work in a single pass. 2010/8/19 Dave > It seems easy enough to put all of the zeros in the even positions and > all of the ones in the odd positions in one pass. The dif

Re: [algogeeks] 0's and 1's yet again!!!

2010-08-19 Thread Ashutosh Tamhankar
element at the tail by going down the tail. Regards Ashutosh Pseudo code of the algorithm head = 0; tail = sizeOfArray; zeros = 0; ones = 0; for (head = 0; head < sizeOfArray; head++) { if head is odd { if array[head] is 0 { zeros = zeros + 1 if tail = head; tail = tail

Re: [algogeeks] 0's and 1's yet again!!!

2010-08-19 Thread Ashutosh Tamhankar
Hi Amit Am I allowed to keep counters to count the number of 1's and 0s right? The condition of not using extra memory is for the array!? Regards Ashutosh 2010/8/18 amit > you are given an array of integers containing only 0s and 1s. you have > to place all the 0s in even positio

[algogeeks] Time complexity - is anybody bothered about it anyway?

2010-08-17 Thread Ashutosh Tamhankar
.. Regards Ashutosh -- 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 opti

Re: [algogeeks] Re: Strings

2010-07-20 Thread Ashutosh Shukla
try it by longest common sequence. then interchange values . then delete and insert or watever.. -- 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,