Re: [algogeeks] Re: Intersection of 2 linked lists -

2011-06-03 Thread Arpit Mittal
@naveen ,ross and ankit - 

I know that linked list has only one next pointer and it can point to single
point only.
Sorry that i didn't explained my example actually it is like
 LL1 = 1 - 2 - 3 - 4
LL2 =  5 - 7 - 3 - 9

and i mean to said that LL1 and LL2 have node (whose value is 3) are common,
so can't we say that LL1 and LL2 are intersecting each other.

but by all of your explanations, now i have understand that after
node(having digit value 3) in both linked list they must have the same
value.

LL1 = 1 2 3 4
LL2 = 5 7 3 4

now am i right guys? :)

On Thu, Jun 2, 2011 at 10:56 PM, ankit sambyal ankitsamb...@gmail.comwrote:

 @Arpit : By intersection of the 2 linked lists, we mean that the
 pointers to a node are common. It does not mean that if 2 nodes have
 the same data value, they intersect.
 Also a node can have only 1 next node, not 2. So, in the example
 provided by u, how can node having data value 3 point to 2 node 
 Thats not possible !!



 On Thu, Jun 2, 2011 at 10:33 PM, ross jagadish1...@gmail.com wrote:
  Hi Arpit,
  I dont think this sort of intersection is possible..
  A linked list has only one next pointer and it can point to single
  node only.
  In the counter example you gave, the next ptr of node 3 points to two
  nodes.
  So, such a case does not arise.
 
  On Jun 3, 9:26 am, Arpit Mittal mrmittalro...@gmail.com wrote:
  L1 L2
  1 5
  27
   3
  94
 
  Is this situation not possible?
 
  On Thu, Jun 2, 2011 at 10:23 PM, anand karthik
  anandkarthik@gmail.comwrote:
 
   How can that be unless 3 has two next nodes?
 
   --
   You received this message because you are subscribed 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.
 
  --
  -Arpit Mittal
  6th Semester,
  Indian Institute of Information Technology,Allahabad
  Email : arpitmittal.ii...@gmail.com
 rit2008...@iiita.ac.in
  Contact : +91-8853049787
 
  Let every man be respected as an individual and no man idolized.
 
  --
  You received this message because you are subscribed 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.




-- 
-Arpit Mittal
6th Semester,
Indian Institute of Information Technology,Allahabad
Email : arpitmittal.ii...@gmail.com
   rit2008...@iiita.ac.in
Contact : +91-8853049787

Let every man be respected as an individual and no man idolized.

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



Re: [algogeeks] Re: Intersection of 2 linked lists -

2011-06-03 Thread Arpit Mittal
yeah ok, thanks

On Thu, Jun 2, 2011 at 11:13 PM, ankit sambyal ankitsamb...@gmail.comwrote:

 I have explained what intersection means in my previous post 

 Ankit

 On Thu, Jun 2, 2011 at 11:07 PM, Arpit Mittal mrmittalro...@gmail.com
 wrote:
  @naveen ,ross and ankit - 
 
  I know that linked list has only one next pointer and it can point to
 single
  point only.
  Sorry that i didn't explained my example actually it is like
   LL1 = 1 - 2 - 3 - 4
  LL2 =  5 - 7 - 3 - 9
 
  and i mean to said that LL1 and LL2 have node (whose value is 3) are
 common,
  so can't we say that LL1 and LL2 are intersecting each other.
 
  but by all of your explanations, now i have understand that after
  node(having digit value 3) in both linked list they must have the same
  value.
 
  LL1 = 1 2 3 4
  LL2 = 5 7 3 4
 
  now am i right guys? :)
 
  On Thu, Jun 2, 2011 at 10:56 PM, ankit sambyal ankitsamb...@gmail.com
  wrote:
 
  @Arpit : By intersection of the 2 linked lists, we mean that the
  pointers to a node are common. It does not mean that if 2 nodes have
  the same data value, they intersect.
  Also a node can have only 1 next node, not 2. So, in the example
  provided by u, how can node having data value 3 point to 2 node 
  Thats not possible !!
 
 
 
  On Thu, Jun 2, 2011 at 10:33 PM, ross jagadish1...@gmail.com wrote:
   Hi Arpit,
   I dont think this sort of intersection is possible..
   A linked list has only one next pointer and it can point to single
   node only.
   In the counter example you gave, the next ptr of node 3 points to two
   nodes.
   So, such a case does not arise.
  
   On Jun 3, 9:26 am, Arpit Mittal mrmittalro...@gmail.com wrote:
   L1 L2
   1 5
   27
3
   94
  
   Is this situation not possible?
  
   On Thu, Jun 2, 2011 at 10:23 PM, anand karthik
   anandkarthik@gmail.comwrote:
  
How can that be unless 3 has two next nodes?
  
--
You received this message because you are subscribed 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.
  
   --
   -Arpit Mittal
   6th Semester,
   Indian Institute of Information Technology,Allahabad
   Email : arpitmittal.ii...@gmail.com
  rit2008...@iiita.ac.in
   Contact : +91-8853049787
  
   Let every man be respected as an individual and no man idolized.
  
   --
   You received this message because you are subscribed 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.
 
 
 
 
  --
  -Arpit Mittal
  6th Semester,
  Indian Institute of Information Technology,Allahabad
  Email : arpitmittal.ii...@gmail.com
 rit2008...@iiita.ac.in
  Contact : +91-8853049787
 
  Let every man be respected as an individual and no man idolized.
 
 
  --
  You received this message because you are subscribed 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.




-- 
-Arpit Mittal
6th Semester,
Indian Institute of Information Technology,Allahabad
Email : arpitmittal.ii...@gmail.com
   rit2008...@iiita.ac.in
Contact : +91-8853049787

Let every man be respected as an individual and no man idolized.

-- 
You received this message because you are subscribed 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] A simple C question

2011-06-03 Thread Arpit Mittal
Please help me in this question.

What's the  condition so that the following code prints both HelloWorld !

if  condition
printf (Hello);
else
printf(World);




-- 
-Arpit Mittal
6th Semester,
Indian Institute of Information Technology,Allahabad
Email : arpitmittal.ii...@gmail.com
   rit2008...@iiita.ac.in
Contact : +91-8853049787

Let every man be respected as an individual and no man idolized.

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



Re: [algogeeks] Re: Intersection of 2 linked lists -

2011-06-02 Thread Arpit Mittal
Hi ankit,

I am just asking my doubt, i am not sure...

if linked list say l1 is = 2 3 4 5
linked list l2 is = 1 3 7 9
now we can also say that l1 and l2 intersect at 3.
so in this case wouldn't ur soln will fail?
or this type of intersection that i am talking about is not possible?

On Thu, Jun 2, 2011 at 8:35 PM, ross jagadish1...@gmail.com wrote:

 Hi Ankit,
 Thats was Nice solution ! :)
 In case we maintain a pointer to the last node in the linked list,
 then it is O(1) in time right?


 On Jun 3, 12:00 am, ankit sambyal ankitsamb...@gmail.com wrote:
  Traverse the 2 linked lists. Check if the node just before NULL is the
  same in both the linked lists. If it is then there is an
  intersection(return 1), otherwise not (return 0). The logic is that
  whenever 2 linked lists intersect, all the nodes starting from the
  point of intersection to the end of the linked lists are the same.
 
  Time Complexity:O(m+n),where m  n are the size of the 2 linked lists
  Space Complexity : O(1)
 
  Ankit Sambyal
  BITS Pilani
 
 
 
 
 
 
 
  On Thu, Jun 2, 2011 at 11:54 AM, ross jagadish1...@gmail.com wrote:
 
   Given 2 linked lists, determine whether they intersect or not?
   (question is not find the point of intersection, which i am sure can
   be done by computing the lengths of both lists (len1 and len2)
   and traversing the larger list by |len1 - len2| and traversing
   subsequently
   until 2 ptrs meet.
 
   I am looking for a bettre approach that does not find the intersection
   pt
   but whether that the lists intersect or not
 
   --
   You received this message because you are subscribed 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 athttp://
 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.




-- 
-Arpit Mittal
6th Semester,
Indian Institute of Information Technology,Allahabad
Email : arpitmittal.ii...@gmail.com
   rit2008...@iiita.ac.in
Contact : +91-8853049787

Let every man be respected as an individual and no man idolized.

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



Re: [algogeeks] Re: Intersection of 2 linked lists -

2011-06-02 Thread Arpit Mittal
L1 L2
1 5
27
 3
94

Is this situation not possible?

On Thu, Jun 2, 2011 at 10:23 PM, anand karthik
anandkarthik@gmail.comwrote:

 How can that be unless 3 has two next nodes?

 --
 You received this message because you are subscribed 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.




-- 
-Arpit Mittal
6th Semester,
Indian Institute of Information Technology,Allahabad
Email : arpitmittal.ii...@gmail.com
   rit2008...@iiita.ac.in
Contact : +91-8853049787

Let every man be respected as an individual and no man idolized.

-- 
You received this message because you are subscribed 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-05-27 Thread Arpit Mittal
8?

On Fri, May 27, 2011 at 2:26 AM, anil chopra anil.chopra2...@gmail.comwrote:

 11

 On Fri, May 13, 2011 at 12:14 AM, amit amitjaspal...@gmail.com wrote:

 Consider a series in which 8 teams are participating. each team plays
 twice with all other teams. 4 of them will go to the semi final.How
 many matches should a team win, so that it will ensure that it will go
 to semi finals.?

 --
 You received this message because you are subscribed 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.




-- 
-Arpit Mittal
6th Semester,
Indian Institute of Information Technology,Allahabad
Email : arpitmittal.ii...@gmail.com
   rit2008...@iiita.ac.in
Contact : +91-8853049787

Let every man be respected as an individual and no man idolized.

-- 
You received this message because you are subscribed 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-05-27 Thread Arpit Mittal
could you please explain how?

On Fri, May 27, 2011 at 3:45 AM, varun pahwa varunpahwa2...@gmail.comwrote:

 i think 11.

 On Fri, May 27, 2011 at 3:06 PM, Arpit Mittal mrmittalro...@gmail.comwrote:

 8?


 On Fri, May 27, 2011 at 2:26 AM, anil chopra 
 anil.chopra2...@gmail.comwrote:

 11

 On Fri, May 13, 2011 at 12:14 AM, amit amitjaspal...@gmail.com wrote:

 Consider a series in which 8 teams are participating. each team plays
 twice with all other teams. 4 of them will go to the semi final.How
 many matches should a team win, so that it will ensure that it will go
 to semi finals.?

 --
 You received this message because you are subscribed 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.




 --
 -Arpit Mittal
 6th Semester,
 Indian Institute of Information Technology,Allahabad
 Email : arpitmittal.ii...@gmail.com
rit2008...@iiita.ac.in
 Contact : +91-8853049787

 Let every man be respected as an individual and no man idolized.


  --
 You received this message because you are subscribed 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)
 6th Sem.
 Indian Institute Of Information Technology Allahabad(Amethi Campus)
 Ph : 09793899112 ,07206833114
 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.




-- 
-Arpit Mittal
6th Semester,
Indian Institute of Information Technology,Allahabad
Email : arpitmittal.ii...@gmail.com
   rit2008...@iiita.ac.in
Contact : +91-8853049787

Let every man be respected as an individual and no man idolized.

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



Re: [algogeeks] Re: Puzzle

2011-05-27 Thread Arpit Mittal
@rishabh :

in your solution u have taken scores of last 4 teams as 6 4 2 0. what if i
take 2 2 2 2 then the ans would be 56-(2+2+2+2)/4 = 12...!!!

and i can also take the scores of last 4 teams as 6 4 4 2 then the ans would
be
56-(6+4+4+2)/4 = 10!!!

so how you can say it would be 11?



On Fri, May 27, 2011 at 6:52 AM, Rishabh Maurya poofiefoo...@gmail.comwrote:

 No , you are wrong  ..  problem statement says how many matches should a
 teams win to ensure its qualification , their no word like minimum or
 maximum  ...
 8 gets wrong if following situation arises

 1 - 9
 2 - 9
 3 - 9
 4 - 9
 5 - 8
 6 - 6
 7 - 4
 8 - 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.




-- 
-Arpit Mittal
6th Semester,
Indian Institute of Information Technology,Allahabad
Email : arpitmittal.ii...@gmail.com
   rit2008...@iiita.ac.in
Contact : +91-8853049787

Let every man be respected as an individual and no man idolized.

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



Re: [algogeeks] Re: Puzzle

2011-05-27 Thread Arpit Mittal
@rishabh : now i understand it better... thanks :)


On Fri, May 27, 2011 at 7:22 AM, Rishabh Maurya poofiefoo...@gmail.comwrote:

 because we want upper 4 teams to win maximum matches altogether    so
 to satisfy this criteria  ..  last team should win 0 , and team 7 must have
 lost all its matches except from team 8  , so it wins 2 and similarly team 6
 wins 4 and team 5 wins 6 .

 don't forget to watch   MI vs RCB .. :)

 --
 You received this message because you are subscribed 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.




-- 
-Arpit Mittal
6th Semester,
Indian Institute of Information Technology,Allahabad
Email : arpitmittal.ii...@gmail.com
   rit2008...@iiita.ac.in
Contact : +91-8853049787

Let every man be respected as an individual and no man idolized.

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



Re: [algogeeks] Re: Puzzle

2011-05-27 Thread Arpit Mittal
@Vishwakarma

it is now ok that 11 should be the answer, but why any 4 teams cannot win 12
matches in total...

for that they have to score 12*4 = 48 points out of 56. then wats the
problem.

i know how it is coming 11 now, but i am replying back for the doubt i have
in a line u just mentioned in your post... :)


On Fri, May 27, 2011 at 7:23 AM, vishwakarma vishwakarma.ii...@gmail.comwrote:

 @Arpit 

 Any four team cannot win 12 matches in total.
 ...Rishabh is wid right answer that is (  11  ).

 Hence any team winning its any 11 out of 14 matches ensures its entry
 to semis.
 But not below 11 its entry to semi will depend on other team
 performance.


 On May 27, 7:11 pm, Arpit Mittal mrmittalro...@gmail.com wrote:
  @rishabh :
 
  in your solution u have taken scores of last 4 teams as 6 4 2 0. what if
 i
  take 2 2 2 2 then the ans would be 56-(2+2+2+2)/4 = 12...!!!
 
  and i can also take the scores of last 4 teams as 6 4 4 2 then the ans
 would
  be
  56-(6+4+4+2)/4 = 10!!!
 
  so how you can say it would be 11?
 
  On Fri, May 27, 2011 at 6:52 AM, Rishabh Maurya poofiefoo...@gmail.com
 wrote:
 
 
 
 
 
 
 
 
 
   No , you are wrong  ..  problem statement says how many matches should
 a
   teams win to ensure its qualification , their no word like minimum or
   maximum  ...
   8 gets wrong if following situation arises
 
   1 - 9
   2 - 9
   3 - 9
   4 - 9
   5 - 8
   6 - 6
   7 - 4
   8 - 2
 
--
   You received this message because you are subscribed to the Google
 Groups
   Algorithm Geeks group. To post to this group, send email
 toalgoge...@googlegroups.com.
   To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
   For more options, visit this group at
  http://groups.google.com/group/algogeeks?hl=en.
 
  --
  -Arpit Mittal
  6th Semester,
  Indian Institute of Information Technology,Allahabad
  Email : arpitmittal.ii...@gmail.com
 rit2008...@iiita.ac.in
  Contact : +91-8853049787
 
  Let every man be respected as an individual and no man idolized.

 --
 You received this message because you are subscribed 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.




-- 
-Arpit Mittal
6th Semester,
Indian Institute of Information Technology,Allahabad
Email : arpitmittal.ii...@gmail.com
   rit2008...@iiita.ac.in
Contact : +91-8853049787

Let every man be respected as an individual and no man idolized.

-- 
You received this message because you are subscribed 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] Google Interview Question

2011-05-27 Thread Arpit Mittal
 options, visit this group at
  http://groups.google.com/group/algogeeks?hl=en.
 
 


 --
 *Piyush Sinha*
 *IIIT, Allahabad*
 *+91-8792136657*
 *+91-7483122727*
 *https://www.facebook.com/profile.php?id=10655377926 *

 --
 You received this message because you are subscribed 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,
 Vipul




 --
 Regards,
 Vipul

  --
 You received this message because you are subscribed 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.




 --
 -Aakash Johari
 (IIIT 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.




-- 
-Arpit Mittal
6th Semester,
Indian Institute of Information Technology,Allahabad
Email : arpitmittal.ii...@gmail.com
   rit2008...@iiita.ac.in
Contact : +91-8853049787

Let every man be respected as an individual and no man idolized.

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



Re: [algogeeks] Re: Puzzle

2011-05-27 Thread Arpit Mittal
@vishwakarma

thanks for rectifying me...
its clear... 12 is not posible, i was in another way :)

On Fri, May 27, 2011 at 7:46 AM, vishwakarma vishwakarma.ii...@gmail.comwrote:

 correction---it was typo mistake ...
 Team  C loses to(one to A and one to B)

 On May 27, 7:44 pm, vishwakarma vishwakarma.ii...@gmail.com wrote:
  so here we go 
 
  Let A loses two of its matches to (one to B and one to C).
  Let B loses two of its matches to(one to A and one to C)
  Then C loses two of its matches to(one to A and one to C).
  Now.
  team D, if it ever plays with (A,B,C) will loses..hence minimum number
  o matches it is going to loses is 6.
 
  Hence, D could only won 8 matches...
  A--12
  B--12
  C--12
  D--8
  The same thing goes to if the above team instead of loosing its two
  matches to two different team loses to a same team.
  Hence (12,12,12,12) cannot be feasible !!!
 
  I hope it is clear.
 
  On May 27, 7:27 pm, Arpit Mittal mrmittalro...@gmail.com wrote:
 
 
 
 
 
 
 
   @Vishwakarma
 
   it is now ok that 11 should be the answer, but why any 4 teams cannot
 win 12
   matches in total...
 
   for that they have to score 12*4 = 48 points out of 56. then wats the
   problem.
 
   i know how it is coming 11 now, but i am replying back for the doubt i
 have
   in a line u just mentioned in your post... :)
 
   On Fri, May 27, 2011 at 7:23 AM, vishwakarma 
 vishwakarma.ii...@gmail.comwrote:
 
@Arpit 
 
Any four team cannot win 12 matches in total.
...Rishabh is wid right answer that is (  11  ).
 
Hence any team winning its any 11 out of 14 matches ensures its entry
to semis.
But not below 11 its entry to semi will depend on other team
performance.
 
On May 27, 7:11 pm, Arpit Mittal mrmittalro...@gmail.com wrote:
 @rishabh :
 
 in your solution u have taken scores of last 4 teams as 6 4 2 0.
 what if
i
 take 2 2 2 2 then the ans would be 56-(2+2+2+2)/4 = 12...!!!
 
 and i can also take the scores of last 4 teams as 6 4 4 2 then the
 ans
would
 be
 56-(6+4+4+2)/4 = 10!!!
 
 so how you can say it would be 11?
 
 On Fri, May 27, 2011 at 6:52 AM, Rishabh Maurya 
 poofiefoo...@gmail.com
wrote:
 
  No , you are wrong  ..  problem statement says how many matches
 should
a
  teams win to ensure its qualification , their no word like
 minimum or
  maximum  ...
  8 gets wrong if following situation arises
 
  1 - 9
  2 - 9
  3 - 9
  4 - 9
  5 - 8
  6 - 6
  7 - 4
  8 - 2
 
   --
  You received this message because you are subscribed to the
 Google
GroupsAlgorithm Geeks group. To post to this group, send
 emailtoalgoge...@googlegroups.com.To unsubscribe from this group,
 send email toalgogeeks+unsubscr...@googlegroups.com.
  For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.
 
 --
 -Arpit Mittal
 6th Semester,
 Indian Institute of Information Technology,Allahabad
 Email : arpitmittal.ii...@gmail.com
rit2008...@iiita.ac.in
 Contact : +91-8853049787
 
 Let every man be respected as an individual and no man idolized.
 
--
You received this message because you are subscribed to the Google
 Groups  Algorithm Geeks group. To post to this group, send
 emailtoalgoge...@googlegroups.com.  To unsubscribe from this group, send
 email toalgogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at
   http://groups.google.com/group/algogeeks?hl=en.
 
   --
   -Arpit Mittal
   6th Semester,
   Indian Institute of Information Technology,Allahabad
   Email : arpitmittal.ii...@gmail.com
  rit2008...@iiita.ac.in
   Contact : +91-8853049787
 
   Let every man be respected as an individual and no man idolized.

 --
 You received this message because you are subscribed 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.




-- 
-Arpit Mittal
6th Semester,
Indian Institute of Information Technology,Allahabad
Email : arpitmittal.ii...@gmail.com
   rit2008...@iiita.ac.in
Contact : +91-8853049787

Let every man be respected as an individual and no man idolized.

-- 
You received this message because you are subscribed 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] [brain teaser ] Hardest Brain Teaser 22april

2011-04-22 Thread Arpit Mittal
its a palindrome in morse code... :)

On Fri, Apr 22, 2011 at 1:28 PM, Anurag atri anu.anurag@gmail.comwrote:

 hehe :)
 here is a hint : dots and dashes :)

 On Fri, Apr 22, 2011 at 12:53 PM, Shuaib aries.shu...@gmail.com wrote:

  Well, I know the answer, but won't spoil the fun(?) for others. This is
 less of a brain teaser, and more of a general knowledge question.

 --
 Shuaib
 http://twitter.com/ShuaibKhan
 http://bytehood.com/

 On Friday, April 22, 2011 at 12:19 PM, Lavesh Rawat wrote:

 *
  A palindrome is a word that reads the same when spelled backwards (eg
 rotavator).
 How could the following word be considered a palindrome?

 FOOTSTOOL

 ** Hardest Brain Teaser

  *
 *Update Your Answers at* : Click 
 Herehttp://dailybrainteaser.blogspot.com/2011/04/hardest-brain-teaser-22april.html?lavesh=lavesh

 Solution:
 Will be updated after 1 day



 --

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

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


   --
 You received this message because you are subscribed 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
 II 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.




-- 
-Arpit Mittal
6th Semester,
Indian Institute of Information Technology,Allahabad
Email : arpitmittal.ii...@gmail.com
   rit2008...@iiita.ac.in
Contact : +91-8853049787

Let every man be respected as an individual and no man idolized.

-- 
You received this message because you are subscribed 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.