[algogeeks] MS Question

2012-03-31 Thread Dheeraj Sharma
. That interviewer didnt needed the code bt the approach.I first told him to hash the threads based on memory location and search for memory clash threads for that memory location,bt he was not understanding how it can be implemented for large no. of threads. -- *Dheeraj Sharma* -- You received

Re: [algogeeks] MS QUESTION_LINKED LIST

2012-03-25 Thread Dheeraj Sharma
. 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. -- *Dheeraj Sharma* -- You received this message because you are subscribed to the Google Groups Algorithm Geeks

[algogeeks] Re: Check if one tree is sub tree of other

2012-03-21 Thread Dheeraj Sharma
, Dheeraj Sharma dheerajsharma1...@gmail.com wrote: How to check if one binary tree is a sub tree of other? Any Solution other then bruteforce? Prototype bool check(node *t1,node *subtree) -- Sent from my mobile device *Dheeraj Sharma* -- You received this message because you

[algogeeks] Check if one tree is sub tree of other

2012-03-20 Thread Dheeraj Sharma
How to check if one binary tree is a sub tree of other? Any Solution other then bruteforce? Prototype bool check(node *t1,node *subtree) -- Sent from my mobile device *Dheeraj Sharma* -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post

[algogeeks] Check if one tree is sub tree of other

2012-03-20 Thread Dheeraj Sharma
How to check if one binary tree is a sub tree of other? Any Solution other then bruteforce? Prototype bool check(node *t1,node *subtree) -- Sent from my mobile device *Dheeraj Sharma* -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post

[algogeeks] Re: Check if one tree is sub tree of other

2012-03-20 Thread Dheeraj Sharma
/ \ 34 / 9 ? On Tue, Mar 20, 2012 at 5:54 PM, Dheeraj Sharma dheerajsharma1...@gmail.com wrote: How to check if one binary tree is a sub tree of other? Any Solution other then bruteforce? Prototype bool check(node

[algogeeks] Re: Check if one tree is sub tree of other

2012-03-20 Thread Dheeraj Sharma
at each node which would ultimately find no matching sub tree. If they are binary search trees, it could be more efficient. Did you mean to ask about binary search trees? Don On Mar 20, 7:24 am, Dheeraj Sharma dheerajsharma1...@gmail.com wrote: How to check if one binary tree is a sub tree

Re: [algogeeks] Array problem

2012-03-14 Thread Dheeraj Sharma
this group at http://groups.google.com/group/algogeeks?hl=en. -- *Dheeraj Sharma* -- 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] Re: Microsoft Interview Question

2012-03-13 Thread Dheeraj Sharma
. 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. -- *Dheeraj Sharma* -- You received this message

Re: [algogeeks] Array problem

2012-03-11 Thread Dheeraj Sharma
://groups.google.com/group/algogeeks?hl=en. -- *Dheeraj Sharma* -- 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] Re: Array Problem

2012-02-15 Thread Dheeraj Sharma
/algogeeks?hl=en. -- *Dheeraj Sharma* -- 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] Re: spoj

2012-02-15 Thread Dheeraj Sharma
this group at http://groups.google.com/group/algogeeks?hl=en. -- *Dheeraj Sharma* -- 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] how to convert a floating point number into binary representation.

2012-01-27 Thread Dheeraj Sharma
. 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. -- *Dheeraj Sharma* -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post

[algogeeks] Colorful Number

2012-01-22 Thread Dheeraj Sharma
approach then O(n^2) -- *Dheeraj Sharma* -- 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

Re: [algogeeks] Dynamic programming question

2011-12-13 Thread Dheeraj Sharma
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. -- *Dheeraj Sharma* -- You

Re: [algogeeks]

2011-12-11 Thread Dheeraj Sharma
element grater than equal to 4 in the subarray 532 is 5. 3) Swap (4,5) : 14532 - 15432 4) Now, as we have identified in step 1 the index of i, we need to reverse the array from A[i+1, n] i.e. in 15(432) (432) needs to be reversed and hence we will get 15234... On Dec 11, 12:43 pm, Dheeraj Sharma

Re: [algogeeks] A bst problem

2011-12-10 Thread Dheeraj Sharma
this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- *Dheeraj Sharma* -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group

Re: [algogeeks]

2011-12-10 Thread Dheeraj Sharma
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. -- *Dheeraj Sharma* -- You received this message because you are subscribed

Re: [algogeeks] Re: Questions

2011-10-28 Thread Dheeraj Sharma
, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- *Dheeraj Sharma* -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send

Re: [algogeeks] Basic Algorithm

2011-10-08 Thread Dheeraj Sharma
. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- *Dheeraj Sharma* -- 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

Re: [algogeeks] Re: Algo

2011-10-07 Thread Dheeraj Sharma
. 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. -- *Dheeraj Sharma* -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group

[algogeeks] Tree Question

2011-10-04 Thread Dheeraj Sharma
of above question) -- *Dheeraj Sharma* -- 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] Tree Question

2011-10-04 Thread Dheeraj Sharma
they are on same level..i am providing answer to your problem in attached file.. check that out.. *Raghav garg On Tue, Oct 4, 2011 at 1:53 PM, Dheeraj Sharma dheerajsharma1...@gmail.com wrote: 1.How to construct a tree from the list representation for ex.- construct tree from (A(B(E(K,L),F

Re: [algogeeks] Re: constant

2011-10-04 Thread Dheeraj Sharma
this group at http://groups.google.com/group/algogeeks?hl=en. -- *Dheeraj Sharma* -- 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] zigzag matrix

2011-10-03 Thread Dheeraj Sharma
, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- *Dheeraj Sharma* -- 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

Re: [algogeeks] MS Question - Median of a BST without using extra space and in O(n)

2011-09-27 Thread Dheeraj Sharma
to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- *Dheeraj Sharma* Comp Engg. NIT Kurukshetra -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group

Re: [algogeeks] Re: MS Question - Median of a BST without using extra space and in O(n)

2011-09-27 Thread Dheeraj Sharma
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. -- *Dheeraj Sharma* -- You received this message because you are subscribed to the Google

Re: [algogeeks] Re : Non Decreasing Numbers

2011-09-25 Thread Dheeraj Sharma
for for 3 answer=? nd for 4 answer=? Sanju :) On Sat, Sep 24, 2011 at 10:39 PM, Dheeraj Sharma dheerajsharma1...@gmail.com wrote: can u plz be more..clear ..with wat the input will consist of.. wat does this mean for 2 answer=55 does that mean..that how many non decreasing digits can

Re: [algogeeks] Searching Problems !!

2011-09-25 Thread Dheeraj Sharma
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. -- *Dheeraj Sharma* Comp Engg. NIT Kurukshetra

Re: [algogeeks] Searching Problems !!

2011-09-25 Thread Dheeraj Sharma
it has some errors..lemme modify it On Sun, Sep 25, 2011 at 10:45 PM, Dheeraj Sharma dheerajsharma1...@gmail.com wrote: Q1 int fun(int arr[],int left,int right,int num) { int mid=(left+right)/2; if(mid==0) return 0; if(mid==num-1) return 1; if( arr[mid]arr[mid

Re: [algogeeks] Amazon Interview Question

2011-09-24 Thread Dheeraj Sharma
0 2 5 ending_index 1 4 6 and so on i hope its much explained... On Sat, Sep 24, 2011 at 10:30 AM, Dheeraj Sharma dheerajsharma1...@gmail.com wrote: char str[100],t; scanf(%s,str); char ch='0

Re: [algogeeks] Amazon OS question

2011-09-24 Thread Dheeraj Sharma
://groups.google.com/group/algogeeks?hl=en. -- *Dheeraj Sharma* Comp Engg. NIT Kurukshetra -- 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] Reverse the string word by word . Can someone tell what is wrong in my code ?

2011-09-24 Thread Dheeraj Sharma
. 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. -- *Dheeraj Sharma* Comp Engg. NIT Kurukshetra -- You received this message because you are subscribed to the Google Groups

Re: [algogeeks] Re : Non Decreasing Numbers

2011-09-24 Thread Dheeraj Sharma
://groups.google.com/group/algogeeks?hl=en. -- *Dheeraj Sharma* Comp Engg. NIT Kurukshetra -- 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

Re: [algogeeks] Amazon Interview Question

2011-09-23 Thread Dheeraj Sharma
to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- *Dheeraj Sharma* Comp Engg. NIT Kurukshetra -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post

Re: [algogeeks] Re: question

2011-09-22 Thread Dheeraj Sharma
. -- *Dheeraj Sharma* Comp Engg. NIT Kurukshetra -- 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] Re: question

2011-09-22 Thread Dheeraj Sharma
... ya u r ryt thnxs for the correction On Thu, Sep 22, 2011 at 1:30 PM, Dheeraj Sharma dheerajsharma1...@gmail.com wrote: @Ratan: i think the next largest here would be 784559 On Thu, Sep 22, 2011 at 12:39 PM, Ratan success.rata...@gmail.com wrote: @kartik : to some extent ur code

Re: [algogeeks] help nedded

2011-09-22 Thread Dheeraj Sharma
. 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. -- *Dheeraj Sharma* Comp Engg. NIT Kurukshetra -- You received this message because you are subscribed to the Google

Re: [algogeeks] help nedded

2011-09-22 Thread Dheeraj Sharma
; } getch(); } On Thu, Sep 22, 2011 at 3:42 PM, Dheeraj Sharma dheerajsharma1...@gmail.com wrote: for 2nd one #includeiostream #includeconio.h using namespace std; int main() { char str[100]; cinstr; char ch=str[0]; int count=0,i=0

Re: [algogeeks] Re: question

2011-09-22 Thread Dheeraj Sharma
; arr[i]=min; i++; } i=len-1; while((arr[i]==i)(i0)) i--; swap(str[i],str[arr[i]],t); if(i0) quicksort(str,arr[i]+1,len-1); coutstr; getch(); } On Thu, Sep 22, 2011 at 3:33 PM, Dheeraj Sharma dheerajsharma1...@gmail.com

Re: [algogeeks] Re: Microsoft Question

2011-09-22 Thread Dheeraj Sharma
this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- *Dheeraj Sharma* Comp Engg. NIT Kurukshetra -- You received this message because you are subscribed to the Google Groups Algorithm Geeks

Re: [algogeeks] Re: question

2011-09-22 Thread Dheeraj Sharma
in sorting as well (similar to counting sort). One pass will do the work. You can print the answer directly afterwards. With Regards Unknown On Thu, Sep 22, 2011 at 4:13 PM, Dheeraj Sharma dheerajsharma1...@gmail.com wrote: in nlog(n) #includeiostream #includeconio.h

Re: [algogeeks] Re: Microsoft Question

2011-09-22 Thread Dheeraj Sharma
at http://groups.google.com/group/algogeeks?hl=en. -- *Dheeraj Sharma* Comp Engg. NIT Kurukshetra -- 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] Re: Question --

2011-09-20 Thread Dheeraj Sharma
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. -- *Dheeraj Sharma* Comp Engg. NIT

Re: [algogeeks] Directi Questions - needed answers

2011-09-17 Thread Dheeraj Sharma
ans 7. - 15 km east and 12 km south of origin On Sat, Sep 17, 2011 at 11:29 AM, Dheeraj Sharma dheerajsharma1...@gmail.com wrote: Ans 8. 62.5 % ??? On Sat, Sep 17, 2011 at 9:11 AM, VIHARRI viharri@gmail.com wrote: 1. Minimum no.of comparisons required to select the 2nd max element

Re: [algogeeks] Directi Questions - needed answers

2011-09-17 Thread Dheeraj Sharma
: i think 2n but may be better solution is posible Ashima M.Sc.(Tech)Information Systems 4th year BITS Pilani Rajasthan On Fri, Sep 16, 2011 at 11:19 PM, Dheeraj Sharma dheerajsharma1...@gmail.com wrote: ans 7. - 15 km east and 12 km south of origin On Sat, Sep 17, 2011 at 11:29 AM

Re: [algogeeks] Directi Questions - needed answers

2011-09-17 Thread Dheeraj Sharma
12 west and 10 south.. i thnk..is the correct one.. On Sat, Sep 17, 2011 at 5:22 PM, Yogesh Yadav medu...@gmail.com wrote: yeah it will be 62.5% On Sat, Sep 17, 2011 at 5:14 PM, Dheeraj Sharma dheerajsharma1...@gmail.com wrote: @ashima...its asking just for pens..and that of alam..so

Re: [algogeeks] Re: royal bank of scotland

2011-09-16 Thread Dheeraj Sharma
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. -- *Dheeraj

Re: [algogeeks] Re: MICROSOFT WRITTEN IN VASAVI

2011-09-15 Thread Dheeraj Sharma
://groups.google.com/group/algogeeks?hl=en. -- *Dheeraj Sharma* Comp Engg. NIT Kurukshetra -- 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] yahoo

2011-09-09 Thread Dheeraj Sharma
...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- *Dheeraj Sharma* Comp Engg. NIT Kurukshetra +91 8950264227 -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send

Re: [algogeeks] Re: yahoo

2011-09-09 Thread Dheeraj Sharma
@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. -- *Dheeraj Sharma* Comp Engg. NIT Kurukshetra +91 8950264227 -- You received this message

[algogeeks] IOCL

2011-09-09 Thread Dheeraj Sharma
can anyone tell me the procedure for IOCL? paper nd all -- *Dheeraj Sharma* Comp Engg. NIT Kurukshetra +91 8950264227 -- 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

Re: [algogeeks] Aps

2011-09-07 Thread Dheeraj Sharma
://groups.google.com/group/algogeeks?hl=en. -- *Dheeraj Sharma* Comp Engg. NIT Kurukshetra +91 8950264227 -- 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

Re: [algogeeks] os

2011-09-07 Thread Dheeraj Sharma
this group at http://groups.google.com/group/algogeeks?hl=en. -- *Dheeraj Sharma* Comp Engg. NIT Kurukshetra +91 8950264227 -- 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

Re: [algogeeks] os

2011-09-07 Thread Dheeraj Sharma
ups...19 i guess On Wed, Sep 7, 2011 at 9:52 PM, Dheeraj Sharma dheerajsharma1...@gmail.comwrote: wats the ans... 21?? On Wed, Sep 7, 2011 at 9:42 PM, vivek goel vivek.thapar2...@gmail.comwrote: can anyone explain me how?? plsss On Wed, Sep 7, 2011 at 9:40 PM

Re: [algogeeks] C output????

2011-09-06 Thread Dheeraj Sharma
to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- *Dheeraj Sharma* Comp Engg. NIT Kurukshetra +91 8950264227 -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group

Re: [algogeeks] Min no of moves

2011-09-05 Thread Dheeraj Sharma
...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- *Dheeraj Sharma* Comp Engg. NIT Kurukshetra +91 8950264227 -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post

Re: [algogeeks] Min no of moves

2011-09-05 Thread Dheeraj Sharma
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. -- *Dheeraj Sharma* Comp Engg

Re: [algogeeks] explain the output..!!

2011-09-05 Thread Dheeraj Sharma
yeah same as sukran.. On Mon, Sep 5, 2011 at 7:55 PM, Dheeraj Sharma dheerajsharma1...@gmail.comwrote: placing 0 before the numbers..makes it in octal notation... On Mon, Sep 5, 2011 at 7:48 PM, Mohit Goel mohitgoel291...@gmail.comwrote: 1) #include stdio.h #include stdlib.h

Re: [algogeeks] MICROSOFT

2011-09-03 Thread Dheeraj Sharma
...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- *Dheeraj Sharma* Comp Engg. NIT Kurukshetra +91 8950264227 -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post

Re: [algogeeks] Pattern Matching

2011-09-03 Thread Dheeraj Sharma
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. -- *Dheeraj Sharma* Comp Engg

Re: [algogeeks] Pattern Matching

2011-09-03 Thread Dheeraj Sharma
for '?' u just increment ur pointer(which is returned by previous one.) by 1.. On Sun, Sep 4, 2011 at 12:09 AM, Dheeraj Sharma dheerajsharma1...@gmail.com wrote: for * it can be like.. for example we have any string say *ab*c*de* it is composed of three strings ..that has to be searched.in

Re: [algogeeks] MICROSOFT

2011-09-03 Thread Dheeraj Sharma
initialize array keeping count? On Sun, Sep 4, 2011 at 12:03 AM, Dheeraj Sharma dheerajsharma1...@gmail.com wrote: count sort in reverse order would help i guess :) On Sat, Sep 3, 2011 at 11:49 PM, mohit verma mohit89m...@gmail.comwrote: Ohh my bad. the complexity should be O(nlogn) + O(mlogm

Re: [algogeeks] Padding....

2011-09-03 Thread Dheeraj Sharma
to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- *Dheeraj Sharma* Comp Engg. NIT Kurukshetra +91 8950264227 -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group

Re: [algogeeks] How to find median of 2 sorted arrays of different length

2011-09-01 Thread Dheeraj Sharma
+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- *Dheeraj Sharma* Comp Engg. NIT Kurukshetra +91 8950264227 -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post

Re: [algogeeks] stack interview question

2011-08-31 Thread Dheeraj Sharma
. -- *Dheeraj Sharma* Comp Engg. NIT Kurukshetra -- 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

Re: [algogeeks] C output

2011-08-31 Thread Dheeraj Sharma
@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. -- *Dheeraj Sharma* Comp Engg. NIT Kurukshetra +91 8950264227 -- You received this message because

Re: [algogeeks] C output

2011-08-31 Thread Dheeraj Sharma
considering On Wed, Aug 31, 2011 at 9:32 PM, Dheeraj Sharma dheerajsharma1...@gmail.com wrote: 8 3 is correct..winshuttle mein aaya tha ;) On Wed, Aug 31, 2011 at 9:30 PM, aditi garg aditi.garg.6...@gmail.comwrote: No sizeof ignores \0 On Wed, Aug 31, 2011 at 9:27 PM, SANDEEP CHUGH

[algogeeks] Two Pointers Missing

2011-08-31 Thread Dheeraj Sharma
A doubly linked list has one Left pointer missing and at some point..one Right pointer missing..how to repair the doubly linked list? ? -- *Dheeraj Sharma* Comp Engg. NIT Kurukshetra +91 8950264227 -- You received this message because you are subscribed to the Google Groups Algorithm Geeks

Re: [algogeeks] Two Pointers Missing

2011-08-31 Thread Dheeraj Sharma
? Sanju :) On Wed, Aug 31, 2011 at 9:23 AM, Dheeraj Sharma dheerajsharma1...@gmail.com wrote: A doubly linked list has one Left pointer missing and at some point..one Right pointer missing..how to repair the doubly linked list? ? -- *Dheeraj Sharma* Comp Engg. NIT Kurukshetra +91

Re: [algogeeks] Re: Two Pointers Missing

2011-08-31 Thread Dheeraj Sharma
* curr = tail; while (curr-left != null) { if (curr-left-right == null) { curr-left-right = curr; } curr = curr-left; } On Aug 31, 10:23 am, Dheeraj Sharma dheerajsharma1...@gmail.com wrote: A doubly linked list has one Left pointer missing and at some point..one Right pointer

Re: [algogeeks] apti????

2011-08-31 Thread Dheeraj Sharma
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. -- *Dheeraj Sharma* Comp

Re: [algogeeks] Re: Two Pointers Missing

2011-08-31 Thread Dheeraj Sharma
the end of the list... Short of scanning the entire heap to find some memory that contains node4's address (somehow) that data is just inaccessible and orphaned now. On Aug 31, 10:44 am, Dheeraj Sharma dheerajsharma1...@gmail.com wrote: i get more clear to my quest.. 1.Doubly Linked List 2

Re: [algogeeks] Re: apti????

2011-08-31 Thread Dheeraj Sharma
options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- *Dheeraj Sharma* Comp Engg. NIT Kurukshetra +91 8950264227 -- 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] query for nit kurukshtra students

2011-08-30 Thread Dheeraj Sharma
+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- *Dheeraj Sharma* Comp Engg. NIT Kurukshetra +91 8950264227 -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post

Re: [algogeeks]

2011-08-30 Thread Dheeraj Sharma
@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. -- *Dheeraj Sharma* Comp Engg. NIT Kurukshetra +91 8950264227 -- You received this message because you

Re: [algogeeks] query for nit kurukshtra students

2011-08-30 Thread Dheeraj Sharma
, Aug 30, 2011 at 12:04 PM, Dheeraj Sharma dheerajsharma1...@gmail.com wrote: yeah it came yesterday..the paper was very easy 1.u have to find loop in linked list.. 2.u are given a number..you have to print it down to zero(subtracting 5) and then print from 0 to that number(adding 5) without

Re: [algogeeks] Probability

2011-08-29 Thread Dheeraj Sharma
@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. -- *Dheeraj Sharma* Comp Engg. NIT Kurukshetra +91 8950264227 -- You received this message because

Re: [algogeeks] Probability

2011-08-29 Thread Dheeraj Sharma
://groups.google.com/group/algogeeks?hl=en. -- *Dheeraj Sharma* Comp Engg. NIT Kurukshetra +91 8950264227 -- 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

Re: [algogeeks] String Reverse

2011-08-29 Thread Dheeraj Sharma
. -- *Dheeraj Sharma* Comp Engg. NIT Kurukshetra +91 8950264227 -- 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] informatica

2011-08-29 Thread Dheeraj Sharma
, 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. -- *Dheeraj Sharma* Comp Engg. NIT Kurukshetra +91 8950264227 -- You received

Re: [algogeeks] Re: bits

2011-08-28 Thread Dheeraj Sharma
this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- *Dheeraj Sharma* Comp Engg. NIT Kurukshetra +91 8950264227 -- You received this message because you are subscribed to the Google Groups

Re: [algogeeks] Some bit manipulation help

2011-08-28 Thread Dheeraj Sharma
. -- *Dheeraj Sharma* Comp Engg. NIT Kurukshetra +91 8950264227 -- 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] Rotating 1D array clockwise

2011-08-27 Thread Dheeraj Sharma
whole array. 6 7 8 1 2 3 4 5. solution for anti-clockwise : See Reverse first k and last n-k numbers e.g. 3 2 1 8 7 6 5 4 now reverse whole array. 4 5 6 7 8 1 2 3 Hope u got it. Sanju :) On Fri, Aug 26, 2011 at 10:49 PM, Dheeraj Sharma dheerajsharma1...@gmail.com wrote: How

Re: [algogeeks] maximum XOR

2011-08-27 Thread Dheeraj Sharma
?hl=en. -- *Dheeraj Sharma* Comp Engg. NIT Kurukshetra +91 8950264227 -- 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] apti!

2011-08-27 Thread Dheeraj Sharma
ans is 20 *Stop Cramming Start Thinking* -- *Dheeraj Sharma* Comp Engg. NIT Kurukshetra +91 8950264227 -- 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

Re: [algogeeks] Given an array A[] and a integer num. Find four no.s in the array whose sum is equal to given num.

2011-08-27 Thread Dheeraj Sharma
/group/algogeeks?hl=en. -- *Dheeraj Sharma* Comp Engg. NIT Kurukshetra +91 8950264227 -- 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] Tejas networks

2011-08-27 Thread Dheeraj Sharma
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. -- *Dheeraj Sharma* Comp Engg. NIT Kurukshetra +91 8950264227 -- You received this message

[algogeeks] Rotating 1D array clockwise

2011-08-26 Thread Dheeraj Sharma
How to rotate 1d array of length clockwise 'k' times?? (1,2,3,4,5,6,7,8)-(4,5,6,7,8,1,2,3) for k=3 n= 8 Give solutions which do not swap the array k times!! i.e less than O(nk) -- *Dheeraj Sharma* Comp Engg. NIT Kurukshetra +91 8950264227 -- You received this message because you

Re: [algogeeks] Re: Concept of Pointer

2011-08-24 Thread Dheeraj Sharma
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. -- *Dheeraj Sharma* Comp Engg. NIT

Re: [algogeeks] Re: C dot

2011-08-23 Thread Dheeraj Sharma
, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- *Dheeraj Sharma* Comp Engg. NIT Kurukshetra +91 8950264227 -- You received this message because you are subscribed to the Google Groups Algorithm

Re: [algogeeks] Linklist question

2011-08-23 Thread Dheeraj Sharma
/algogeeks?hl=en. -- *Dheeraj Sharma* Comp Engg. NIT Kurukshetra +91 8950264227 -- 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] probability ques

2011-08-23 Thread Dheeraj Sharma
://groups.google.com/group/algogeeks?hl=en. -- *Dheeraj Sharma* Comp Engg. NIT Kurukshetra +91 8950264227 -- 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

Re: [algogeeks] Re: probability ques

2011-08-23 Thread Dheeraj Sharma
ok thanks On Wed, Aug 24, 2011 at 10:02 AM, Dave dave_and_da...@juno.com wrote: @Dheeraj: Because there are 98 numbers between 1 and 100. They are 2, 3, 4, ..., 99. It is a matter of semantics. 1 and 100 are not between 1 and 100. Dave On Aug 23, 11:21 pm, Dheeraj Sharma dheerajsharma1

Re: [algogeeks] Re: binary tree ques

2011-08-23 Thread Dheeraj Sharma
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. -- *Dheeraj Sharma* Comp Engg. NIT

Re: [algogeeks] array problem

2011-08-21 Thread Dheeraj Sharma
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. -- *Dheeraj Sharma* Comp Engg

Re: [algogeeks] array problem

2011-08-21 Thread Dheeraj Sharma
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. -- *Dheeraj Sharma* Comp Engg. NIT Kurukshetra +91 8950264227 -- You received

Re: [algogeeks] array problem

2011-08-21 Thread Dheeraj Sharma
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. -- *Dheeraj Sharma* Comp Engg. NIT Kurukshetra +91 8950264227

Re: [algogeeks] matrix

2011-08-21 Thread Dheeraj Sharma
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. -- *Dheeraj Sharma* Comp Engg. NIT Kurukshetra +91 8950264227

Re: [algogeeks]

2011-08-21 Thread Dheeraj Sharma
email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- *Dheeraj Sharma* Comp Engg. NIT Kurukshetra +91 8950264227 -- You received this message because you are subscribed to the Google Groups Algorithm Geeks

  1   2   >