[algogeeks] Popular Puzzle of the week

2011-04-17 Thread Lavesh Rawat
Hi,

Based on most comments, The popular puzzle of the last week is

*
http://dailybrainteaser.blogspot.com/2011/04/math-prime-number-puzzle-15april.html?lavesh=lavesh
*


*Please subscribe and follow this blog to show your liking to the blog*

-- 
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.



[algogeeks] MATLAB

2011-04-17 Thread Vishnutej
Can anyone send the resources to learn MATLAB?
Thanks in advance.

-Vishnutej.Mylavarapu

-- 
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: Finding non-repetitive element from an Array with complexity n

2011-04-17 Thread sravanreddy001

@subharansu 

When I meant the n/2 space in worst case, assuming u have 1 million total 
numbers(n), and according to the problem, 
it can have single non-repitive number. soo.. 99 entires will comprise 
of at max 99/2 values.. assumuing.. none of them repeated more than 
twice

Actaully.. I was not considering the additional space to store the counts, 
with out that its n/2 space.. anyway.. if its n/2 or n... its O(n)


-- 
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.



[algogeeks] Sources~websites and materials~ for the algorithms.

2011-04-17 Thread sravanreddy001
Hi,

Can anyone share the places or locations for the algorithmic challenges, 
puzzles etc.
here are few I know.

thealgorithmist.com (google it) -- Its not active now... but has previous 
good set of articles..
topcoder -- really good

this site.. :P

please post all relevent sites... :)

-- 
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] Sources~websites and materials~ for the algorithms.

2011-04-17 Thread Praveen Kumar
www.codechef.com
www.spoj.ol

On Sun, Apr 17, 2011 at 11:00 PM, sravanreddy001
sravanreddy...@gmail.comwrote:

 Hi,

 Can anyone share the places or locations for the algorithmic challenges,
 puzzles etc.
 here are few I know.

 thealgorithmist.com (google it) -- Its not active now... but has previous
 good set of articles..
 topcoder -- really good

 this site.. :P

 please post all relevent sites... :)

  --
 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.
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: Finding non-repetitive element from an Array with complexity n

2011-04-17 Thread Manish Pathak
I think ,Gunjan's solution is right.


suppose  {1,2,1,3,2} is given,
1  ---  01
2    10
3  -  11
..
..
..

So XOR these elements   01  XOR  10  --- 11
  11 XOR  01   --- 10
   10 XOR 11   ---  01
   01 XOR 10   ---  11(3)


So answer is 3.
Any query???
-- 

Thanks and Regards,

Manish Pathak **
TimesJobs.com
Mo.  9015687266

-- 
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: Finding non-repetitive element from an Array with complexity n

2011-04-17 Thread sravanreddy001
can u explain ur solution with one of these sets?

{1,2,1,3,2,1}
{1,2,1,3,2,2}

an element can repeat for any number of times = 2

-- 
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: Finding non-repetitive element from an Array with complexity n

2011-04-17 Thread ashish agarwal
to get the non repeating element we have to travese array atleast once.so
Time complixity has to minimum o(n).as I suppose..
The XOr solution will fail because odd number will be there...
Hashing itself require o(n) space in worst case.



On Mon, Apr 18, 2011 at 12:40 AM, sravanreddy001
sravanreddy...@gmail.comwrote:

 can u explain ur solution with one of these sets?

 {1,2,1,3,2,1}
 {1,2,1,3,2,2}

 an element can repeat for any number of times = 2

  --
 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.
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.



[algogeeks] Re: [brain teaser] Sequence Puzzle 13april

2011-04-17 Thread KK
@vaibhav shukla:
3 1 2 2 1 1 is ok
but how 1 3 1 1 2 2 2 1 came
Thanks

On Apr 13, 2:57 pm, vaibhav shukla vaibhav200...@gmail.com wrote:
 On Wed, Apr 13, 2011 at 1:02 PM, Lavesh Rawat lavesh.ra...@gmail.comwrote:

  * Sequence Puzzle *
  *
  *
  *The below is a number puzzle. It should be read left to right, top to
  bottom.
  Question 1 What is the next two rows of numbers.
  Question 2 How was this reached.
  1 1
  2 1
  1 2 1 1
  1 1 1 2 2 1*

 next two rows:
     *3 1 2 2 1 1
     1 3 1 1 2 2 2 1

 *









  
  *Update Your Answers at* : Click 
  Herehttp://dailybrainteaser.blogspot.com/2011/04/sequence-puzzle-13april

  Solution:
  Will be updated after 1 day

  --

                      Never explain yourself. Your friends don’t need it and
  your enemies won’t believe it .

  --
  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.

 --
   best wishes!!
 Vaibhav Shukla
     DU-MCA

-- 
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.



[algogeeks] Re: [brain teaser] Sequence Puzzle 13april

2011-04-17 Thread KK
Dont worry got it!!!

On Apr 13, 2:57 pm, vaibhav shukla vaibhav200...@gmail.com wrote:
 On Wed, Apr 13, 2011 at 1:02 PM, Lavesh Rawat lavesh.ra...@gmail.comwrote:

  * Sequence Puzzle *
  *
  *
  *The below is a number puzzle. It should be read left to right, top to
  bottom.
  Question 1 What is the next two rows of numbers.
  Question 2 How was this reached.
  1 1
  2 1
  1 2 1 1
  1 1 1 2 2 1*

 next two rows:
     *3 1 2 2 1 1
     1 3 1 1 2 2 2 1

 *









  
  *Update Your Answers at* : Click 
  Herehttp://dailybrainteaser.blogspot.com/2011/04/sequence-puzzle-13april

  Solution:
  Will be updated after 1 day

  --

                      Never explain yourself. Your friends don’t need it and
  your enemies won’t believe it .

  --
  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.

 --
   best wishes!!
 Vaibhav Shukla
     DU-MCA

-- 
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.



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

2011-04-17 Thread KK
Hey can u mail it to me plzzz??

On Mar 23, 7:55 am, Anand anandut2...@gmail.com wrote:
 Thanks!!

 On Tue, Mar 22, 2011 at 7:11 PM, D.N.Vishwakarma@IITR 
 deok...@gmail.comwrote:







  thanx...

  On 3/22/11, Himanshu Neema potential.himansh...@gmail.com wrote:
   -- Forwarded message --
   From: Himanshu Neema potential.himansh...@gmail.com
   Date: Tue, Mar 22, 2011 at 11:13 PM
   Subject: Re: [algogeeks] If any one have algorithms for interviews by
  adnan
   aziz ebook... Please mail ...
   To: Abhishek Goswami zeal.gosw...@gmail.com

   Its a 15.4MB pdf so would take time to download if you have slow internet
   connection , otherwise i checked the link its working.

   But I have also uploaded it on Google docs as Abhishek suggested  here :

 https://docs.google.com/viewer?a=vpid=explorerchrome=truesrcid=0B-...

   On Tue, Mar 22, 2011 at 11:01 PM, Abhishek Goswami
   zeal.gosw...@gmail.comwrote:

   can you upload this file into google docs or attach this file. i tried
  to
   download this file but did not get any success for
   open this file
   Thanks
   Abhishek

   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.comwrote:

   ++

   On Tue, Mar 22, 2011 at 9:51 PM, Anurag atri
   anu.anurag@gmail.comwrote:

   and me too :)

   On Tue, Mar 22, 2011 at 9:28 PM, Nikhil Mishra
   mishra00...@gmail.comwrote:

   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.
   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.

   --
   Regards
   Anurag Atri

   --
   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.
   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.
   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.
   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.

  --
  *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] Re: If any one have algorithms for interviews by adnan aziz ebook... Please mail ...

2011-04-17 Thread KK
Hey plzz mail me too..

On Apr 14, 9:29 am, Rajeev Kumar rajeevprasa...@gmail.com wrote:
 check this 
 link:https://docs.google.com/viewer?a=vpid=explorerchrome=truesrcid=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.comwrote:









  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.comwrote:

  ++

  On Tue, Mar 22, 2011 at 9:51 PM, Anurag atri 
  anu.anurag@gmail.comwrote:

  and me too :)

  On Tue, Mar 22, 2011 at 9:28 PM, Nikhil Mishra 
  mishra00...@gmail.comwrote:

  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.
  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.

  --
  Regards
  Anurag Atri

  --
  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.
  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.
  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.
  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.

 --
 Thank You
 Rajeev Kumar

-- 
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.