Re: [algogeeks] Puzzle.. How to solve??

2013-01-30 Thread nikhil rao
Thanks Varun :)

On Wednesday, 30 January 2013 11:21:35 UTC+5:30, varun pahwa wrote:

 Hi,
 Look at team Team7. F2,F9,F12,F14,F15.
 = F12 - Chelsa.
 C - 7,12
 L - 2,9
 and 14,15 not from liverpool.
 Now, look at Team 6.
 So,
 C - 7,12
 L - 3,6,2,9
 U - 15 , 1 (From Team 1)
 Team 2 - 11  13 not from liverpool.
 Team 3 - 11  5 not from liverpool
 Team 5 = 11 from C
 So,
 C - 7,12,11,10 (From Team 4),14 (From Team 7)
 L - 3,6,2,9,4(From Team 5),16 (From Team 5), 8 (From Team 8) 
 U - 15 , 1 , 5 (From Team 3), 13 (From Team 8)

 Rewriting it.
 L - 2,3,4,6,8,9,16
 C - 7,10,11,12,14
 U - 1,5,13,15


 Now, all the questions can be answered.
 Hope I'm cleared.

 Thanks  Regards,
 Varun


  


 On Tue, Jan 29, 2013 at 12:25 AM, nikhil rao nikhi...@gmail.comjavascript:
  wrote:

 Dream teams are formed by television viewers by selecting five players 
 from the sixteen players namely 
 F1,F2,F3,F4,F5,F6,F7,F8,F9,F10,F11,F12,F13,F14,F15 and F16.The players 
 belong to exactly one of the three teams namely Chelsea,Liverpool and 
 United.Every Dream Team must have two players each from Chelsea and 
 Liverpool and one player from united.Following information is provided

 a)F12 is not from United
 b)F7 is from Chesla.
 c)F2 and F9 are from liverpool
 d)the 'match fee' of each player belonging to chesla ,liverpool, and 
 united is Euro 800.Euro775 and euro 725 match played respectively.

 8 such dearm teams were formed are mentioned below...
 team1=F3,F9,F7,F1,F12
 Team2=F12,F11,F13,F6,F9
 Team3=F6,F3,F5,F11,F7
 Team4=F2,F10,F7,F6,F1
 Team5=F1,F4,F16,F11,F10
 Team6=F6,F3,F7,F15,F12
 Team7=F2,F9,F12,F14,F15
 Team8=F4,F8,F13,F11,F10

Q1)in dream team 6 name the united player?
 1)F3 2)F6 3)F12 4)F15
   
 Q2)how many players belong to Chesla from the given sixteen   players?
 1)4 2)5 3) 6 4)7

   Q3)In team 8 who are from liverpool?
 a)F4,F8
 b)F10,F11
 c)F11,F13
 d)F4,F11

  Q4)what is the total fees per match (in Euros) for team ?
 1)3875
 2)3825
 3)3800
 4)none of these

   Q5)which of the following combinations have only Liverpool players?
 a)F13,F3
 b)F3,F16
 c)F16,F14
 d)F14,F2

 -- 
 You received this message because you are subscribed to the Google Groups 
 Algorithm Geeks group.
 To unsubscribe from this group, send email to 
 algogeeks+...@googlegroups.com javascript:.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  




 -- 
 Varun
 Product Engineer,
 Vizury
  
 People who fail to plan are those who plan to fail.
  

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to algogeeks+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [algogeeks] Puzzle.. How to solve??

2013-01-30 Thread nikhil rao
Ya your rite Anmol . 4th was wrong i guess.. incomplete question.

On Tuesday, 29 January 2013 12:58:07 UTC+5:30, Anmol Dhar wrote:

 Answer:
 1)- (4)
 2)-- (2)
 3)--- (a)
 4) doubt, for which team match fees you are asking?
 5) (b)
 Correct me if i'm wrong..please don't reply with  answers if i'm 
 incorrect... wanna give one more shot! ;)


-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to algogeeks+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [algogeeks] Puzzle.. How to solve??

2013-01-29 Thread varun pahwa
Hi,
Look at team Team7. F2,F9,F12,F14,F15.
= F12 - Chelsa.
C - 7,12
L - 2,9
and 14,15 not from liverpool.
Now, look at Team 6.
So,
C - 7,12
L - 3,6,2,9
U - 15 , 1 (From Team 1)
Team 2 - 11  13 not from liverpool.
Team 3 - 11  5 not from liverpool
Team 5 = 11 from C
So,
C - 7,12,11,10 (From Team 4),14 (From Team 7)
L - 3,6,2,9,4(From Team 5),16 (From Team 5), 8 (From Team 8)
U - 15 , 1 , 5 (From Team 3), 13 (From Team 8)

Rewriting it.
L - 2,3,4,6,8,9,16
C - 7,10,11,12,14
U - 1,5,13,15


Now, all the questions can be answered.
Hope I'm cleared.

Thanks  Regards,
Varun





On Tue, Jan 29, 2013 at 12:25 AM, nikhil rao nikhilr...@gmail.com wrote:

 Dream teams are formed by television viewers by selecting five players
 from the sixteen players namely
 F1,F2,F3,F4,F5,F6,F7,F8,F9,F10,F11,F12,F13,F14,F15 and F16.The players
 belong to exactly one of the three teams namely Chelsea,Liverpool and
 United.Every Dream Team must have two players each from Chelsea and
 Liverpool and one player from united.Following information is provided

 a)F12 is not from United
 b)F7 is from Chesla.
 c)F2 and F9 are from liverpool
 d)the 'match fee' of each player belonging to chesla ,liverpool, and
 united is Euro 800.Euro775 and euro 725 match played respectively.

 8 such dearm teams were formed are mentioned below...
 team1=F3,F9,F7,F1,F12
 Team2=F12,F11,F13,F6,F9
 Team3=F6,F3,F5,F11,F7
 Team4=F2,F10,F7,F6,F1
 Team5=F1,F4,F16,F11,F10
 Team6=F6,F3,F7,F15,F12
 Team7=F2,F9,F12,F14,F15
 Team8=F4,F8,F13,F11,F10

Q1)in dream team 6 name the united player?
 1)F3 2)F6 3)F12 4)F15

 Q2)how many players belong to Chesla from the given sixteen   players?
 1)4 2)5 3) 6 4)7

   Q3)In team 8 who are from liverpool?
 a)F4,F8
 b)F10,F11
 c)F11,F13
 d)F4,F11

  Q4)what is the total fees per match (in Euros) for team ?
 1)3875
 2)3825
 3)3800
 4)none of these

   Q5)which of the following combinations have only Liverpool players?
 a)F13,F3
 b)F3,F16
 c)F16,F14
 d)F14,F2

 --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.






-- 
Varun
Product Engineer,
Vizury

People who fail to plan are those who plan to fail.

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to algogeeks+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [algogeeks] Puzzle.. How to solve??

2013-01-29 Thread Anmol Dhar
Answer:
1)- (4)
2)-- (2)
3)--- (a)
4) doubt, for which team match fees you are asking?
5) (b)
Correct me if i'm wrong..please don't reply with  answers if i'm
incorrect... wanna give one more shot! ;)

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to algogeeks+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[algogeeks] Puzzle.. How to solve??

2013-01-28 Thread nikhil rao
Dream teams are formed by television viewers by selecting five players from 
the sixteen players namely 
F1,F2,F3,F4,F5,F6,F7,F8,F9,F10,F11,F12,F13,F14,F15 and F16.The players 
belong to exactly one of the three teams namely Chelsea,Liverpool and 
United.Every Dream Team must have two players each from Chelsea and 
Liverpool and one player from united.Following information is provided

a)F12 is not from United
b)F7 is from Chesla.
c)F2 and F9 are from liverpool
d)the 'match fee' of each player belonging to chesla ,liverpool, and united 
is Euro 800.Euro775 and euro 725 match played respectively.

8 such dearm teams were formed are mentioned below...
team1=F3,F9,F7,F1,F12
Team2=F12,F11,F13,F6,F9
Team3=F6,F3,F5,F11,F7
Team4=F2,F10,F7,F6,F1
Team5=F1,F4,F16,F11,F10
Team6=F6,F3,F7,F15,F12
Team7=F2,F9,F12,F14,F15
Team8=F4,F8,F13,F11,F10

   Q1)in dream team 6 name the united player?
1)F3 2)F6 3)F12 4)F15
  
Q2)how many players belong to Chesla from the given sixteen   players?
1)4 2)5 3) 6 4)7

  Q3)In team 8 who are from liverpool?
a)F4,F8
b)F10,F11
c)F11,F13
d)F4,F11

 Q4)what is the total fees per match (in Euros) for team ?
1)3875
2)3825
3)3800
4)none of these

  Q5)which of the following combinations have only Liverpool players?
a)F13,F3
b)F3,F16
c)F16,F14
d)F14,F2

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [algogeeks] puzzle

2012-03-01 Thread Gaurav Popli
great observation
thanks!!

On Wed, Feb 29, 2012 at 10:31 PM, Anurag atri anu.anurag@gmail.com wrote:
 @shady:
 Observation only ..

 On Wed, Feb 29, 2012 at 9:03 PM, shady sinv...@gmail.com wrote:

 anurag how did you reach that solution ?
 can you elaborate...


 On Wed, Feb 29, 2012 at 8:11 PM, Anurag atri anu.anurag@gmail.com
 wrote:

 nth term : (n! + 2^n - n)


 On Wed, Feb 29, 2012 at 11:05 AM, Vaibhav Mittal
 vaibhavmitta...@gmail.com wrote:

 Ntn else is provided..??

 On Feb 28, 2012 12:51 PM, Gaurav Popli abeygau...@gmail.com wrote:

 Given a sequance of natural numbers.

 Find N'th term of this sequence.

 a1=2, a2=4, a3=11, a4=36, a5=147, a6=778 ... ... ... ... aN.


 this is a coding quesn and O(n) soln is also welcome...

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




 --
 Regards
 Anurag Atri
 III year
 Computer Engineering
 Delhi College Of Engineering


 --
 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] puzzle

2012-02-29 Thread Anurag atri
nth term : (n! + 2^n - n)

On Wed, Feb 29, 2012 at 11:05 AM, Vaibhav Mittal
vaibhavmitta...@gmail.comwrote:

 Ntn else is provided..??
 On Feb 28, 2012 12:51 PM, Gaurav Popli abeygau...@gmail.com wrote:

 Given a sequance of natural numbers.

 Find N'th term of this sequence.

 a1=2, a2=4, a3=11, a4=36, a5=147, a6=778 ... ... ... ... aN.


 this is a coding quesn and O(n) soln is also welcome...

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



Re: [algogeeks] puzzle

2012-02-29 Thread shady
anurag how did you reach that solution ?
can you elaborate...

On Wed, Feb 29, 2012 at 8:11 PM, Anurag atri anu.anurag@gmail.comwrote:

 nth term : (n! + 2^n - n)


 On Wed, Feb 29, 2012 at 11:05 AM, Vaibhav Mittal 
 vaibhavmitta...@gmail.com wrote:

 Ntn else is provided..??
 On Feb 28, 2012 12:51 PM, Gaurav Popli abeygau...@gmail.com wrote:

 Given a sequance of natural numbers.

 Find N'th term of this sequence.

 a1=2, a2=4, a3=11, a4=36, a5=147, a6=778 ... ... ... ... aN.


 this is a coding quesn and O(n) soln is also welcome...

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



Re: [algogeeks] puzzle

2012-02-29 Thread Anurag atri
@shady:
Observation only ..

On Wed, Feb 29, 2012 at 9:03 PM, shady sinv...@gmail.com wrote:

 anurag how did you reach that solution ?
 can you elaborate...


 On Wed, Feb 29, 2012 at 8:11 PM, Anurag atri anu.anurag@gmail.comwrote:

 nth term : (n! + 2^n - n)


 On Wed, Feb 29, 2012 at 11:05 AM, Vaibhav Mittal 
 vaibhavmitta...@gmail.com wrote:

 Ntn else is provided..??
 On Feb 28, 2012 12:51 PM, Gaurav Popli abeygau...@gmail.com wrote:

 Given a sequance of natural numbers.

 Find N'th term of this sequence.

 a1=2, a2=4, a3=11, a4=36, a5=147, a6=778 ... ... ... ... aN.


 this is a coding quesn and O(n) soln is also welcome...

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




-- 
Regards
Anurag Atri
III year
Computer Engineering
Delhi College Of Engineering

-- 
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] Puzzle

2012-02-28 Thread payal gupta
one option cud be reverse the digits...i.e
(bt the first n d last do not satisfy d pattern howeva)
93 , 14,34,54,94,15,35,35,55
an increment is applied to the last 4th no each tme...
not very sure if its crckt...

Regards,
PAYAL GUPTA



On Tue, Feb 28, 2012 at 12:48 PM, Kartik Sachan kartik.sac...@gmail.comwrote:

 I think logic is the difference is
 2 2 4 2 2 2 8 so next will be 2 2  2 2 2 16

 so ans will be 66 68 70


 but first number 3 making some problem

  --
 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] Puzzle

2012-02-28 Thread srikanth reddy malipatel
{39,41,43,45}incremented by 2
{49,51,53,55}incremented by 2
{64,?,?,?}

first number in each set is considered as base number.
3 is for the number of numbers in each set other than base number.
so in final set base number is 64 and other 3 numbers are incremented by 2.

On Tue, Feb 28, 2012 at 1:48 PM, payal gupta gpt.pa...@gmail.com wrote:
 one option cud be reverse the digits...i.e
 (bt the first n d last do not satisfy d pattern howeva)
 93 , 14,34,54,94,15,35,35,55
 an increment is applied to the last 4th no each tme...
 not very sure if its crckt...

 Regards,
 PAYAL GUPTA




 On Tue, Feb 28, 2012 at 12:48 PM, Kartik Sachan kartik.sac...@gmail.com
 wrote:

 I think logic is the difference is
 2 2 4 2 2 2 8 so next will be 2 2  2 2 2 16

 so ans will be 66 68 70


 but first number 3 making some problem

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



-- 
Srikanth Reddy M
(M.Sc Tech.) Information Systems
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 options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] puzzle

2012-02-28 Thread Vaibhav Mittal
Ntn else is provided..??
On Feb 28, 2012 12:51 PM, Gaurav Popli abeygau...@gmail.com wrote:

 Given a sequance of natural numbers.

 Find N'th term of this sequence.

 a1=2, a2=4, a3=11, a4=36, a5=147, a6=778 ... ... ... ... aN.


 this is a coding quesn and O(n) soln is also welcome...

 --
 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] Puzzle

2012-02-27 Thread karthikeya s
3, 39, 41, 43, 45, 49, 51, 53, 55, 64, ?, ?, ...
(These are successive numbers sharing a common property. No math or
outside knowledge is needed.)

-- 
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] Puzzle

2012-02-27 Thread srikanth reddy malipatel
66,68,70

On Mon, Feb 27, 2012 at 6:54 PM, karthikeya s karthikeya.a...@gmail.com wrote:
 3, 39, 41, 43, 45, 49, 51, 53, 55, 64, ?, ?, ...
 (These are successive numbers sharing a common property. No math or
 outside knowledge is needed.)

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




-- 
Srikanth Reddy M
(M.Sc Tech.) Information Systems
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 options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] Puzzle

2012-02-27 Thread shady
logic ?

On Tue, Feb 28, 2012 at 11:16 AM, srikanth reddy malipatel 
srikk...@gmail.com wrote:

 66,68,70

 On Mon, Feb 27, 2012 at 6:54 PM, karthikeya s karthikeya.a...@gmail.com
 wrote:
  3, 39, 41, 43, 45, 49, 51, 53, 55, 64, ?, ?, ...
  (These are successive numbers sharing a common property. No math or
  outside knowledge is needed.)
 
  --
  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.
 



 --
 Srikanth Reddy M
 (M.Sc Tech.) Information Systems
 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 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] Puzzle

2012-02-27 Thread Kartik Sachan
I think logic is the difference is
2 2 4 2 2 2 8 so next will be 2 2  2 2 2 16

so ans will be 66 68 70


but first number 3 making some problem

-- 
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] puzzle

2012-02-27 Thread Gaurav Popli
Given a sequance of natural numbers.

Find N'th term of this sequence.

a1=2, a2=4, a3=11, a4=36, a5=147, a6=778 ... ... ... ... aN.


this is a coding quesn and O(n) soln is also welcome...

-- 
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] puzzle

2011-10-06 Thread 9ight coder
A family has several children. every boy has as many brothers as
sisters. Every gal has twice as many brothers as sisters. How many
childrens are there in family?

-- 
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] puzzle

2011-10-06 Thread Hatta
and why is that related to algorithms anyway?

from [1]


To further highlight the difference between a problem and an instance,
consider the following instance of the decision version of the
traveling salesman problem: Is there a route of length at most 2000
kilometres passing through all of Germany's 15 largest cities? The
answer to this particular problem instance is of little use for
solving other instances of the problem, such as asking for a round
trip through all sites in Milan whose total length is at most 10 km.
For this reason, complexity theory addresses computational problems
and not particular problem instances.


if you're lazy and can't read through that's what I mean:


(...) For this reason, complexity theory addresses computational
problems and not particular problem instances.


this is a problem instance and we're not interested in problem instances.




[1] 
http://en.wikipedia.org/wiki/Computational_complexity_theory#Computational_problems



On Thu, Oct 6, 2011 at 7:05 AM, 9ight coder 9ightco...@gmail.com wrote:
 A family has several children. every boy has as many brothers as
 sisters. Every gal has twice as many brothers as sisters. How many
 childrens are there in family?

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





-- 
Hatta

-- 
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] puzzle

2011-09-24 Thread shiv narayan
Assume that you have just heard of a scandal and you are the first one
to know. You pass it on to four person in a matter of 30 minutes. Each
of these four in turn passes it to four other persons in the next 30
minutes and so on.

How long it will take for everybody in the World to get to know the
scandal?

Assume that nobody hears it more than once and the population of the
World is approximately 5.6 billions.

-- 
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] puzzle

2011-09-04 Thread 9ight coder
There is a room with a door (closed) and three light bulbs. Outside
the room there
are three switches, connected to the bulbs. You may manipulate the
switches as
you wish, but once you open the door you can't change them. Identify
each switch
with its bulb.

-- 
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] puzzle

2011-09-04 Thread amit kannaujiya
1)  on one switch for some time .
then  , off that switch.
2) Now on a switch , and open the door.
the bulb which is on  , that is for that switch .
earlier on switch  will be for that bulb ,which is hot .
and the third switch will be for that bulb which coolest

On Sun, Sep 4, 2011 at 12:30 PM, 9ight coder 9ightco...@gmail.com wrote:

 There is a room with a door (closed) and three light bulbs. Outside
 the room there
 are three switches, connected to the bulbs. You may manipulate the
 switches as
 you wish, but once you open the door you can't change them. Identify
 each switch
 with its bulb.

 --
 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] puzzle

2011-09-04 Thread tarun kumar
can we open the door twice(with the condition that once the door is opened
switch can't be manipulated).? if not ,It is riddle rather an algorithmic
question and the above written answer seems to be right.

-- 
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] puzzle

2011-09-04 Thread bharatkumar bagana
+1 amit..

On Sun, Sep 4, 2011 at 4:15 AM, tarun kumar taruniit1...@gmail.com wrote:

 can we open the door twice(with the condition that once the door is opened
 switch can't be manipulated).? if not ,It is riddle rather an algorithmic
 question and the above written answer seems to be right.

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




-- 

**Please do not print this e-mail until urgent requirement. Go Green!!
Save Papers = Save Trees
*BharatKumar Bagana*
**http://www.google.com/profiles/bagana.bharatkumarhttp://www.google.com/profiles/bagana.bharatkumar
*
Mobile +91 8056127652*
bagana.bharatku...@gmail.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.



Re: [algogeeks] Puzzle

2011-08-20 Thread Naman Mahor
21

On Sat, Aug 20, 2011 at 5:16 PM, Nikhil Gupta nikhilgupta2...@gmail.comwrote:

 Each side of a given polygon is parallel to either the X or the Y axis. A
 corner of such a polygon is said to be convex if the internal angle is 90o or
 concave if the internal angle is 270o. If the number of convex corners in
 such a polygon is 25, the number of concave corners must be
 21
 23
 22
 20
 --
 Nikhil 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, 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] Puzzle

2011-08-20 Thread Sanjay Rajpal
Refer to the problem 3 of http://www.trytwi.com/twi4.html.


Sanju
:)



On Sat, Aug 20, 2011 at 7:07 AM, Naman Mahor naman.ma...@gmail.com wrote:

 21


 On Sat, Aug 20, 2011 at 5:16 PM, Nikhil Gupta 
 nikhilgupta2...@gmail.comwrote:

 Each side of a given polygon is parallel to either the X or the Y axis. A
 corner of such a polygon is said to be convex if the internal angle is 90
 o or concave if the internal angle is 270o. If the number of convex
 corners in such a polygon is 25, the number of concave corners must be
 21
  23
 22
 20
 --
 Nikhil 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, 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.



Re: [algogeeks] Puzzle

2011-08-19 Thread Aditya Virmani
@prem... what if only M is married? if m is married, n is not married that
says L may or may not be married. If L is not married, that gives for M may
or may not be married.
For only N to be married, L is not married, that says M may or may not be
married.
 same does apply for L.

On Fri, Aug 19, 2011 at 12:28 PM, Prem Krishna Chettri
hprem...@gmail.comwrote:

 Only N is Married.. as if L is not married that n Must be married .. Again
 for M to marry N must not Marry. but as N is Married.. so.. M cannot
 marry...



 On Fri, Aug 19, 2011 at 9:24 AM, Dheeraj Sharma 
 dheerajsharma1...@gmail.com wrote:

 M and N are married


 On Fri, Aug 19, 2011 at 5:19 AM, Abhishek Sharma 
 jkabhishe...@gmail.comwrote:

 M (hint: replace ü and û with their actual meaning.. u 'll understand)


 On Fri, Aug 19, 2011 at 4:10 AM, payal gupta gpt.pa...@gmail.comwrote:

 was there anything more specified
 Regards,
 PAYAL GUPTA


 On Fri, Aug 19, 2011 at 3:29 AM, Aditya Virmani 
 virmanisadi...@gmail.com wrote:

 If ü - Married
 û - Not Married and
 M-ü N-û
 N-ü L-û
 L-û M-ü
 Who is married?

 qn was put up in this way, asked in Deloitte 2004.

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




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



Re: [algogeeks] Puzzle

2011-08-19 Thread Aditya Virmani
this qn is copy pastewd as it is...no further instructions etc provided

On Fri, Aug 19, 2011 at 6:06 PM, priya ramesh 
love.for.programm...@gmail.com wrote:

 i think the question should be elaborated a li'l more. Plz give the
 sentences given in the puzzle. May be we cud solve then

  --
 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] Puzzle

2011-08-19 Thread DK
Note that in the answer above, the table given is of the form:

If condition is truethen what predicate is true
-----
M - married   N - not married
N - married   L - not married 
L - not married  M - married

--
DK

http://gplus.to/divyekapoor
http://twitter.com/divyekapoor
http://www.divye.in

-- 
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/-/uU2w5IqKkJ0J.
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] Puzzle

2011-08-18 Thread Aditya Virmani
If ü - Married
û - Not Married and
M-ü N-û
N-ü L-û
L-û M-ü
Who is married?

qn was put up in this way, asked in Deloitte 2004.

-- 
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] Puzzle

2011-08-18 Thread payal gupta
was there anything more specified
Regards,
PAYAL GUPTA

On Fri, Aug 19, 2011 at 3:29 AM, Aditya Virmani virmanisadi...@gmail.comwrote:

 If ü - Married
 û - Not Married and
 M-ü N-û
 N-ü L-û
 L-û M-ü
 Who is married?

 qn was put up in this way, asked in Deloitte 2004.

 --
 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] Puzzle

2011-08-18 Thread Abhishek Sharma
M (hint: replace ü and û with their actual meaning.. u 'll understand)

On Fri, Aug 19, 2011 at 4:10 AM, payal gupta gpt.pa...@gmail.com wrote:

 was there anything more specified
 Regards,
 PAYAL GUPTA


 On Fri, Aug 19, 2011 at 3:29 AM, Aditya Virmani 
 virmanisadi...@gmail.comwrote:

 If ü - Married
 û - Not Married and
 M-ü N-û
 N-ü L-û
 L-û M-ü
 Who is married?

 qn was put up in this way, asked in Deloitte 2004.

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



Re: [algogeeks] Puzzle

2011-08-07 Thread mani sharma
the word half was so confusing in the ques!! :(

On 5 August 2011 00:24, Himanshu Srivastava himanshusri...@gmail.comwrote:

 oh ok..thankshalf part which was kept inside the
 wellmeans well must be full..that is 100ok got it completely
 thank u:)


 On Fri, Aug 5, 2011 at 12:18 AM, sagar pareek sagarpar...@gmail.comwrote:

 double 87.5 gives you 175
 100 will be used by 1st well and 75 will be used by second
 now second well will double the 75 and will give you 150
 100 will be used by second and remainder 50 will forwarded to third
 now third one use 50 and will double it to 100

 no remainder left
 i think its clear now  :) :)


 On Fri, Aug 5, 2011 at 12:14 AM, Himanshu Srivastava 
 himanshusri...@gmail.com wrote:

 i mean @sagar:how did you get 87.5%??


 On Fri, Aug 5, 2011 at 12:13 AM, Himanshu Srivastava 
 himanshusri...@gmail.com wrote:

 @nikhil:how did you get 87.5%??

 On Thu, Aug 4, 2011 at 11:59 PM, sagar pareek sagarpar...@gmail.comwrote:

 87.5 %

 On Thu, Aug 4, 2011 at 10:39 PM, Nikhil Gupta 
 nikhilgupta2...@gmail.com wrote:

 There are 3 magical wells. Any input quantity of water we provide the
 1st well is returned double (of this double, half is kept inside the 
 well,
 and the other half is used as input to the 2nd well).
 The 2nd well also returns double the quantity of its input (of which
 half is kept inside the well, and the other half is used as input to the 
 3rd
 well). Same goes with the 3rd, but its half output is the remainder 
 (other
 half being kept inside the well). Now what input should we provide in the
 1st well, so that the remainder at the end comes out to be zero?

 (Asked in classroom coaching of T.I.M.E.)
 --
 Nikhil Gupta
 Senior Co-ordinator, Publicity
 CSI, NSIT Students' Branch
 NSIT, New Delhi, India

  --
 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
 SAGAR PAREEK
 COMPUTER SCIENCE AND ENGINEERING
 NIT ALLAHABAD

  --
 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
 SAGAR PAREEK
 COMPUTER SCIENCE AND ENGINEERING
 NIT ALLAHABAD

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




-- 
Monadhika
Under graduate student,
Computer Engineering,
Netaji Subhas Institute Of Technology,
Dwarka,Delhi

-- 
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] Puzzle

2011-08-07 Thread aseem garg
Put 0 in the first well and see the magic.  :P
Aseem



On Sun, Aug 7, 2011 at 6:50 PM, mani sharma monadh...@nsitonline.in wrote:

 the word half was so confusing in the ques!! :(


 On 5 August 2011 00:24, Himanshu Srivastava himanshusri...@gmail.comwrote:

 oh ok..thankshalf part which was kept inside the
 wellmeans well must be full..that is 100ok got it completely
 thank u:)


 On Fri, Aug 5, 2011 at 12:18 AM, sagar pareek sagarpar...@gmail.comwrote:

 double 87.5 gives you 175
 100 will be used by 1st well and 75 will be used by second
 now second well will double the 75 and will give you 150
 100 will be used by second and remainder 50 will forwarded to third
 now third one use 50 and will double it to 100

 no remainder left
 i think its clear now  :) :)


 On Fri, Aug 5, 2011 at 12:14 AM, Himanshu Srivastava 
 himanshusri...@gmail.com wrote:

 i mean @sagar:how did you get 87.5%??


 On Fri, Aug 5, 2011 at 12:13 AM, Himanshu Srivastava 
 himanshusri...@gmail.com wrote:

 @nikhil:how did you get 87.5%??

 On Thu, Aug 4, 2011 at 11:59 PM, sagar pareek 
 sagarpar...@gmail.comwrote:

 87.5 %

 On Thu, Aug 4, 2011 at 10:39 PM, Nikhil Gupta 
 nikhilgupta2...@gmail.com wrote:

 There are 3 magical wells. Any input quantity of water we provide the
 1st well is returned double (of this double, half is kept inside the 
 well,
 and the other half is used as input to the 2nd well).
 The 2nd well also returns double the quantity of its input (of which
 half is kept inside the well, and the other half is used as input to 
 the 3rd
 well). Same goes with the 3rd, but its half output is the remainder 
 (other
 half being kept inside the well). Now what input should we provide in 
 the
 1st well, so that the remainder at the end comes out to be zero?

 (Asked in classroom coaching of T.I.M.E.)
 --
 Nikhil Gupta
 Senior Co-ordinator, Publicity
 CSI, NSIT Students' Branch
 NSIT, New Delhi, India

  --
 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
 SAGAR PAREEK
 COMPUTER SCIENCE AND ENGINEERING
 NIT ALLAHABAD

  --
 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
 SAGAR PAREEK
 COMPUTER SCIENCE AND ENGINEERING
 NIT ALLAHABAD

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




 --
 Monadhika
 Under graduate student,
 Computer Engineering,
 Netaji Subhas Institute Of Technology,
 Dwarka,Delhi


  --
 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] Puzzle

2011-08-04 Thread parth panchal
h nikhil how are you

On Thu, Aug 4, 2011 at 3:57 PM, Nikhil Gupta nikhilgupta2...@gmail.comwrote:

 You have 2 identical ropes that burn in 1 hour (with non-uniform rate).
 How will you measure 45 minutes using them?

 --
 Nikhil Gupta
 Senior Co-ordinator, Publicity
 CSI, NSIT Students' Branch
 NSIT, New Delhi, India

 --
 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] Puzzle

2011-08-04 Thread Priyanka
Lit the first rope on both the ends and simultaneously lit the second rope
on one end.
Now first rope will take 30mins to burn completely, and by that time second
rope is half burnt.
then lit the second end of 2nd rope which will burn for 15mins
so altogerther u can measure 45 mins

On Thu, Aug 4, 2011 at 3:57 PM, Nikhil Gupta nikhilgupta2...@gmail.comwrote:

 You have 2 identical ropes that burn in 1 hour (with non-uniform rate).
 How will you measure 45 minutes using them?

 --
 Nikhil Gupta
 Senior Co-ordinator, Publicity
 CSI, NSIT Students' Branch
 NSIT, New Delhi, India

  --
 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,
Priyanka Loya

-- 
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] Puzzle

2011-08-04 Thread Nikhil Gupta
@priyanka, the ropes have a non uniform rate of burning. Means at some
duration they will be burning faster, and slower at some. So you cannot say
that  first rope will take 30mins to burn completely, and by that time
second rope is half burnt.



 Nikhil 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, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] Puzzle

2011-08-04 Thread Nitish Garg
When the first rope is completely burnt after 30 minutes, the length of rope 
2 remaining would be such that it would burn completely in the next 30 
minutes, so if at this moment the rope 2 is lit at other end also, it will 
burn completely in 15 min more, thereby giving a time of 45 min.

-- 
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/-/MBbN_6CQEEgJ.
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] Puzzle

2011-08-04 Thread anubhav gupta
both ropes have to burn in one hour.. so if burn first rope at both ends it
wil definitely take 30 mins to burn completely no matter how non uniform
burning is.. when first rope burn out completly(after 30 mins) second rope
still have 30 mins left for complete burning so if  it is burn at both ends
it wil take half the time left i.e 15 mins .. so in total we get 45 mins

On Thu, Aug 4, 2011 at 4:32 PM, Nikhil Gupta nikhilgupta2...@gmail.comwrote:

 @priyanka, the ropes have a non uniform rate of burning. Means at some
 duration they will be burning faster, and slower at some. So you cannot say
 that  first rope will take 30mins to burn completely, and by that time
 second rope is half burnt.



 Nikhil 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, 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] Puzzle

2011-08-04 Thread Shachindra A C
Calibrate both the ropes and burn 1 rope from both ends. It will take half
an hour. Then note down the point where the rope fully burns out. Cut the
second rope at this point and fire both ends of any one of the pieces. This
will take 15 mins.

On Thu, Aug 4, 2011 at 4:54 PM, anubhav gupta anubhav.7...@gmail.comwrote:

 both ropes have to burn in one hour.. so if burn first rope at both ends it
 wil definitely take 30 mins to burn completely no matter how non uniform
 burning is.. when first rope burn out completly(after 30 mins) second rope
 still have 30 mins left for complete burning so if  it is burn at both ends
 it wil take half the time left i.e 15 mins .. so in total we get 45 mins


 On Thu, Aug 4, 2011 at 4:32 PM, Nikhil Gupta nikhilgupta2...@gmail.comwrote:

 @priyanka, the ropes have a non uniform rate of burning. Means at some
 duration they will be burning faster, and slower at some. So you cannot say
 that  first rope will take 30mins to burn completely, and by that time
 second rope is half burnt.



 Nikhil 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, 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,
Shachindra A C

-- 
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] Puzzle

2011-08-04 Thread Abhinav Arora
@Nikhil : This question was asked to 2 people during Adobe interview on 
Tuesdaythe above solutions are perfectly alright.

-- 
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/-/Bx9FHS_7aRMJ.
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] Puzzle

2011-08-04 Thread aditi garg
Well acc to me the solution should be light the frst one on both ends(half
an hr)After rope one is completely burnt, fr the second one fold the rope in
the middle and then light it from both ends.it will take 15 minstotal 45
mins...please let me know if thr is any flaw in this

On Thu, Aug 4, 2011 at 5:18 PM, Abhinav Arora abhinavdgr8b...@gmail.comwrote:

 @Nikhil : This question was asked to 2 people during Adobe interview on
 Tuesdaythe above solutions are perfectly alright.

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

 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.




-- 
Aditi Garg
Undergraduate Student
Electronics  Communication Divison
NETAJI SUBHAS INSTITUTE OF TECHNOLOGY
Sector 3, Dwarka
New Delhi

-- 
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] puzzle

2011-08-04 Thread neeraja marathe
this was the puzzle asked to me in NVIDIA interview:
you are standing on top of a tower of ht 200 mt. .At 100 mt. ht . from
bottom of tower there is a peg where u can tie a rope. You have a rope
of length 150 mt. with you and using this rope you have to get down
the tower. you can not jump or there is nobody to help you. how will u
get down the tower??

-- 
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] Puzzle

2011-08-04 Thread Nikhil Gupta
There are 3 magical wells. Any input quantity of water we provide the 1st
well is returned double (of this double, half is kept inside the well, and
the other half is used as input to the 2nd well).
The 2nd well also returns double the quantity of its input (of which half is
kept inside the well, and the other half is used as input to the 3rd well).
Same goes with the 3rd, but its half output is the remainder (other half
being kept inside the well). Now what input should we provide in the 1st
well, so that the remainder at the end comes out to be zero?

(Asked in classroom coaching of T.I.M.E.)
-- 
Nikhil Gupta
Senior Co-ordinator, Publicity
CSI, NSIT Students' Branch
NSIT, New Delhi, India

-- 
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] puzzle

2011-08-04 Thread mohit verma
can't we tie the rope where we are standing (at height of 200 meter)?

On Thu, Aug 4, 2011 at 10:26 PM, neeraja marathe 
neeraja.marath...@gmail.com wrote:

 this was the puzzle asked to me in NVIDIA interview:
 you are standing on top of a tower of ht 200 mt. .At 100 mt. ht . from
 bottom of tower there is a peg where u can tie a rope. You have a rope
 of length 150 mt. with you and using this rope you have to get down
 the tower. you can not jump or there is nobody to help you. how will u
 get down the tower??

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




-- 

*MOHIT VERMA*

-- 
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] Puzzle

2011-08-04 Thread sagar pareek
87.5 %

On Thu, Aug 4, 2011 at 10:39 PM, Nikhil Gupta nikhilgupta2...@gmail.comwrote:

 There are 3 magical wells. Any input quantity of water we provide the 1st
 well is returned double (of this double, half is kept inside the well, and
 the other half is used as input to the 2nd well).
 The 2nd well also returns double the quantity of its input (of which half
 is kept inside the well, and the other half is used as input to the 3rd
 well). Same goes with the 3rd, but its half output is the remainder (other
 half being kept inside the well). Now what input should we provide in the
 1st well, so that the remainder at the end comes out to be zero?

 (Asked in classroom coaching of T.I.M.E.)
 --
 Nikhil Gupta
 Senior Co-ordinator, Publicity
 CSI, NSIT Students' Branch
 NSIT, New Delhi, India

  --
 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
SAGAR PAREEK
COMPUTER SCIENCE AND ENGINEERING
NIT ALLAHABAD

-- 
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] Puzzle

2011-08-04 Thread Kamakshii Aggarwal
@sagar:please explain..

On Thu, Aug 4, 2011 at 11:59 PM, sagar pareek sagarpar...@gmail.com wrote:

 87.5 %


 On Thu, Aug 4, 2011 at 10:39 PM, Nikhil Gupta 
 nikhilgupta2...@gmail.comwrote:

 There are 3 magical wells. Any input quantity of water we provide the 1st
 well is returned double (of this double, half is kept inside the well, and
 the other half is used as input to the 2nd well).
 The 2nd well also returns double the quantity of its input (of which half
 is kept inside the well, and the other half is used as input to the 3rd
 well). Same goes with the 3rd, but its half output is the remainder (other
 half being kept inside the well). Now what input should we provide in the
 1st well, so that the remainder at the end comes out to be zero?

 (Asked in classroom coaching of T.I.M.E.)
 --
 Nikhil Gupta
 Senior Co-ordinator, Publicity
 CSI, NSIT Students' Branch
 NSIT, New Delhi, India

  --
 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
 SAGAR PAREEK
 COMPUTER SCIENCE AND ENGINEERING
 NIT ALLAHABAD

  --
 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,
Kamakshi
kamakshi...@gmail.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.



Re: [algogeeks] Puzzle

2011-08-04 Thread Nikhil Gupta
Explain please.

On Fri, Aug 5, 2011 at 12:01 AM, Kamakshii Aggarwal
kamakshi...@gmail.comwrote:

 @sagar:please explain..


 On Thu, Aug 4, 2011 at 11:59 PM, sagar pareek sagarpar...@gmail.comwrote:

 87.5 %


 On Thu, Aug 4, 2011 at 10:39 PM, Nikhil Gupta 
 nikhilgupta2...@gmail.comwrote:

 There are 3 magical wells. Any input quantity of water we provide the 1st
 well is returned double (of this double, half is kept inside the well, and
 the other half is used as input to the 2nd well).
 The 2nd well also returns double the quantity of its input (of which half
 is kept inside the well, and the other half is used as input to the 3rd
 well). Same goes with the 3rd, but its half output is the remainder (other
 half being kept inside the well). Now what input should we provide in the
 1st well, so that the remainder at the end comes out to be zero?

 (Asked in classroom coaching of T.I.M.E.)
 --
 Nikhil Gupta
 Senior Co-ordinator, Publicity
 CSI, NSIT Students' Branch
 NSIT, New Delhi, India

  --
 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
 SAGAR PAREEK
 COMPUTER SCIENCE AND ENGINEERING
 NIT ALLAHABAD

  --
 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,
 Kamakshi
 kamakshi...@gmail.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.




-- 
Nikhil Gupta
Senior Co-ordinator, Publicity
CSI, NSIT Students' Branch
NSIT, New Delhi, India

-- 
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] Puzzle

2011-08-04 Thread Himanshu Srivastava
@nikhil:how did you get 87.5%??

On Thu, Aug 4, 2011 at 11:59 PM, sagar pareek sagarpar...@gmail.com wrote:

 87.5 %

 On Thu, Aug 4, 2011 at 10:39 PM, Nikhil Gupta 
 nikhilgupta2...@gmail.comwrote:

 There are 3 magical wells. Any input quantity of water we provide the 1st
 well is returned double (of this double, half is kept inside the well, and
 the other half is used as input to the 2nd well).
 The 2nd well also returns double the quantity of its input (of which half
 is kept inside the well, and the other half is used as input to the 3rd
 well). Same goes with the 3rd, but its half output is the remainder (other
 half being kept inside the well). Now what input should we provide in the
 1st well, so that the remainder at the end comes out to be zero?

 (Asked in classroom coaching of T.I.M.E.)
 --
 Nikhil Gupta
 Senior Co-ordinator, Publicity
 CSI, NSIT Students' Branch
 NSIT, New Delhi, India

  --
 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
 SAGAR PAREEK
 COMPUTER SCIENCE AND ENGINEERING
 NIT ALLAHABAD

  --
 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] Puzzle

2011-08-04 Thread Himanshu Srivastava
i mean @sagar:how did you get 87.5%??

On Fri, Aug 5, 2011 at 12:13 AM, Himanshu Srivastava 
himanshusri...@gmail.com wrote:

 @nikhil:how did you get 87.5%??

 On Thu, Aug 4, 2011 at 11:59 PM, sagar pareek sagarpar...@gmail.comwrote:

 87.5 %

 On Thu, Aug 4, 2011 at 10:39 PM, Nikhil Gupta 
 nikhilgupta2...@gmail.comwrote:

 There are 3 magical wells. Any input quantity of water we provide the 1st
 well is returned double (of this double, half is kept inside the well, and
 the other half is used as input to the 2nd well).
 The 2nd well also returns double the quantity of its input (of which half
 is kept inside the well, and the other half is used as input to the 3rd
 well). Same goes with the 3rd, but its half output is the remainder (other
 half being kept inside the well). Now what input should we provide in the
 1st well, so that the remainder at the end comes out to be zero?

 (Asked in classroom coaching of T.I.M.E.)
 --
 Nikhil Gupta
 Senior Co-ordinator, Publicity
 CSI, NSIT Students' Branch
 NSIT, New Delhi, India

  --
 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
 SAGAR PAREEK
 COMPUTER SCIENCE AND ENGINEERING
 NIT ALLAHABAD

  --
 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] Puzzle

2011-08-04 Thread sagar pareek
double 87.5 gives you 175
100 will be used by 1st well and 75 will be used by second
now second well will double the 75 and will give you 150
100 will be used by second and remainder 50 will forwarded to third
now third one use 50 and will double it to 100

no remainder left
i think its clear now  :) :)

On Fri, Aug 5, 2011 at 12:14 AM, Himanshu Srivastava 
himanshusri...@gmail.com wrote:

 i mean @sagar:how did you get 87.5%??


 On Fri, Aug 5, 2011 at 12:13 AM, Himanshu Srivastava 
 himanshusri...@gmail.com wrote:

 @nikhil:how did you get 87.5%??

 On Thu, Aug 4, 2011 at 11:59 PM, sagar pareek sagarpar...@gmail.comwrote:

 87.5 %

 On Thu, Aug 4, 2011 at 10:39 PM, Nikhil Gupta nikhilgupta2...@gmail.com
  wrote:

 There are 3 magical wells. Any input quantity of water we provide the
 1st well is returned double (of this double, half is kept inside the well,
 and the other half is used as input to the 2nd well).
 The 2nd well also returns double the quantity of its input (of which
 half is kept inside the well, and the other half is used as input to the 
 3rd
 well). Same goes with the 3rd, but its half output is the remainder (other
 half being kept inside the well). Now what input should we provide in the
 1st well, so that the remainder at the end comes out to be zero?

 (Asked in classroom coaching of T.I.M.E.)
 --
 Nikhil Gupta
 Senior Co-ordinator, Publicity
 CSI, NSIT Students' Branch
 NSIT, New Delhi, India

  --
 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
 SAGAR PAREEK
 COMPUTER SCIENCE AND ENGINEERING
 NIT ALLAHABAD

  --
 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
SAGAR PAREEK
COMPUTER SCIENCE AND ENGINEERING
NIT ALLAHABAD

-- 
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] puzzle

2011-08-04 Thread Himanshu Srivastava
suppose u tie the rope at 200mt height and now climb down to 100m
heightthen u tie the rope at that point then how will you open the rope
at point above 200mt where u have tied it earlier

On Thu, Aug 4, 2011 at 11:15 PM, mohit verma mohit89m...@gmail.com wrote:

 can't we tie the rope where we are standing (at height of 200 meter)?

 On Thu, Aug 4, 2011 at 10:26 PM, neeraja marathe 
 neeraja.marath...@gmail.com wrote:

 this was the puzzle asked to me in NVIDIA interview:
 you are standing on top of a tower of ht 200 mt. .At 100 mt. ht . from
 bottom of tower there is a peg where u can tie a rope. You have a rope
 of length 150 mt. with you and using this rope you have to get down
 the tower. you can not jump or there is nobody to help you. how will u
 get down the tower??

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




 --
 
 *MOHIT VERMA*

  --
 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] Puzzle

2011-08-04 Thread Himanshu Srivastava
oh ok..thankshalf part which was kept inside the
wellmeans well must be full..that is 100ok got it completely
thank u:)

On Fri, Aug 5, 2011 at 12:18 AM, sagar pareek sagarpar...@gmail.com wrote:

 double 87.5 gives you 175
 100 will be used by 1st well and 75 will be used by second
 now second well will double the 75 and will give you 150
 100 will be used by second and remainder 50 will forwarded to third
 now third one use 50 and will double it to 100

 no remainder left
 i think its clear now  :) :)


 On Fri, Aug 5, 2011 at 12:14 AM, Himanshu Srivastava 
 himanshusri...@gmail.com wrote:

 i mean @sagar:how did you get 87.5%??


 On Fri, Aug 5, 2011 at 12:13 AM, Himanshu Srivastava 
 himanshusri...@gmail.com wrote:

 @nikhil:how did you get 87.5%??

 On Thu, Aug 4, 2011 at 11:59 PM, sagar pareek sagarpar...@gmail.comwrote:

 87.5 %

 On Thu, Aug 4, 2011 at 10:39 PM, Nikhil Gupta 
 nikhilgupta2...@gmail.com wrote:

 There are 3 magical wells. Any input quantity of water we provide the
 1st well is returned double (of this double, half is kept inside the well,
 and the other half is used as input to the 2nd well).
 The 2nd well also returns double the quantity of its input (of which
 half is kept inside the well, and the other half is used as input to the 
 3rd
 well). Same goes with the 3rd, but its half output is the remainder (other
 half being kept inside the well). Now what input should we provide in the
 1st well, so that the remainder at the end comes out to be zero?

 (Asked in classroom coaching of T.I.M.E.)
 --
 Nikhil Gupta
 Senior Co-ordinator, Publicity
 CSI, NSIT Students' Branch
 NSIT, New Delhi, India

  --
 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
 SAGAR PAREEK
 COMPUTER SCIENCE AND ENGINEERING
 NIT ALLAHABAD

  --
 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
 SAGAR PAREEK
 COMPUTER SCIENCE AND ENGINEERING
 NIT ALLAHABAD

  --
 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] puzzle

2011-08-04 Thread Anirudh Reddy
am i allowed to stand at the 100 m point?

-- 
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] puzzle

2011-07-31 Thread prateek gupta
Can anyone plz tell me
1. how to get a fair result from a unfair coin?
2. How to use a fair coin to get unfair result?

-- 
Prateek 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, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] puzzle

2011-07-31 Thread Easee Breezee
On Sun, Jul 31, 2011 at 12:24 PM, prateek gupta prateek00...@gmail.com wrote:
 Can anyone plz tell me

H = Head
T = Tail
 1. how to get a fair result from a unfair coin?

since the probability of HT is the same as TH in two tosses, these two
events are equiprobable. If you get a HH or TT, repeat the experiment
until TH or HT is gotten.

 2. How to use a fair coin to get unfair result?

getting a tail on both tosses is significantly less probable than not
getting one. so, if we designate TT to be tail and any of the other
events to be head, we get an unfair result.

Hope this works.


 --
 Prateek 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, 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] Puzzle

2011-07-29 Thread sagar pareek
check this out...
http://groups.google.com/group/algogeeks/browse_thread/thread/be213f8937b02858?hl=en#



On Thu, Jul 28, 2011 at 10:00 PM, shubham shubh2...@gmail.com wrote:

 answer is:

 1 hr 20 mins.

 But i don't know how to arrive at the solution.

 help anyone..

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

 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
SAGAR PAREEK
COMPUTER SCIENCE AND ENGINEERING
NIT ALLAHABAD

-- 
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] puzzle

2011-07-28 Thread Hemalatha
Give all the primary and  secondary diagonal Elements a value -1 and the
rest as 1s.

-1 1 1 1 1 -1
1 -1 1 1 -1 1
1 1 -1 -1 1 1
1 1 -1 -1  1 1
1 -1 1 1 -1 1
-1 1 1 1 1 -1


Regards
Hemalatha

On Thu, Jul 28, 2011 at 11:29 AM, priyanka goel priya888g...@gmail.comwrote:

 @ SkRiPt...
 can u pl explain ur ans?

 --
 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] puzzle

2011-07-28 Thread sunny agrawal
@Hemlatha
this is one of the possible solution

the Question is to find Number of such solutions

On Thu, Jul 28, 2011 at 12:09 PM, Hemalatha 
hemalatha.amru...@googlemail.com wrote:

 Give all the primary and  secondary diagonal Elements a value -1 and the
 rest as 1s.

 -1 1 1 1 1 -1
 1 -1 1 1 -1 1
 1 1 -1 -1 1 1
 1 1 -1 -1  1 1
 1 -1 1 1 -1 1
 -1 1 1 1 1 -1


 Regards
 Hemalatha


 On Thu, Jul 28, 2011 at 11:29 AM, priyanka goel priya888g...@gmail.comwrote:

 @ SkRiPt...
 can u pl explain ur ans?

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




-- 
Sunny Aggrawal
B-Tech IV year,CSI
Indian Institute Of Technology,Roorkee

-- 
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] puzzle

2011-07-28 Thread sunny agrawal
yes 2^((n-1)^2) is the answer :)

consider a row or column of size n, Number of ways it can we filled with 1's
and -1's(such that product is 1) is
sum of all nCi where i = 0,2,4. (i = no of -1s) and that will be 2^(n-1)
(same is the number when product is -1 )
so now let f(i,j) is the number of ways to fill the matrix of size i,j
then
f(i,j) = 2^(i-2)*2^(j-2)*f(i-1)(j-1)*2
where f(1,1) = 1;

explanation for f(i,j)
matrix of size (i,j) can be broken into four parts = matrix of size(i-1,j-1)
+ jth column of size i-1+ ith row
of size (j-1) + element at[i,j]

so ans is
number of ways matrix [i-1][j-1] can be filled is f(i,j) multiplied with
when both row and col are 1 and element is 1 or both row and col are -1 and
ele is -1

solving the equation for f(n,n) will give 2^((n-1)^2)

@skript
my method is little bit complexhow did u arrived at solution.is
there a simple way to get to the same answer?


On Thu, Jul 28, 2011 at 12:11 PM, sunny agrawal sunny816.i...@gmail.comwrote:

 @Hemlatha
 this is one of the possible solution

 the Question is to find Number of such solutions

 On Thu, Jul 28, 2011 at 12:09 PM, Hemalatha 
 hemalatha.amru...@googlemail.com wrote:

 Give all the primary and  secondary diagonal Elements a value -1 and the
 rest as 1s.

 -1 1 1 1 1 -1
 1 -1 1 1 -1 1
 1 1 -1 -1 1 1
 1 1 -1 -1  1 1
 1 -1 1 1 -1 1
 -1 1 1 1 1 -1


 Regards
 Hemalatha


 On Thu, Jul 28, 2011 at 11:29 AM, priyanka goel 
 priya888g...@gmail.comwrote:

 @ SkRiPt...
 can u pl explain ur ans?

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




 --
 Sunny Aggrawal
 B-Tech IV year,CSI
 Indian Institute Of Technology,Roorkee




-- 
Sunny Aggrawal
B-Tech IV year,CSI
Indian Institute Of Technology,Roorkee

-- 
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] puzzle

2011-07-28 Thread 석문기
The problem is finding the subspaces that satisfy two conditions in the 6*6
total space?

2011/7/28 vetri natarajananitha...@gmail.com

 given a 6x6 matrix with all the elements as either 1 or -1.
 find the number of ways the elements can b arranged such that

 1.the product of all elements of all columns is 1
 2.the product of all elements of all rows is 1

 can u pls post the answer if u no...

 --
 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] Puzzle

2011-07-28 Thread shubham
A man leaves his office daily at 07:00 PM. His driver arrives with the car 
from home to his office at sharp 07:00 PM. So he doesn't need to wait for 
any transport medium as soon he is free from his work. But today he finished 
his work early and left the office at 05:30 PM. As his driver was not there 
so he started moving towards his home on foot. After moving some distance he 
met the driver on the way (As the driver had no idea so he had started at 
the usual time) and took the car. When he reached his home he found that 
today he reached 20 minutes earlier than usual time. Then tell how much time 
it takes the man to reach his office on the normal day (with the car).

-- 
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/-/gn9AJcWvjuoJ.
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] Puzzle

2011-07-28 Thread Kunal Patil
Insufficient data to calculate what you need to find out !!!

On Thu, Jul 28, 2011 at 9:39 PM, shubham shubh2...@gmail.com wrote:

 A man leaves his office daily at 07:00 PM. His driver arrives with the car
 from home to his office at sharp 07:00 PM. So he doesn't need to wait for
 any transport medium as soon he is free from his work. But today he finished
 his work early and left the office at 05:30 PM. As his driver was not there
 so he started moving towards his home on foot. After moving some distance he
 met the driver on the way (As the driver had no idea so he had started at
 the usual time) and took the car. When he reached his home he found that
 today he reached 20 minutes earlier than usual time. Then tell how much time
 it takes the man to reach his office on the normal day (with the car).

  --
 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/-/gn9AJcWvjuoJ.
 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] Puzzle

2011-07-28 Thread Tushar Bindal
we can just infer that at the point where the man met the driver, from that
point, it takes 10 minutes to reach the office (assuming that car moves at
same uniform speed all the time)

-- 
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] Puzzle

2011-07-28 Thread shubham
That's what i was provided with in the interview. Somehow i know the answer, 
but don't know how?

with the data provided above, you have to calculate the time it takes the 
man to reach the office from his home on car.

-- 
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/-/nkUI5p600nsJ.
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] Puzzle

2011-07-28 Thread shubham
answer is:

1 hr 20 mins.

But i don't know how to arrive at the solution.

help anyone..

-- 
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/-/-QFXfKOMKfIJ.
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] Puzzle!!!!!

2011-07-28 Thread AMAN AGARWAL
Can some tell me the solution of this question??

5. Given an array all of whose elements are positive numbers, find the
maximum sum of a subsequence with the constraint that no 2 numbers in the
sequence should be adjacent in the array.

Eg.

i) 3 2 7 10 should return 13 (sum of 3 and 10)

ii) 3 2 5 10 7 should return 15 (sum of 3, 5 and 7)

-- 
AMAN AGARWAL
Success is not final, Failure is not fatal: It is the courage to continue
that counts!

-- 
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] Puzzle!!!!!

2011-07-28 Thread ankit sambyal
use the following recursive equation  :
S{i]=max(S[i-2]+a[i],S[i-1])
S[0]=a[0]
S[1]=max(a[0],a[1])

S[size-1]is the required answer

-- 
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] Puzzle!!!!!

2011-07-28 Thread AMAN AGARWAL
can you please send me the code snippet to get a better understanding.

On Fri, Jul 29, 2011 at 9:51 AM, ankit sambyal ankitsamb...@gmail.comwrote:

 use the following recursive equation  :
 S{i]=max(S[i-2]+a[i],S[i-1])
 S[0]=a[0]
 S[1]=max(a[0],a[1])

 S[size-1]is the required answer

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




-- 
AMAN AGARWAL
Success is not final, Failure is not fatal: It is the courage to continue
that counts!

-- 
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] Puzzle!!!!!

2011-07-28 Thread ankit sambyal
1. Make an array S equal to the length of the given array where
S[0] = a[0] and S[1] = max(a[0],a[1])

2. for i:2 to n-1
 S[i] = max(S[i-2]+a[i], S[i-1])

3. return S[n-1]

-- 
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] Puzzle!!!!!

2011-07-28 Thread AMAN AGARWAL
thanks ankit.

On Fri, Jul 29, 2011 at 9:59 AM, ankit sambyal ankitsamb...@gmail.comwrote:

 1. Make an array S equal to the length of the given array where
 S[0] = a[0] and S[1] = max(a[0],a[1])

 2. for i:2 to n-1

  S[i] = max(S[i-2]+a[i], S[i-1])

 3. return S[n-1]

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




-- 
AMAN AGARWAL
Success is not final, Failure is not fatal: It is the courage to continue
that counts!

-- 
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] Puzzle!!!!!

2011-07-28 Thread Rajeev Kumar
@Aman : check this(same as ankit said) :
http://tech-queries.blogspot.com/2009/05/max-possible-sum-of-non-consecutive.html

On Fri, Jul 29, 2011 at 9:59 AM, ankit sambyal ankitsamb...@gmail.comwrote:

 1. Make an array S equal to the length of the given array where
 S[0] = a[0] and S[1] = max(a[0],a[1])

 2. for i:2 to n-1

  S[i] = max(S[i-2]+a[i], S[i-1])

 3. return S[n-1]

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



[algogeeks] puzzle

2011-07-27 Thread vetri
given a 6x6 matrix with all the elements as either 1 or -1.
find the number of ways the elements can b arranged such that

1.the product of all elements of all columns is 1
2.the product of all elements of all rows is 1

can u pls post the answer if u no...

-- 
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] puzzle

2011-07-27 Thread SkRiPt KiDdIe
(nxn)  = 2^((n-1)^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] puzzle

2011-07-27 Thread priyanka goel
@ SkRiPt...
can u pl explain ur ans?

-- 
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] Puzzle[Google] Can be Solved programatically as well

2011-07-19 Thread D!leep Gupta
Ans. *German*

-- 
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] Puzzle[Google] Can be Solved programatically as well

2011-07-19 Thread archita monga
yaa..

On Tue, Jul 19, 2011 at 1:35 PM, alagammai narayanan
alagamma...@gmail.comwrote:

 Yep.. Its German.. Were you guys able to come up with the 5 * 5 matrix...
 As in who lives in which house?What does he drink,smoke etc..


 On Tue, Jul 19, 2011 at 1:31 PM, archita monga kool.arc...@gmail.comwrote:

 German!


 On Tue, Jul 19, 2011 at 1:22 PM, D!leep Gupta 
 dileep.smil...@gmail.comwrote:

 Ans. *German*

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




 --
 Archita Monga

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




-- 
Archita Monga

-- 
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] Puzzle[Google] Can be Solved programatically as well

2011-07-19 Thread abhishek iyer
Can you please the explain the approach.. Would be very helpful... I dint
get it ...

On Tue, Jul 19, 2011 at 1:37 PM, archita monga kool.arc...@gmail.comwrote:

 yaa..


 On Tue, Jul 19, 2011 at 1:35 PM, alagammai narayanan 
 alagamma...@gmail.com wrote:

 Yep.. Its German.. Were you guys able to come up with the 5 * 5 matrix...
 As in who lives in which house?What does he drink,smoke etc..


 On Tue, Jul 19, 2011 at 1:31 PM, archita monga kool.arc...@gmail.comwrote:

 German!


 On Tue, Jul 19, 2011 at 1:22 PM, D!leep Gupta 
 dileep.smil...@gmail.comwrote:

 Ans. *German*

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




 --
 Archita Monga

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




 --
 Archita Monga

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




-- 
Thanks  Regards
Abhishek Iyer

If You Obey All the Rules, You Will Miss All the Fun. 

-- 
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] Puzzle and solution

2011-07-19 Thread sagar pareek
Question :-



Once upon a time in ancient times there was a king who was very fond of
wines.  He had a huge cellar, which had 1000 different varieties of wine all
in different caskets (1000 caskets in all).  In the adjoining kingdom there
was a queen who was envious of the king’s huge wine collection.  After some
time when she could not bear it any more she conspired to kill her by
poisoning all his wine caskets.  So she one sentry to poison all the
caskets, but no sooner had the sentry poisoned only one wine casket that he
was caught and killed by the Royal guards.  Now the king had a major problem
in his hand so as to identify the right casket, which he gave to the
Minister.  Now the position had two peculiar qualities



 Anyone who takes even one drop of poison will die.

 But, he will die only after one month.



 The king also gave the Minister 10 prisoners who could be used as
tasters, cause there lives was of no consequence to the king of kingdom for
that matter, and the Minister was given one month to find the poisoned
casket.  Is it possible for the Minister to find out in one month?  If so
how? If not then how many months are required?





My solution :-

This can be done in one month

Think the solution in binary

ok first i wanna ask u a question :- how many bits are needed to represent
the number 1000 ?
yeah u r right - 10 bits

so here is the solution
let if any prisoner alive it mean it doesnt die and it will be represented
by 1 else if he dies then he will be represented by 0
number the prisoners from 0-9 with 0 the right most (LSB)
now what will be binary representation of 0 ? 00
so if 0th bottle is poisoned then all prisoners must die so taste the
0th(actually 1st) wine to all the prisoners.
what is binary representation of 1? 01
so taste the 1st(actually 2nd) wine to all except the 0th prisoner.
for 2nd, all except 1st (considering 0th as lowest bit) one

and so on.
so at the end if suppose 6th and 2nd prisoner(consider 0 min and 9 max) left
alive then answer will be :- 1*2^5+1*2^1 +1  (note:- here ^= power)


if anyone have more general solution pls let me know

*I hope this is useful  :) :)*



-- 
**Regards
SAGAR PAREEK
COMPUTER SCIENCE AND ENGINEERING
NIT ALLAHABAD

-- 
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] puzzle

2011-07-19 Thread shiv narayan
There is a temple, whose premises have a garden and a pond. It has 4
idols, each of Ram, Shiv, Vishnu and Durga. The priest plucks x
flowers from the garden and places them in the pond. The number of
flowers
doubles up, and he picks y flowers out of them and goes to offer it to
Lord Ram. By the time he reaches to the pond, he finds the remaining
flowers also have doubled up in the meantime, so he again picks up y
from
the pond and goes to Lord Shiv.This process is repeated till all the
Gods have y flowers offered to them, such that in the end no flower is
left in the pond. Find x and y.

-- 
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] puzzle

2011-07-19 Thread Saket Choudhary
16x=15y. Multiple solutions. Actually Infinite.

On 19 July 2011 23:58, shiv narayan narayan.shiv...@gmail.com wrote:

 There is a temple, whose premises have a garden and a pond. It has 4
 idols, each of Ram, Shiv, Vishnu and Durga. The priest plucks x
 flowers from the garden and places them in the pond. The number of
 flowers
 doubles up, and he picks y flowers out of them and goes to offer it to
 Lord Ram. By the time he reaches to the pond, he finds the remaining
 flowers also have doubled up in the meantime, so he again picks up y
 from
 the pond and goes to Lord Shiv.This process is repeated till all the
 Gods have y flowers offered to them, such that in the end no flower is
 left in the pond. Find x and y.

 --
 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] puzzle

2011-07-19 Thread Kamakshii Aggarwal
any value satisfying 16x=15y.

On Wed, Jul 20, 2011 at 12:14 AM, Saket Choudhary sake...@gmail.com wrote:

 16x=15y. Multiple solutions. Actually Infinite.


 On 19 July 2011 23:58, shiv narayan narayan.shiv...@gmail.com wrote:

 There is a temple, whose premises have a garden and a pond. It has 4
 idols, each of Ram, Shiv, Vishnu and Durga. The priest plucks x
 flowers from the garden and places them in the pond. The number of
 flowers
 doubles up, and he picks y flowers out of them and goes to offer it to
 Lord Ram. By the time he reaches to the pond, he finds the remaining
 flowers also have doubled up in the meantime, so he again picks up y
 from
 the pond and goes to Lord Shiv.This process is repeated till all the
 Gods have y flowers offered to them, such that in the end no flower is
 left in the pond. Find x and y.

 --
 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,
Kamakshi
kamakshi...@gmail.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.



Re: [algogeeks] puzzle-plz explain stepwise

2011-07-14 Thread Tushar Bindal
yx - xy = x0y - yx
=  (10y + x) - (10x + y) = (100x + y) - (10y + x)
9y - 9x = 99x - 9y
18y = 108x
y=6x

Since, x comes in hundreds place, we know it can only be 1 as the difference
between the 3 digit number and two digit number is difference of two 2 digit
numbers only.
thus, y=6*1 = 6

a explained earlier
avg speed = (106-16)/2 = 45 units

-- 
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] puzzle-plz explain stepwise

2011-07-13 Thread shiv narayan
A car is traveling at a uniform speed.The driver sees a milestone
showing a 2-digit number. After traveling for an hour the driver sees
another milestone with the same digits in reverse order.After another
hour the driver sees another milestone containing the same two digits.
What is the average speed of the driver?

-- 
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] puzzle-plz explain stepwise

2011-07-13 Thread Naveen Kumar
http://www.geekinterview.com/question_details/56715

I think you missed zero :)

On Thu, Jul 14, 2011 at 12:20 AM, shiv narayan
narayan.shiv...@gmail.com wrote:
 A car is traveling at a uniform speed.The driver sees a milestone
 showing a 2-digit number. After traveling for an hour the driver sees
 another milestone with the same digits in reverse order.After another
 hour the driver sees another milestone containing the same two digits.
 What is the average speed of the driver?

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





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



Re: [algogeeks] puzzle-plz explain stepwise

2011-07-13 Thread udit sharma
Ans should be 45km/hr. :)

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



Re: [algogeeks] puzzle-plz explain stepwise

2011-07-13 Thread SkRiPt KiDdIe
initially he saw say xy then he saw yx now what next does he
see...containing only x and y??

Please clarify your question..


On Thu, Jul 14, 2011 at 12:59 AM, udit sharma sharmaudit...@gmail.comwrote:


 Ans should be 45km/hr. :)

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


-- 
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] puzzle-plz explain stepwise

2011-07-13 Thread Siddharth kumar
1st: xy
2nd: yx
3rd: x0y

-- 
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] puzzle-plz explain stepwise

2011-07-13 Thread SkRiPt KiDdIe
Relation comes out as : y=6x

so x=1 ans y=6.

so 1st: 16 (say km)
2nd: 61
3rd: 106

av. speed=(106-16)/2=45 km/hr

On Thu, Jul 14, 2011 at 1:13 AM, Siddharth kumar 
siddhartha.baran...@gmail.com wrote:

 1st: xy
 2nd: yx
 3rd: x0y

 --
 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] puzzle

2011-07-10 Thread udit sharma
6,24,60,120,210,336..

 (N^3 - N) where N=2,3,4





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



Re: [algogeeks] puzzle

2011-07-10 Thread vaibhav shukla
or it can be

2^3-2=6
3^3-3=24
4^3-4=60
5^3-5=120
6^3-6=210...

On Sun, Jul 10, 2011 at 9:35 AM, Abhishek Soni ab.abhish...@gmail.comwrote:

 6,24,60,120,210,336..

 Explaination:
 0  + (6*1) = 6,
 6  + (6*3) = 24,
 24+ (6*6) = 60,
 60+ (6*10) = 120,
 120 + (6*15) = 210,
 210 + (6*21) = 336,...



 On Sat, Jul 9, 2011 at 8:43 PM, aayush jain jain.aayus...@gmail.comwrote:

 plz give the logic of above series.

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




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



Re: [algogeeks] puzzle

2011-07-10 Thread aayush jain
thanx

-- 
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] puzzle

2011-07-09 Thread amit the cool
find d next:
91,110,134,_

-- 
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] puzzle

2011-07-09 Thread amit the cool
6,24,60,120,_

-- 
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] puzzle

2011-07-09 Thread Aman Goyal
210 for the last one you posted

On Sat, Jul 9, 2011 at 4:33 PM, amit the cool amitthecoo...@gmail.comwrote:

 6,24,60,120,_

 --
 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] puzzle

2011-07-09 Thread Yogesh Yadav
91,110,134161 i guess
6,24,60,120210


On Sat, Jul 9, 2011 at 5:46 PM, Aman Goyal aman.goya...@gmail.com wrote:

 210 for the last one you posted


 On Sat, Jul 9, 2011 at 4:33 PM, amit the cool amitthecoo...@gmail.comwrote:

 6,24,60,120,_

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



Re: [algogeeks] puzzle

2011-07-09 Thread vaibhav shukla
91,110,134,..163 ...
6,24,60,120..210

On Sat, Jul 9, 2011 at 6:48 PM, Yogesh Yadav medu...@gmail.com wrote:

 91,110,134161 i guess
 6,24,60,120210



 On Sat, Jul 9, 2011 at 5:46 PM, Aman Goyal aman.goya...@gmail.com wrote:

 210 for the last one you posted


 On Sat, Jul 9, 2011 at 4:33 PM, amit the cool amitthecoo...@gmail.comwrote:

 6,24,60,120,_

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




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



Re: [algogeeks] puzzle

2011-07-09 Thread Nikita Jain
Can someone please suggest some good links to get questions related to
number series ...



Regards and Thanks
Nikita Jain

On Sat, Jul 9, 2011 at 8:25 PM, vaibhav shukla vaibhav200...@gmail.comwrote:

 91,110,134,..163 ...
 6,24,60,120..210

 On Sat, Jul 9, 2011 at 6:48 PM, Yogesh Yadav medu...@gmail.com wrote:

 91,110,134161 i guess
 6,24,60,120210



 On Sat, Jul 9, 2011 at 5:46 PM, Aman Goyal aman.goya...@gmail.comwrote:

 210 for the last one you posted


 On Sat, Jul 9, 2011 at 4:33 PM, amit the cool 
 amitthecoo...@gmail.comwrote:

 6,24,60,120,_

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




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


-- 
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] puzzle

2011-07-09 Thread Abhishek Soni
is it
6,24,60,120,210,336,.. ?

On Sat, Jul 9, 2011 at 4:03 AM, amit the cool amitthecoo...@gmail.comwrote:

 6,24,60,120,_

 --
 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] puzzle

2011-07-09 Thread varun pahwa
6,24,60,120,210,240..

On Sun, Jul 10, 2011 at 3:29 AM, Abhishek Soni ab.abhish...@gmail.comwrote:

 is it
 6,24,60,120,210,336,.. ?


 On Sat, Jul 9, 2011 at 4:03 AM, amit the cool amitthecoo...@gmail.comwrote:

 6,24,60,120,_

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




-- 
Varun Pahwa
B.Tech (IT)
7th Sem.
Indian Institute of Information Technology Allahabad.
Ph : 09793899112
Official Email :: rit2008...@iiita.ac.in
Another Email :: varunpahwa.ii...@gmail.com

People who fail to plan are those who plan to fail.

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



  1   2   >