Re: [algogeeks] Give the logic for it

2011-10-01 Thread Manish Kumar
int median(int arr1[],int arr2[],int N)
{

if(N==2)
{
return ((max(arr1[0],arr1[1])+ min(arr2[0],arr2[1]))/2);
}
int mid=N/2;
if(arr1[mid]==arr2[mid])
 return arr1[mid];
if(arr1[mid]>arr2[mid])
return median(arr1,arr2+N/2,N-N/2);
if(arr1[mid]http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks]

2011-07-25 Thread Manish Kumar
suppose the array is arr[];
set index start and end at the starting and ending of the array.
 sum=arr[start]+arr[end]
check if sumvalue
decrease end index by one
and repeat the process until starthttp://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] C ouput

2011-07-23 Thread Manish Kumar
@Akshata:
Whenever you increase any variable then it increases according to its type.
Here the address of array 'a' is being increased.(  &a+1 ).
so the address of 'a' will temporarily increased to 20 bytes and then that
is assigned to ptr.
so ptr is now pointing to any value in the memory just after the memory
where 5 is stored.
so when we print ptr[-1] it prints "5".

I think it should be clear now.
if not,plz let me inform.

-- 
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 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] Re: If any one have algorithms for interviews by adnan aziz ebook... Please mail ...

2011-04-29 Thread Manish Kumar
please send me this book to my email , thanks" manish.iitia...@gmail.com'



On Sat, Apr 30, 2011 at 6:07 AM, Venkat  wrote:

> Hey how's ur interview?
> if u have the book pls mail me to " gvr.su...@gmail.com "
>
> On Apr 19, 6:19 am, nagajyothi gunti 
> wrote:
> > Please send me too at nagajyothi.gu...@gmail.com
> > Also, please let me know what all to prepare...I have an phone interview
> > from amazon this wednesday.
> >
> > On Mon, Apr 18, 2011 at 2:40 PM, vaibhav agrawal  >wrote:
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > > Please send it to me tooo agrvaib...@gmail.com
> >
> > > On Mon, Apr 18, 2011 at 10:30 PM, Rel Guzman Apaza  >wrote:
> >
> > >> Send to me too. Please. rgap...@gmail.com
> >
> > >> 2011/4/18 Abhishek Goswami 
> >
> > >>> I think we can share into email...that will not be any issue.
> :)
> >
> > >>> On Mon, Apr 18, 2011 at 10:07 PM, Abhishek Goswami <
> > >>> zeal.gosw...@gmail.com> wrote:
> >
> >  can u please me also .. zeal_gosw...@yahoo.com
> >
> >  On Thu, Apr 14, 2011 at 11:50 AM, Himanshu Neema <
> >  potential.himansh...@gmail.com> wrote:
> >
> > > Hi All ,
> > > Yesterday I received an email from Author that this is *violation
> of
> > > Intellectual Property Ownership* ,So kindly please delete pdfs &
> > > please remove all the sharing.
> >
> > > Thanks Guys.
> > > Himanshu
> >
> > > On Thu, Apr 14, 2011 at 10:52 AM, Harshal 
> wrote:
> >
> > >> Thanks :)
> >
> > >> On Thu, Apr 14, 2011 at 9:59 AM, Rajeev Kumar <
> > >> rajeevprasa...@gmail.com> wrote:
> >
> > >>> check this link:
> >
> > >>>
> https://docs.google.com/viewer?a=v&pid=explorer&chrome=true&srcid=1B5...
> >
> > >>> If you have any problem in access,please inform
> me
> >
> > >>> On Thu, Apr 14, 2011 at 1:04 AM, Abhishek Goswami <
> > >>> zeal.gosw...@gmail.com> wrote:
> >
> >  Hi,
> >  I tried to open this book in google docs and got message that
> file
> >  is not avaliable. does this file not available in google docs
> >  if yes , can anybody share this book again
> >
> >  On Tue, Mar 22, 2011 at 10:41 PM, Himanshu Neema <
> >  potential.himansh...@gmail.com> wrote:
> >
> > > Turns out that I cant send file larger than 4 MB , please
> download
> > > it from here , let me know if you're still unable to download:
> >
> > >
> http://dl.dropbox.com/u/2681370/Algorithms%2Bfor%2BInterviews%2B%28sc...
> >
> > > have fun !
> >
> > > On Tue, Mar 22, 2011 at 10:21 PM, Himanshu Neema <
> > > potential.himansh...@gmail.com> wrote:
> >
> > >> Enjoy :)
> >
> > >> On Tue, Mar 22, 2011 at 10:09 PM, Saravanan T <
> > >> mail2sarava...@gmail.com> wrote:
> >
> > >>> ++
> >
> > >>> On Tue, Mar 22, 2011 at 9:51 PM, Anurag atri <
> > >>> anu.anurag@gmail.com> wrote:
> >
> >  and me too :)
> >
> >  On Tue, Mar 22, 2011 at 9:28 PM, Nikhil Mishra <
> >  mishra00...@gmail.com> wrote:
> >
> > > count me too
> >
> > > On Tue, Mar 22, 2011 at 11:16 AM, kunal srivastav <
> > > kunal.shrivas...@gmail.com> wrote:
> >
> > >> plz send it to me too
> >
> > >> On Tue, Mar 22, 2011 at 11:14 AM, D.N.Vishwakarma@IITR <
> > >> deok...@gmail.com> wrote:
> >
> > >>> --
> >
> > >>> *With Regards
> > >>> Deoki Nandan Vishwakarma
> > >>> IITR MCA
> > >>> Mathematics Department
> > >>> *
> >
> > >>> --
> > >>> 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
> > >>>http://groups.google.com/group/algogeeks?hl=en.
> >
> > >> --
> > >> thezeitgeistmovement.com
> >
> > >>  --
> > >> 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
> > >>http://groups.google.com/group/algogeeks?hl=en.
> >
> > >  --
> > > 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] A SIMPLE C++ PROGRAM.

2011-04-29 Thread Manish Kumar
here
y= 1+ 3+4+4= 12
and x=5

here just follow rules of postfix and prefix operator

thanks
manish

-- 
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 
http://groups.google.com/group/algogeeks?hl=en.