Re: [algogeeks] Find the path in two nodes of a binary search tree

2012-01-02 Thread Abhishek Gupta
. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- Thanks Regards Abhishek Gupta BITS, Pilani -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks

Re: [algogeeks] without using '-'

2011-09-26 Thread Abhishek Gupta
email to algogeeks@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. -- Thanks Regards Abhishek Gupta -- You received this message because you

[algogeeks] ftell problem

2011-09-20 Thread Abhishek Gupta
Guys what is the difference between ftell(fp)1 and ftell(fp) 0?? ... Abhishek Gupta -- 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

Re: [algogeeks] URGENT suggestion REGARDING placement...............

2011-09-17 Thread Abhishek Gupta
/algogeeks?hl=en. -- --- Regards, Abhishek Gupta MCA NIT Calicut Kerela -- 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

Re: [algogeeks]

2011-08-25 Thread Abhishek Gupta
. 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. -- Abhishek Gupta MCA NIT Calicut Kerela -- You received this message because you are subscribed to the Google Groups Algorithm

Re: [algogeeks] Re: Adobe Interview Puzzles Urgent !!

2011-08-19 Thread Abhishek Gupta
(root2-1)R/root2+1?? On Fri, Aug 19, 2011 at 8:03 PM, Greeshma greeshma.0...@gmail.com wrote: is it (root 2 - 1) * R ? -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To view this discussion on the web visit

[algogeeks] Re: Any body have idea about samsung india recruitment...

2011-08-18 Thread Abhishek gupta
search the group -- 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/-/-uBb8iSPXTQJ. To post to this group, send email to algogeeks@googlegroups.com. To

Re: [algogeeks] Algorithms for Interviews _scan ocr_.pdf

2011-08-13 Thread Abhishek gupta
@aditi: like.. -- 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/-/QT0UrDjFSoEJ. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe

Re: [algogeeks]

2011-08-12 Thread Abhishek gupta
earlier it has been posted in the group that check the size of pointer variable, if it is 2b then 16 bit 4b then 32 bit 8b then 64 bit -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To view this discussion on the web visit

[algogeeks] Re: Problems on Linked List

2011-08-12 Thread Abhishek gupta
Q2). i think for second question it will be enough to just swap the data of current node to next node, and delete the next node. it will be like, //for swap int temp=current-data; current-data=current-next-data; current-next-data=temp; //for delete struct node *temp; temp=current-next;

Re: [algogeeks] an array question

2011-08-12 Thread Abhishek Gupta
Regards Abhishek Gupta BITS, Pilani -- 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]

2011-08-11 Thread Abhishek Gupta
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 http://groups.google.com/group/algogeeks?hl=en. -- Abhishek Gupta MCA NIT Calicut Kerela -- You received

Re: [algogeeks] Preprocessor Help !!

2011-08-10 Thread Abhishek Gupta
Answer 2) To prevent use of NULL with any other variable instead of 0(zero), it is set at void pointer. for ex, you cannot use in C like this, a=b+NULL; but, i think, in C++ you can do. -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To view

[algogeeks] Re: Normalised !!

2011-08-09 Thread Abhishek Gupta
binary values are stored in reverse order of byte by byte. in your case, bytes will be stored as, 10101100 0100 -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To view this discussion on the web visit

[algogeeks] Link list problem..

2011-08-08 Thread Abhishek Gupta
In a linkedlist we have lost the head pointer and currently we are in the middle(anywhere) of list. Is it possible to delete the previous node of the current pointer. -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To view this discussion on

Re: [algogeeks] Link list problem..

2011-08-08 Thread Abhishek Gupta
okay.. -- 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/-/6Diby2oBmy4J. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from

Re: [algogeeks] Link list problem..

2011-08-08 Thread Abhishek Gupta
actually someone has asked me. he is saying that it is possible and the funny thing is that he also doesn't know the solution.. -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To view this discussion on the web visit

[algogeeks] Re: Link list problem..

2011-08-08 Thread Abhishek Gupta
Errata: sorry guys.. there is a change in the problem.. actually we have to INSERT a NEW NODE before the current pointer. Now tell is it possible.. or again it is a stupid question.. -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To view

[algogeeks] Max subarray of no 2 adjacent elements

2011-08-01 Thread Abhishek Gupta
let the array be A={ 3,5,7,10} then it should give output as 13 (3+10) In short, we need to find the possible maximum sum such that no 2 elements in the subarray has 2 elements adjacent. there is no bound on the size of subarray. -- Abhishek Gupta MCA NIT Calicut Kerela -- You received

Re: [algogeeks] Odd one out

2011-08-01 Thread Abhishek Gupta
duplicates or using hash tables?? Q2- Same qn is like all except one are repeated off no. of times and one element repeated even no. of times. find that element. (no specification for X-OR use given) Ans- Again, I tried it using hash table. -- Abhishek Gupta MCA NIT Calicut Kerela -- You

Re: [algogeeks] Max subarray of no 2 adjacent elements

2011-08-01 Thread Abhishek Gupta
/algogeeks?hl=en. -- Abhishek Gupta MCA NIT Calicut Kerela -- 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

Re: [algogeeks] Max subarray of no 2 adjacent elements

2011-08-01 Thread Abhishek Gupta
@Prakash can you post your solution please On Mon, Aug 1, 2011 at 1:39 PM, Abhishek Gupta gupta.abh...@gmail.comwrote: @Kartik we cant choose adjacent elements. for ex A={5,2,1,7,9,11} then we will have 5+7+11 can any one give any algo for this thank you On Mon, Aug 1, 2011 at 1:25 PM

[algogeeks] Google Interview Question

2011-08-01 Thread Abhishek Gupta
: A= {5,d,1,r,4,a}; -- Abhishek Gupta MCA NIT Calicut Kerela -- 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

Re: [algogeeks] Max subarray of no 2 adjacent elements

2011-08-01 Thread Abhishek Gupta
. On Mon, Aug 1, 2011 at 1:39 PM, Abhishek Gupta gupta.abh...@gmail.comwrote: @Prakash can you post your solution please On Mon, Aug 1, 2011 at 1:39 PM, Abhishek Gupta gupta.abh...@gmail.comwrote: @Kartik we cant choose adjacent elements. for ex A={5,2,1,7,9,11} then we will have 5+7+11

[algogeeks] Front/end operations

2011-08-01 Thread Abhishek Gupta
from top to bottom and another through bottom to top.. ex : top1=0, top2=n-1 where n is size of stack. and use top1 to insert elements to index 0..1..2... and top2 to insert elements to index n-1..n-2..n-3 -- Abhishek Gupta MCA NIT Calicut Kerela -- You received this message because you

Re: [algogeeks] [offtopic] Something to share for those preparing for Amazon Campus Interviews!

2011-08-01 Thread Abhishek Gupta
email to algogeeks@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. -- Abhishek Gupta MCA NIT Calicut Kerela -- You received this message because you

Re: [algogeeks] Max subarray of no 2 adjacent elements

2011-08-01 Thread Abhishek Gupta
exclude maxElement, (maxElement+1) and (maxElement-1) in the comparision ) save this position to secondElementRequired variable This takes O ( n ) return array[ maxElement ] + array [secondElementRequired ] Thank you, Samba On Mon, Aug 1, 2011 at 5:31 AM, Abhishek Gupta gupta.abh

Re: [algogeeks] Max subarray of no 2 adjacent elements

2011-08-01 Thread Abhishek Gupta
max possible sum of 2 elements excluding adjacent ones.. sorry guys. On Mon, Aug 1, 2011 at 8:54 AM, Abhishek Gupta gupta.abh...@gmail.comwrote: @samba i think you didnt get the question. On Mon, Aug 1, 2011 at 5:56 PM, Samba Ganapavarapu sambasiv...@gmail.com wrote: Step 1 Find

[algogeeks] Odd one out

2011-07-31 Thread Abhishek Gupta
is like all except one are repeated off no. of times and one element repeated even no. of times. find that element. (no specification for X-OR use given) Ans- Again, I tried it using hash table. -- Abhishek Gupta MCA NIT Calicut Kerela -- You received this message because you are subscribed

Re: [algogeeks] Re: Direct - i ques

2011-07-31 Thread Abhishek Gupta
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 http://groups.google.com/group/algogeeks?hl=en. -- Abhishek Gupta

Re: [algogeeks] Re: C doubt

2011-07-31 Thread Abhishek Gupta
@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. -- Abhishek Gupta MCA NIT Calicut Kerela -- You received this message because you are subscribed

Re: [algogeeks] Termination

2011-07-31 Thread Abhishek Gupta
...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- Abhishek Gupta MCA NIT Calicut Kerela -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks

Re: [algogeeks] Termination

2011-07-31 Thread Abhishek Gupta
..? On 7/31/11, Abhishek Gupta gupta.abh...@gmail.com wrote: compiler : gcc, OS : Fedora 15 I use ctrl + d to put EOF in files. you can verify it through this code #includestdio.h int main(int argc,char *argv[]) {int c; while((c=getchar())!=EOF

Re: [algogeeks] Re: Direct - i ques

2011-07-31 Thread Abhishek Gupta
: the operation is nt extract min ... its *find* min ... On Sun, Jul 31, 2011 at 3:02 PM, Abhishek Gupta gupta.abh...@gmail.comwrote: @shubham maheshawari deletion can't be performed in O(1). after extracting the min element, we need to find the next minimum element, and worst case will take O(n) time

Re: [algogeeks] Any help on bits?

2011-07-31 Thread Abhishek Gupta
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 http://groups.google.com/group/algogeeks?hl=en. -- Abhishek Gupta MCA NIT Calicut Kerela -- You received

Re: [algogeeks] Re: Amazon

2011-07-30 Thread Abhishek Gupta
://groups.google.com/group/algogeeks?hl=en. -- Abhishek Gupta MCA NIT Calicut Kerela -- 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

Re: [algogeeks] Re: adobe written round que

2011-07-30 Thread Abhishek Gupta
. 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. -- Abhishek Gupta MCA NIT Calicut Kerela -- You received this message because you are subscribed to the Google Groups Algorithm

[algogeeks] printing integer of more than 4 bytes

2011-07-30 Thread Abhishek Gupta
? -- Abhishek Gupta MCA NIT Calicut Kerela -- 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