[algogeeks] Interview Questions

2011-08-17 Thread SAMMM
Can anyone tell me wht does banking firm ask in interview other than
Technical stuffs , algo , puzzles?? Any suggestion .

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



[algogeeks] Re: C output

2011-08-17 Thread venkat
yes u r correct

On Aug 16, 8:22 pm, Sanjay Rajpal sanjay.raj...@live.in wrote:
 This is becuase Hello is a constant string and constant strings get stored
 in *Data Area, not in stack for the function you called. *Thats why pointer
 to constant string will be returned and program will not produce any error.

 Sanjay Kumar
 B.Tech Final Year
 Department of Computer Engineering
 National Institute of Technology Kurukshetra
 Kurukshetra - 136119
 Haryana, India

 On Tue, Aug 16, 2011 at 8:19 AM, rohit raman.u...@gmail.com wrote:
  #includestdio.hconst char *fun();
  int main()
  {
      char *ptr = fun();
      return 0;
  }const char *fun()
  {
      return Hello;
  }

  Why doesn't this code give error??

  --
  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/-/qeUTNwGNKfwJ.
  To post to this group, send email to algogeeks@googlegroups.com.
  To unsubscribe from 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] Prime numbers

2011-08-17 Thread Nitin Nizhawan
Hi Dod,

  Could you pls expalin what this algorithm is doing and from where you got
it.

Thanks
Nitin
On Wed, Aug 17, 2011 at 2:56 AM, Don dondod...@gmail.com wrote:

 I wrote a program to print prime numbers, but it is not very fast. Can
 someone help me figure out why?


 #include stdio.h

 /* This program implements a blindingly fast algorithm
   to find prime numbers, using an elegant recursive method. */
 int _(int n, int m, int d, int t=0)
 {
int r;
if (t) return d?1+_(n,m,d-1,d):n?_(n-1,m,m,n):0;
for(r=m!=n; d*(tn); ++t)
r = _(n,_(t,m,0,1),d-1)|!_(t,1,t);
return r*n;
 }


 /*--
  Print primes up to the requested value
 */
 int main(int argc, char* argv[])
 {
for(int n = 2; n = 1000; n++)
printf(%d is%s prime\n,n, _(n,1,n,0)?: not);

return 0;
 }

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



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



[algogeeks] Re : Number of Common Factors between two numbers

2011-08-17 Thread shady
if two numbers are x, y
Don't state the algorithm with time complexity : O(sqrt(min(x, y)))
any alternative approach O(log(max(x, 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] Re: Memory Leak

2011-08-17 Thread Prem Krishna Chettri
Well to answer U SAMM.. M not a fresher so in my interview they wont ask me
this Rather they ask me Design Valgrind.. :D

So... I told U guys tool name Implementation is Something U can think of..

My Recommendation is Use of Stack..

Prem

On Tue, Aug 16, 2011 at 8:35 PM, SAMMM somnath.nit...@gmail.com wrote:

 If u were asked this question in an interview , wht would be your
 answer ?

 Using Valgrind .  If the interviewer ask without using other
 software , then wht ???

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



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



Re: [algogeeks] Re: array question

2011-08-17 Thread Sanjay Rajpal
See when u xor two same numbers, the result is 0.
So as mentioned in the question, all numbers occur twice, so the result will
be 0 for them and the one occuring once will be left(as 0 ^ number gives
number itself).
Hope u got
Sanjay Kumar
B.Tech Final Year
Department of Computer Engineering
National Institute of Technology Kurukshetra
Kurukshetra - 136119
Haryana, India
Contact: +91-8053566286, +91-9729683720



On Tue, Aug 16, 2011 at 10:07 PM, Anika Jain anika.jai...@gmail.com wrote:

 i cudnt understand how is it done here by using xor by chen.. aftergetting
 F it wud be the xor of of odd occuring elements, fine, then he wrote
 if(xor)A1 ==0 how is this logic used??


 On Wed, Aug 17, 2011 at 8:17 AM, saurabh singh saurab...@gmail.comwrote:

 +1 to dave.xor is the way to go.


 On Tue, Aug 16, 2011 at 7:06 PM, Dave dave_and_da...@juno.com wrote:

 @Raghavan: But aren't maps implemented as binary search trees? That
 would make insertion and searching O(log n), and the overall operation
 O(n log n).

 Dave

 On Aug 16, 4:08 am, Raghavan its...@gmail.com wrote:
  @sukran:
  If you were asking for the map based solution
 
  space and time complexity would be o(n).
 
  On Tue, Aug 16, 2011 at 2:34 PM, sukran dhawan sukrandha...@gmail.com
 wrote:
 
 
 
 
 
   what is the complexity in which it has been done ?
 
On Tue, Aug 16, 2011 at 1:41 PM, MAC macatad...@gmail.com wrote:
 
   Given an array of integers. Each number in the array repeats ODD
 number of
   times, but only 1 number repeated for EVEN number of times. Find
 that
   number.
 
   --
   thanks
   --mac
 
--
   You received this message because you are subscribed to the Google
 Groups
   Algorithm Geeks group.
   To post to this group, send email to algogeeks@googlegroups.com.
   To unsubscribe from 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.
 
  --
  Thanks and Regards,
  Raghavan KL

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




 --
 Saurabh Singh
 B.Tech (Computer Science)
 MNNIT 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.


-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from 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: array question

2011-08-17 Thread Sanjay Rajpal
Oh sorry, i didnt read the question carefully:)


Sanjay Kumar
B.Tech Final Year
Department of Computer Engineering
National Institute of Technology Kurukshetra
Kurukshetra - 136119
Haryana, India


On Wed, Aug 17, 2011 at 12:34 AM, Sanjay Rajpal sanjay.raj...@live.inwrote:

  See when u xor two same numbers, the result is 0.
 So as mentioned in the question, all numbers occur twice, so the result
 will be 0 for them and the one occuring once will be left(as 0 ^ number
 gives number itself).
 Hope u got
 Sanjay Kumar
 B.Tech Final Year
 Department of Computer Engineering
 National Institute of Technology Kurukshetra
 Kurukshetra - 136119
 Haryana, India
 Contact: +91-8053566286, +91-9729683720



 On Tue, Aug 16, 2011 at 10:07 PM, Anika Jain anika.jai...@gmail.comwrote:

 i cudnt understand how is it done here by using xor by chen.. aftergetting
 F it wud be the xor of of odd occuring elements, fine, then he wrote
 if(xor)A1 ==0 how is this logic used??


 On Wed, Aug 17, 2011 at 8:17 AM, saurabh singh saurab...@gmail.comwrote:

 +1 to dave.xor is the way to go.


 On Tue, Aug 16, 2011 at 7:06 PM, Dave dave_and_da...@juno.com wrote:

 @Raghavan: But aren't maps implemented as binary search trees? That
 would make insertion and searching O(log n), and the overall operation
 O(n log n).

 Dave

 On Aug 16, 4:08 am, Raghavan its...@gmail.com wrote:
  @sukran:
  If you were asking for the map based solution
 
  space and time complexity would be o(n).
 
  On Tue, Aug 16, 2011 at 2:34 PM, sukran dhawan 
 sukrandha...@gmail.comwrote:
 
 
 
 
 
   what is the complexity in which it has been done ?
 
On Tue, Aug 16, 2011 at 1:41 PM, MAC macatad...@gmail.com wrote:
 
   Given an array of integers. Each number in the array repeats ODD
 number of
   times, but only 1 number repeated for EVEN number of times. Find
 that
   number.
 
   --
   thanks
   --mac
 
--
   You received this message because you are subscribed to the Google
 Groups
   Algorithm Geeks group.
   To post to this group, send email to algogeeks@googlegroups.com.
   To unsubscribe from 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.
 
  --
  Thanks and Regards,
  Raghavan KL

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




 --
 Saurabh Singh
 B.Tech (Computer Science)
 MNNIT 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.




-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from 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: array question

2011-08-17 Thread Sanjay Rajpal
See when u xor two same numbers, the result is 0.
So as mentioned in the question, all numbers occur twice, so the result will
be 0 for them and the one occuring once will be left(as 0 ^ number gives
number itself).
Hope u got it :)



Sanjay Kumar
B.Tech Final Year
Department of Computer Engineering
National Institute of Technology Kurukshetra
Kurukshetra - 136119
Haryana, India
On Tue, Aug 16, 2011 at 10:07 PM, Anika Jain anika.jai...@gmail.com wrote:

 i cudnt understand how is it done here by using xor by chen.. aftergetting
 F it wud be the xor of of odd occuring elements, fine, then he wrote
 if(xor)A1 ==0 how is this logic used??


 On Wed, Aug 17, 2011 at 8:17 AM, saurabh singh saurab...@gmail.comwrote:

 +1 to dave.xor is the way to go.


 On Tue, Aug 16, 2011 at 7:06 PM, Dave dave_and_da...@juno.com wrote:

 @Raghavan: But aren't maps implemented as binary search trees? That
 would make insertion and searching O(log n), and the overall operation
 O(n log n).

 Dave

 On Aug 16, 4:08 am, Raghavan its...@gmail.com wrote:
  @sukran:
  If you were asking for the map based solution
 
  space and time complexity would be o(n).
 
  On Tue, Aug 16, 2011 at 2:34 PM, sukran dhawan sukrandha...@gmail.com
 wrote:
 
 
 
 
 
   what is the complexity in which it has been done ?
 
On Tue, Aug 16, 2011 at 1:41 PM, MAC macatad...@gmail.com wrote:
 
   Given an array of integers. Each number in the array repeats ODD
 number of
   times, but only 1 number repeated for EVEN number of times. Find
 that
   number.
 
   --
   thanks
   --mac
 
--
   You received this message because you are subscribed to the Google
 Groups
   Algorithm Geeks group.
   To post to this group, send email to algogeeks@googlegroups.com.
   To unsubscribe from 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.
 
  --
  Thanks and Regards,
  Raghavan KL

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




 --
 Saurabh Singh
 B.Tech (Computer Science)
 MNNIT 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.


-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from 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: Algorithms For Interviews

2011-08-17 Thread Sanjay Rajpal
@Shady : when u'll post the links, just leave a msg at srn...@gmail.com.
   Thanks in advance :)
Sanjay Kumar
B.Tech Final Year
Department of Computer Engineering
National Institute of Technology Kurukshetra
Kurukshetra - 136119
Haryana, 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] SISO

2011-08-17 Thread Nitin Gupta
what package is being offered by SISO??

On Mon, Aug 15, 2011 at 12:35 PM, vikas singh shyguy1...@gmail.com wrote:

 yes, they all follow the same pattern provided by GLOBAL SAMSUNG APTITUDE
 TEST (GSAT)

 On Sun, Aug 14, 2011 at 8:26 PM, parag khanna khanna.para...@gmail.comwrote:

 itz the same procedure as that of Samsung SEL

 --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from 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 and Regards
 VIKAS SINGH
 MCA- final year
 NIT DURGAPUR
 email:
  vikas.singh1...@gmail.com
  shyguy1...@gmail.com
 http://smrit.wordpress.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.




-- 
Nitin Gupta
B Tech 3rd yr
Information Technology
National Institute of Technology, 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] SISO

2011-08-17 Thread parag khanna
5.5 lpa

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from 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] array question

2011-08-17 Thread sukran dhawan
when u xor nos with odd number of times we will get back the same no.only
even occurences will give 0.question is to find the no with even
 occurence.how will you find that no?
On Tue, Aug 16, 2011 at 1:41 PM, MAC macatad...@gmail.com wrote:


 Given an array of integers. Each number in the array repeats ODD number of
 times, but only 1 number repeated for EVEN number of times. Find that
 number.


 --
 thanks
 --mac

  --
 You wreceived this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from 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] SISO

2011-08-17 Thread rajoo king without sing
in my college samsung lab was come on 23 july. i was seated in recrument
process.
the recruiment process are
written test followed by two round
apptitude (50 objective question  in 1 hour) and
coding test(2 subjective question in 1 hour)
after then interview
2 technical interview and 1HR interview
so i hope Samsung india Software operations may follow the same pattern.

BEST OF LUCK

On Sun, Aug 14, 2011 at 5:13 PM, parag khanna khanna.para...@gmail.comwrote:

 Samsung india Software operations is visiting our campus ... can u plz tell
 about the recruitment process

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




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



[algogeeks] Re: array question

2011-08-17 Thread Abhishek Yadav
Thats right...by doing xor this can't be done...hey sanjay please
reconsider your answer.

On Aug 17, 2:05 pm, sukran dhawan sukrandha...@gmail.com wrote:
 when u xor nos with odd number of times we will get back the same no.only
 even occurences will give 0.question is to find the no with even
  occurence.how will you find that no?



 On Tue, Aug 16, 2011 at 1:41 PM, MAC macatad...@gmail.com wrote:

  Given an array of integers. Each number in the array repeats ODD number of
  times, but only 1 number repeated for EVEN number of times. Find that
  number.

  --
  thanks
  --mac

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

 - Show quoted text -

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



[algogeeks] Re: Number theory

2011-08-17 Thread Vijay Kansal
@nitin it must be 2^n i think

On Aug 17, 3:48 am, Bharat Kul Ratan bharat.kra...@gmail.com wrote:
 It might be 
 useful:http://www.artofproblemsolving.com/Wiki/index.php/Partition_%28combin...

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from 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: Algorithms For Interviews

2011-08-17 Thread raman gugnani
sanjay bhai mjse le liyo. am having the buk nw.

On 17/08/2011, Sanjay Rajpal sanjay.raj...@live.in wrote:
 @Shady : when u'll post the links, just leave a msg at srn...@gmail.com.
Thanks in advance :)
 Sanjay Kumar
 B.Tech Final Year
 Department of Computer Engineering
 National Institute of Technology Kurukshetra
 Kurukshetra - 136119
 Haryana, 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.




-- 
Raman Gugnani

Computer Engg. Deptt.
Under Graduate
NIT Kurukshetra

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



Re: [algogeeks] Re: Algorithms For Interviews

2011-08-17 Thread Sanjay Rajpal
@Raman : mail kar de bhai abhi.



Sanjay Kumar
B.Tech Final Year
Department of Computer Engineering
National Institute of Technology Kurukshetra
Kurukshetra - 136119
Haryana, India



On Wed, Aug 17, 2011 at 2:20 AM, raman gugnani
ramangugnani@gmail.comwrote:

 sanjay bhai mjse le liyo. am having the buk nw.

 On 17/08/2011, Sanjay Rajpal sanjay.raj...@live.in wrote:
  @Shady : when u'll post the links, just leave a msg at srn...@gmail.com.
 Thanks in advance :)
  Sanjay Kumar
  B.Tech Final Year
  Department of Computer Engineering
  National Institute of Technology Kurukshetra
  Kurukshetra - 136119
  Haryana, 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.
 
 


 --
 Raman Gugnani

 Computer Engg. Deptt.
 Under Graduate
 NIT Kurukshetra

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



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



[algogeeks] Re: Number theory

2011-08-17 Thread Vijay Kansal
my bad 2^(n-1)...

On Aug 17, 2:17 pm, Vijay Kansal vijaykans...@gmail.com wrote:
 @nitin it must be 2^n i think

 On Aug 17, 3:48 am, Bharat Kul Ratan bharat.kra...@gmail.com wrote:







  It might be 
  useful:http://www.artofproblemsolving.com/Wiki/index.php/Partition_%28combin...

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from 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: array question

2011-08-17 Thread Sanjay Rajpal
Yes, sry abhishek , i didnt see the question carefully.
But this can be done with hash map requiring O(n) space and O(n) time.
Sanjay Kumar
B.Tech Final Year
Department of Computer Engineering
National Institute of Technology Kurukshetra
Kurukshetra - 136119
Haryana, India




On Wed, Aug 17, 2011 at 2:15 AM, Abhishek Yadav abhishek30.nit...@gmail.com
 wrote:

 Thats right...by doing xor this can't be done...hey sanjay please
 reconsider your answer.

 On Aug 17, 2:05 pm, sukran dhawan sukrandha...@gmail.com wrote:
  when u xor nos with odd number of times we will get back the same no.only
  even occurences will give 0.question is to find the no with even
   occurence.how will you find that no?
 
 
 
  On Tue, Aug 16, 2011 at 1:41 PM, MAC macatad...@gmail.com wrote:
 
   Given an array of integers. Each number in the array repeats ODD number
 of
   times, but only 1 number repeated for EVEN number of times. Find that
   number.
 
   --
   thanks
   --mac
 
--
   You wreceived this message because you are subscribed to the Google
 Groups
   Algorithm Geeks group.
   To post to this group, send email to algogeeks@googlegroups.com.
   To unsubscribe from this group, send email to
   algogeeks+unsubscr...@googlegroups.com.
   For more options, visit this group at
  http://groups.google.com/group/algogeeks?hl=en.- Hide quoted text -
 
  - Show quoted text -

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



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



[algogeeks] Re: matrix question ???!!!!!!!!!!??????????

2011-08-17 Thread Dave
@Anika: You don't have to find the max and min elements of the entire
array to find a row that doesn't contain either of them. If you scan 3
rows, you will find a row that contains the max of those three rows,
another that contains the min, and the remaining row will contain
neither. Scanning the rest of the array would serve only to increase
the maximum and decrease the minimum, but it wouldn't alter the fact
that that remaining row doesn't contain either. Thus, we don't need to
scan the rest of the matrix.

Dave

On Aug 16, 11:23 pm, Anika Jain anika.jai...@gmail.com wrote:
 i didnt get it tht even if there are distinct elements how scanning sum
 three lines return us the max n min elements? how will this scan whole
 matrix for finding the max n  min elements???

 On Wed, Aug 17, 2011 at 1:32 AM, priya ramesh 



 love.for.programm...@gmail.com wrote:
  are these algos optimal???
  *Algo 1*:

  no_min_max   =    -1
  min_row    =   max_row    =   -1
  for(i=0; in; i++)
  {
             for(j=0; jn; j++){
               find min, max
               }
             if(minprev_min  max  prev_max){
                no_min_max=i;
                break;
              }
            else if(min  prev_min){
                 min_row=i;
             }
           else if(maxprev_max){
                  max_row=i;
            }
  }
  if(no_min_max!=-1){
  i=0;
  while(i!=min_row  i!=max_row)
  i++;
  no_min_max=i;
  }

  print no_min_max row;

  *Algo 2:*

  1. Copy elements into a linear array

  2. Find min and max. O(n)

  3. for(i=0; irows; i++){

  serach for min, max in the ith row; O(n)
  if (both not found)
  break;
  }

  print the ith row;

  Which 1 is better???

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

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



Re: [algogeeks] Re: Number theory

2011-08-17 Thread Rohit Srivastava
+1 to nitin

On Wed, Aug 17, 2011 at 2:48 PM, Vijay Kansal vijaykans...@gmail.comwrote:

 my bad 2^(n-1)...

 On Aug 17, 2:17 pm, Vijay Kansal vijaykans...@gmail.com wrote:
  @nitin it must be 2^n i think
 
  On Aug 17, 3:48 am, Bharat Kul Ratan bharat.kra...@gmail.com wrote:
 
 
 
 
 
 
 
   It might be useful:
 http://www.artofproblemsolving.com/Wiki/index.php/Partition_%28combin...

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



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



Re: [algogeeks] Re: citrix rd????

2011-08-17 Thread sagar pareek
yaar if u know C  then u too can attempt the question
but some of new operators like '' is used for referencing and all must be
known
also inheritence implementation, overloading, overridding etc

On Mon, Aug 15, 2011 at 9:32 PM, priya ramesh 
love.for.programm...@gmail.com wrote:

 @sagar: Can you please upload important c++ docs?? I have no idea what to
 emphasize on in c++ and my placements starting in sometime. Plz help

 --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from 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] Re: array question

2011-08-17 Thread sukran dhawan
pl give the algo

On Wed, Aug 17, 2011 at 2:50 PM, Sanjay Rajpal srn...@gmail.com wrote:

 Yes, sry abhishek , i didnt see the question carefully.
 But this can be done with hash map requiring O(n) space and O(n) time.
 Sanjay Kumar
 B.Tech Final Year
 Department of Computer Engineering
 National Institute of Technology Kurukshetra
 Kurukshetra - 136119
 Haryana, India




 On Wed, Aug 17, 2011 at 2:15 AM, Abhishek Yadav 
 abhishek30.nit...@gmail.com wrote:

 Thats right...by doing xor this can't be done...hey sanjay please
 reconsider your answer.

 On Aug 17, 2:05 pm, sukran dhawan sukrandha...@gmail.com wrote:
  when u xor nos with odd number of times we will get back the same
 no.only
  even occurences will give 0.question is to find the no with even
   occurence.how will you find that no?
 
 
 
  On Tue, Aug 16, 2011 at 1:41 PM, MAC macatad...@gmail.com wrote:
 
   Given an array of integers. Each number in the array repeats ODD
 number of
   times, but only 1 number repeated for EVEN number of times. Find that
   number.
 
   --
   thanks
   --mac
 
--
   You wreceived this message because you are subscribed to the Google
 Groups
   Algorithm Geeks group.
   To post to this group, send email to algogeeks@googlegroups.com.
   To unsubscribe from this group, send email to
   algogeeks+unsubscr...@googlegroups.com.
   For more options, visit this group at
  http://groups.google.com/group/algogeeks?hl=en.- Hide quoted text -
 
  - Show quoted text -

 --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from 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] Re: Number theory

2011-08-17 Thread Puneet Goyal
I think it should be 2^n -1

Explanation
We can visualize it as n balls are placed and we have to place some dividers
(max=n) in betweek to divide them into groups.

If we choose no divider its nC0 , but we dont have to include it
With 1 divider its nC1
and so on..
So the total no. of ways will be
(nC0+nC1+nC2..nCn)-nC0= 2^n-1

Regards,
Puneet

On Wed, Aug 17, 2011 at 4:05 PM, Rohit Srivastava access2ro...@gmail.comwrote:

 +1 to nitin


 On Wed, Aug 17, 2011 at 2:48 PM, Vijay Kansal vijaykans...@gmail.comwrote:

 my bad 2^(n-1)...

 On Aug 17, 2:17 pm, Vijay Kansal vijaykans...@gmail.com wrote:
  @nitin it must be 2^n i think
 
  On Aug 17, 3:48 am, Bharat Kul Ratan bharat.kra...@gmail.com wrote:
 
 
 
 
 
 
 
   It might be useful:
 http://www.artofproblemsolving.com/Wiki/index.php/Partition_%28combin...

 --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from 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.




-- 
---
Puneet Goyal
Student of B. Tech. III Year (Software Engineering)
Delhi Technological University, 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] Re: Number theory

2011-08-17 Thread Nitin Nizhawan
@Puneet, you are right but we can have only n-1 dividers.

On Wed, Aug 17, 2011 at 4:15 PM, Puneet Goyal puneetgoya...@gmail.comwrote:

 I think it should be 2^n -1

 Explanation
 We can visualize it as n balls are placed and we have to place some
 dividers (max=n) in betweek to divide them into groups.

 If we choose no divider its nC0 , but we dont have to include it
 With 1 divider its nC1
 and so on..
 So the total no. of ways will be
 (nC0+nC1+nC2..nCn)-nC0= 2^n-1

 Regards,
 Puneet

 On Wed, Aug 17, 2011 at 4:05 PM, Rohit Srivastava 
 access2ro...@gmail.comwrote:

 +1 to nitin


 On Wed, Aug 17, 2011 at 2:48 PM, Vijay Kansal vijaykans...@gmail.comwrote:

 my bad 2^(n-1)...

 On Aug 17, 2:17 pm, Vijay Kansal vijaykans...@gmail.com wrote:
  @nitin it must be 2^n i think
 
  On Aug 17, 3:48 am, Bharat Kul Ratan bharat.kra...@gmail.com wrote:
 
 
 
 
 
 
 
   It might be useful:
 http://www.artofproblemsolving.com/Wiki/index.php/Partition_%28combin...

 --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from 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.




 --
 ---
 Puneet Goyal
 Student of B. Tech. III Year (Software Engineering)
 Delhi Technological University, 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] Re: Number theory

2011-08-17 Thread Puneet Goyal
+1 nitin
there must be n-1 dividers

On Wed, Aug 17, 2011 at 4:15 PM, Puneet Goyal puneetgoya...@gmail.comwrote:

 I think it should be 2^n -1

 Explanation
 We can visualize it as n balls are placed and we have to place some
 dividers (max=n) in betweek to divide them into groups.

 If we choose no divider its nC0 , but we dont have to include it
 With 1 divider its nC1
 and so on..
 So the total no. of ways will be
 (nC0+nC1+nC2..nCn)-nC0= 2^n-1

 Regards,
 Puneet

 On Wed, Aug 17, 2011 at 4:05 PM, Rohit Srivastava 
 access2ro...@gmail.comwrote:

 +1 to nitin


 On Wed, Aug 17, 2011 at 2:48 PM, Vijay Kansal vijaykans...@gmail.comwrote:

 my bad 2^(n-1)...

 On Aug 17, 2:17 pm, Vijay Kansal vijaykans...@gmail.com wrote:
  @nitin it must be 2^n i think
 
  On Aug 17, 3:48 am, Bharat Kul Ratan bharat.kra...@gmail.com wrote:
 
 
 
 
 
 
 
   It might be useful:
 http://www.artofproblemsolving.com/Wiki/index.php/Partition_%28combin...

 --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from 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.




 --
 ---
 Puneet Goyal
 Student of B. Tech. III Year (Software Engineering)
 Delhi Technological University, Delhi
 ---




-- 
---
Puneet Goyal
Student of B. Tech. III Year (Software Engineering)
Delhi Technological University, 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] GS apti ques!

2011-08-17 Thread priya ramesh
A B and C have chance of failure of 20%, 30% and 40%. To activate the
machine at least two should be active. What is the probability that machine
will be active?

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from 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] Factorial Algorithms

2011-08-17 Thread Nitin Nizhawan
@Gaurav , if you are able to find any resource that explains the logic of
these algos, please let me know.

On Sat, Aug 13, 2011 at 9:50 AM, Gaurav Menghani
gaurav.mengh...@gmail.comwrote:

 Thanks for the link. I was unaware of such algorithms. These would
 come handy in programming contests.

 On Fri, Aug 12, 2011 at 3:00 PM, Nitin Nizhawan
 nitin.nizha...@gmail.com wrote:
  http://www.luschny.de/math/factorial/FastFactorialFunctions.htm
  Does anyone know of resource for good/detailed explanation  of factorial
  algorithms on this site?
 
  --
  You received this message because you are subscribed to the Google Groups
  Algorithm Geeks group.
  To post to this group, send email to algogeeks@googlegroups.com.
  To unsubscribe from this group, send email to
  algogeeks+unsubscr...@googlegroups.com.
  For more options, visit this group at
  http://groups.google.com/group/algogeeks?hl=en.
 



 --
 Gaurav Menghani

 --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from 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] GS apti ques!

2011-08-17 Thread Romil .......
Answer should be 0.212. Tell me if I am correct.

On Wed, Aug 17, 2011 at 4:30 PM, priya ramesh 
love.for.programm...@gmail.com wrote:

 A B and C have chance of failure of 20%, 30% and 40%. To activate the
 machine at least two should be active. What is the probability that machine
 will be active?

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




-- 
Romil

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from 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] GS apti ques!

2011-08-17 Thread priya ramesh
@romil: how did you solve this??

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from 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] GS apti ques!

2011-08-17 Thread Romil .......
Kumar's approach would not do perhaps. I simply eliminated the undesired
cases. Those include the one when none of them is active and when only one
of them is active.
@Kumar: You should have also added the term abc.

On Wed, Aug 17, 2011 at 4:39 PM, priya ramesh 
love.for.programm...@gmail.com wrote:

 @romil: how did you solve this??

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




-- 
Romil

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from 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] GS apti ques!

2011-08-17 Thread priya ramesh
i got 74.8% (machine works)

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from 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] GS apti ques!

2011-08-17 Thread Romil .......
@Priya: A mistake from my side. The answer should be 1-0.212 i.e. 0.788
Sorry for this mistake.
@Kumar: Yours is wrong. Check it again.

On Wed, Aug 17, 2011 at 4:42 PM, Romil ... vamosro...@gmail.com wrote:

 Kumar's approach would not do perhaps. I simply eliminated the undesired
 cases. Those include the one when none of them is active and when only one
 of them is active.
 @Kumar: You should have also added the term abc.


 On Wed, Aug 17, 2011 at 4:39 PM, priya ramesh 
 love.for.programm...@gmail.com wrote:

 @romil: how did you solve this??

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




 --
 Romil





-- 
Romil

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from 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] What is the reason??

2011-08-17 Thread kumar raja
while(!feof(fp))
{

  fscanf(fp,%s,s);

   printf(%s,s);

}


The last word in the file is printing twice .What is the reason for this to
happen???


-- 
Regards
Kumar Raja
M.Tech(SIT)
IIT Kharagpur,
10it60...@iitkgp.ac.in
7797137043.
09491690115.

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from 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] GS apti ques!

2011-08-17 Thread Nitin Nizhawan
a = (1-0.2)
b = (1-0.3)
c = (1- 0.4)

a*b*(1-c) + a*(1-b)*c + (1-a)*b*c + a*b*c = 0.788

On Wed, Aug 17, 2011 at 5:08 PM, Romil ... vamosro...@gmail.com wrote:

 @Priya: A mistake from my side. The answer should be 1-0.212 i.e. 0.788
 Sorry for this mistake.
 @Kumar: Yours is wrong. Check it again.


 On Wed, Aug 17, 2011 at 4:42 PM, Romil ... vamosro...@gmail.comwrote:

 Kumar's approach would not do perhaps. I simply eliminated the undesired
 cases. Those include the one when none of them is active and when only one
 of them is active.
 @Kumar: You should have also added the term abc.


 On Wed, Aug 17, 2011 at 4:39 PM, priya ramesh 
 love.for.programm...@gmail.com wrote:

 @romil: how did you solve this??

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




 --
 Romil





 --
 Romil


  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from 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] What is the reason??

2011-08-17 Thread Nitin Nizhawan
I think this happens because EOF on stream is set when fscanf actually tries
to read beyond EOF but reads 0 characters and therefore printf prints the
previous value in s.

On Wed, Aug 17, 2011 at 5:11 PM, kumar raja rajkumar.cs...@gmail.comwrote:




 while(!feof(fp))
 {

   fscanf(fp,%s,s);

printf(%s,s);

 }


 The last word in the file is printing twice .What is the reason for this to
 happen???


 --
 Regards
 Kumar Raja
 M.Tech(SIT)
 IIT Kharagpur,
 10it60...@iitkgp.ac.in
 7797137043.
 09491690115.

  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from 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] GS apti ques!

2011-08-17 Thread priya ramesh
A mistake from my side as well!
Got 78.8% :)

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from 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] Make My Trip *URGENT*

2011-08-17 Thread Brijesh Upadhyay
has anyone given MMT written test.??  please reply , what is the
pattern of the paper?

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from 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] Make My Trip *URGENT*

2011-08-17 Thread Anika Jain
there will be 15 english fill in the blanks, 5 series questn, 10 aptitude
questions, 10 logical questions..
then 10 c++ mcqs and 5 coding questions

On Wed, Aug 17, 2011 at 5:28 PM, Brijesh Upadhyay 
brijeshupadhyay...@gmail.com wrote:

 has anyone given MMT written test.??  please reply , what is the
 pattern of the paper?

 --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from 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] GS apti ques!

2011-08-17 Thread Rohit Srivastava
0.788

On Wed, Aug 17, 2011 at 5:23 PM, priya ramesh 
love.for.programm...@gmail.com wrote:

 A mistake from my side as well!
 Got 78.8% :)

  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from 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] GS apti ques!

2011-08-17 Thread priya ramesh
@rohith thanks!

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from 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] De shaw ques!

2011-08-17 Thread priya ramesh
if a number is divided by 935 remainder is 69. if same no. is divided by 38,
what will be the remainder?

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from 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] GS apti ques!

2011-08-17 Thread aditya kumar
take four cases :
1) A success B success C failure
2) A success B failure C success
3) A failure B success C success
4) A , B , C = success

add all the four cases :)

On Wed, Aug 17, 2011 at 5:23 PM, priya ramesh 
love.for.programm...@gmail.com wrote:

 A mistake from my side as well!
 Got 78.8% :)

  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from 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] What is the reason??

2011-08-17 Thread kumar raja
Actually when all the words are over then it should reach end of file marker
which is typically some ascii character  ,not on reading it again using
fscanf... Why it will set only after fscanf is failed to read from it??

On 17 August 2011 17:19, Nitin Nizhawan nitin.nizha...@gmail.com wrote:

 I think this happens because EOF on stream is set when fscanf actually
 tries to read beyond EOF but reads 0 characters and therefore printf prints
 the previous value in s.

 On Wed, Aug 17, 2011 at 5:11 PM, kumar raja rajkumar.cs...@gmail.comwrote:




 while(!feof(fp))
 {

   fscanf(fp,%s,s);

printf(%s,s);

 }


 The last word in the file is printing twice .What is the reason for this
 to happen???


 --
 Regards
 Kumar Raja
 M.Tech(SIT)
 IIT Kharagpur,
 10it60...@iitkgp.ac.in
 7797137043.
 09491690115.

  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from 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
Kumar Raja
M.Tech(SIT)
IIT Kharagpur,
10it60...@iitkgp.ac.in
7797137043.
09491690115.

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from 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] De shaw ques!

2011-08-17 Thread aditya kumar
let the number be 935+69 = 1004
(bcoz divide 1004%935 = 69 )
now 1004 % 38 = 16 ANS

On Wed, Aug 17, 2011 at 5:39 PM, priya ramesh 
love.for.programm...@gmail.com wrote:

 if a number is divided by 935 remainder is 69. if same no. is divided by
 38, what will be the remainder?

 --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from 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] De shaw ques!

2011-08-17 Thread abhishek iyer
16 is the answer ???

On Wed, Aug 17, 2011 at 5:39 PM, priya ramesh 
love.for.programm...@gmail.com wrote:

 if a number is divided by 935 remainder is 69. if same no. is divided by
 38, what will be the remainder?

 --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from 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.



Re: [algogeeks] De shaw ques!

2011-08-17 Thread priya ramesh
i got the same answer. the ans is supposed to be 29

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from 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] probability tough one!

2011-08-17 Thread priya ramesh
what is the probability of having b'days of 2 persons on the same day in a
gathering of 50 persons?

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from 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] De shaw ques!

2011-08-17 Thread sukran dhawan
On Wed, Aug 17, 2011 at 5:39 PM, priya ramesh 
love.for.programm...@gmail.com wrote:

 if a number is divided by 935 remainder is 69. if same no. is divided by
 38, what will be the remainder?

 -- answer is 16.t
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from 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] probability tough one!

2011-08-17 Thread aditya kumar
no of days in a year shud be 365 or 366 ??

On Wed, Aug 17, 2011 at 5:49 PM, priya ramesh 
love.for.programm...@gmail.com wrote:

 what is the probability of having b'days of 2 persons on the same day in a
 gathering of 50 persons?

 --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from 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] De shaw ques!

2011-08-17 Thread aditya kumar
@priya . i have shown you my method . write your method and we shall discuss
it .

On Wed, Aug 17, 2011 at 5:52 PM, sukran dhawan sukrandha...@gmail.comwrote:



 On Wed, Aug 17, 2011 at 5:39 PM, priya ramesh 
 love.for.programm...@gmail.com wrote:

 if a number is divided by 935 remainder is 69. if same no. is divided by
 38, what will be the remainder?

 -- answer is 16.t

 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from 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] probability tough one!

2011-08-17 Thread priya ramesh
nothing is specified. I guess it's 365

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from 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] What is the reason??

2011-08-17 Thread Nitin Nizhawan
It seems this is the way it is designed to work, some operation has to read
the EOF to acually set the EOF flag on the stream. In this case its fscanf.
 feof() function does not try to read next to see if EOF is reached it just
check a flag on the stream which is set when some operation encounters EOF.

On Wed, Aug 17, 2011 at 5:45 PM, kumar raja rajkumar.cs...@gmail.comwrote:

 Actually when all the words are over then it should reach end of file
 marker which is typically some ascii character  ,not on reading it again
 using fscanf... Why it will set only after fscanf is failed to read from
 it??


 On 17 August 2011 17:19, Nitin Nizhawan nitin.nizha...@gmail.com wrote:

 I think this happens because EOF on stream is set when fscanf actually
 tries to read beyond EOF but reads 0 characters and therefore printf prints
 the previous value in s.

 On Wed, Aug 17, 2011 at 5:11 PM, kumar raja rajkumar.cs...@gmail.comwrote:




 while(!feof(fp))
 {

   fscanf(fp,%s,s);

printf(%s,s);

 }


 The last word in the file is printing twice .What is the reason for this
 to happen???


 --
 Regards
 Kumar Raja
 M.Tech(SIT)
 IIT Kharagpur,
 10it60...@iitkgp.ac.in
 7797137043.
 09491690115.

  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from 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
 Kumar Raja
 M.Tech(SIT)
 IIT Kharagpur,
 10it60...@iitkgp.ac.in
 7797137043.
 09491690115.

  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from 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] De shaw ques!

2011-08-17 Thread priya ramesh
i solved it the same way you solved it. Took the same exmpl too :)

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from 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] How to design snake and ladder game using OOPS

2011-08-17 Thread mayur
Hi can any one help me, in how to answer these type of questions.
Like how do you design Snake and Ladder game, or a Chess Game.
What classes you will use, which methods and variables will be private/
public.
Its not about coding, its about designing.

Please Help

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from 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] De shaw ques!

2011-08-17 Thread Nitin Nizhawan
N = 935*q + 69

N%38 = 31, 16, 1, 24, 9, 32, 17, 2 for { q = 0,1,2,3,4,5,6,7. }

On Wed, Aug 17, 2011 at 5:54 PM, aditya kumar
aditya.kumar130...@gmail.comwrote:

 @priya . i have shown you my method . write your method and we shall
 discuss it .


 On Wed, Aug 17, 2011 at 5:52 PM, sukran dhawan sukrandha...@gmail.comwrote:



 On Wed, Aug 17, 2011 at 5:39 PM, priya ramesh 
 love.for.programm...@gmail.com wrote:

 if a number is divided by 935 remainder is 69. if same no. is divided by
 38, what will be the remainder?

 -- answer is 16.t

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


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


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


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



Re: [algogeeks] De shaw ques!

2011-08-17 Thread Romil .......
People this is not the way to approach this one. This question seems to be
unfair. Take the number to be 1939 which also leaves 69 as the remainder
when divided by 935 but when it is divided by 38, the remainder is only 1.
There is definitely some mistake. Also there doesn't seem to be a
mathematical way to solve this.

On Wed, Aug 17, 2011 at 5:58 PM, priya ramesh 
love.for.programm...@gmail.com wrote:

 i solved it the same way you solved it. Took the same exmpl too :)

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




-- 
Romil

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from 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] De shaw ques!

2011-08-17 Thread Rohit Srivastava
+1 to nitin

On Wed, Aug 17, 2011 at 6:02 PM, Romil ... vamosro...@gmail.com wrote:

 People this is not the way to approach this one. This question seems to be
 unfair. Take the number to be 1939 which also leaves 69 as the remainder
 when divided by 935 but when it is divided by 38, the remainder is only 1.
 There is definitely some mistake. Also there doesn't seem to be a
 mathematical way to solve this.


 On Wed, Aug 17, 2011 at 5:58 PM, priya ramesh 
 love.for.programm...@gmail.com wrote:

 i solved it the same way you solved it. Took the same exmpl too :)

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




 --
 Romil


  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from 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] How to design snake and ladder game using OOPS

2011-08-17 Thread Shachindra A C
For chess programming, I found this site very useful. The code, though, is
not object oriented(excuse me for that). Nevertheless, its a good place to
learn chess programming.

http://www.tckerrigan.com/Chess/TSCP

On Wed, Aug 17, 2011 at 5:59 PM, mayur mayursa...@gmail.com wrote:

 Hi can any one help me, in how to answer these type of questions.
 Like how do you design Snake and Ladder game, or a Chess Game.
 What classes you will use, which methods and variables will be private/
 public.
 Its not about coding, its about designing.

 Please Help

 --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from 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.



[algogeeks] Re: probability tough one!

2011-08-17 Thread Aditya Jain
Is that exactly 2 or atleast 2?

P(atleast 2)=1-P(no 2 people )=1-(364*363*362*.*317/365^49)





On Aug 17, 5:24 pm, priya ramesh love.for.programm...@gmail.com
wrote:
 nothing is specified. I guess it's 365

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from 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: probability tough one!

2011-08-17 Thread sukran dhawan
can yo explain it pl?


On Wed, Aug 17, 2011 at 6:11 PM, Aditya Jain aditya2...@gmail.com wrote:

 Is that exactly 2 or atleast 2?

 P(atleast 2)=1-P(no 2 people )=1-(364*363*362*.*317/365^49)





 On Aug 17, 5:24 pm, priya ramesh love.for.programm...@gmail.com
 wrote:
  nothing is specified. I guess it's 365

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



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



Re: [algogeeks] Re: probability tough one!

2011-08-17 Thread Romil .......
Take it as:
P(atleast 2) = 1-P(no 2 have same b'day) = 1- ((365C50)/50!)
where C represents the combinations

On Wed, Aug 17, 2011 at 6:14 PM, sukran dhawan sukrandha...@gmail.comwrote:

 can yo explain it pl?


 On Wed, Aug 17, 2011 at 6:11 PM, Aditya Jain aditya2...@gmail.com wrote:

 Is that exactly 2 or atleast 2?

 P(atleast 2)=1-P(no 2 people )=1-(364*363*362*.*317/365^49)





 On Aug 17, 5:24 pm, priya ramesh love.for.programm...@gmail.com
 wrote:
  nothing is specified. I guess it's 365

 --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from 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.




-- 
Romil

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from 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] HASHTABLE - what's the big deal?

2011-08-17 Thread Navneet Gupta
Hello,

Many a times, i have noticed on blogs/sites that people emphasize a lot on
the importance of hash tables for interviews. Though i do not disagree
with their importance, i would really like to understand what kind of
questions can be solved best only by hash tables and are also dear to
interviewers.

More of a general question on applications of hash tables.

-- 
Regards,
Navneet

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from 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] SISO

2011-08-17 Thread Nitin Gupta
which college?

On Wed, Aug 17, 2011 at 2:36 PM, rajoo king without sing rajoo...@gmail.com
 wrote:

 in my college samsung lab was come on 23 july. i was seated in recrument
 process.
 the recruiment process are
 written test followed by two round
 apptitude (50 objective question  in 1 hour) and
 coding test(2 subjective question in 1 hour)
 after then interview
 2 technical interview and 1HR interview
 so i hope Samsung india Software operations may follow the same pattern.

 BEST OF LUCK


 On Sun, Aug 14, 2011 at 5:13 PM, parag khanna khanna.para...@gmail.comwrote:

 Samsung india Software operations is visiting our campus ... can u plz
 tell about the recruitment process

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




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




-- 
Nitin Gupta
B Tech 3rd yr
Information Technology
National Institute of Technology, 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] GS apti ques!

2011-08-17 Thread muthu raj
Sorry The probability of machine being active is 1-0.212=0.788



*Muthuraj R
IV th Year , ISE
PESIT , Bangalore*



On Wed, Aug 17, 2011 at 5:10 PM, muthu raj muthura...@gmail.com wrote:

 Even i got 0.212



 *Muthuraj R
 IV th Year , ISE
 PESIT , Bangalore*



 On Wed, Aug 17, 2011 at 4:42 PM, Romil ... vamosro...@gmail.comwrote:

 Kumar's approach would not do perhaps. I simply eliminated the undesired
 cases. Those include the one when none of them is active and when only one
 of them is active.
 @Kumar: You should have also added the term abc.


 On Wed, Aug 17, 2011 at 4:39 PM, priya ramesh 
 love.for.programm...@gmail.com wrote:

 @romil: how did you solve this??

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




 --
 Romil


  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from 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] GS apti ques!

2011-08-17 Thread muthu raj
Even i got 0.212



*Muthuraj R
IV th Year , ISE
PESIT , Bangalore*



On Wed, Aug 17, 2011 at 4:42 PM, Romil ... vamosro...@gmail.com wrote:

 Kumar's approach would not do perhaps. I simply eliminated the undesired
 cases. Those include the one when none of them is active and when only one
 of them is active.
 @Kumar: You should have also added the term abc.


 On Wed, Aug 17, 2011 at 4:39 PM, priya ramesh 
 love.for.programm...@gmail.com wrote:

 @romil: how did you solve this??

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




 --
 Romil


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


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



Re: [algogeeks] Re: probability tough one!

2011-08-17 Thread Adi Srikanth
there is something anamoly about this birthday probability caculation.
Search in google..you may find it.


Regards,
Adi Srikanth.
Mob No 9887233349
Personal Pages: adisrikanth.co.nr


On Wed, Aug 17, 2011 at 6:25 PM, Romil ... vamosro...@gmail.com wrote:

 Take it as:
 P(atleast 2) = 1-P(no 2 have same b'day) = 1- ((365C50)/50!)
 where C represents the combinations

 On Wed, Aug 17, 2011 at 6:14 PM, sukran dhawan sukrandha...@gmail.comwrote:

 can yo explain it pl?


 On Wed, Aug 17, 2011 at 6:11 PM, Aditya Jain aditya2...@gmail.comwrote:

 Is that exactly 2 or atleast 2?

 P(atleast 2)=1-P(no 2 people )=1-(364*363*362*.*317/365^49)





 On Aug 17, 5:24 pm, priya ramesh love.for.programm...@gmail.com
 wrote:
  nothing is specified. I guess it's 365

 --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from 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.




 --
 Romil


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


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



Re: [algogeeks] Re: probability tough one!

2011-08-17 Thread saurabh singh
The question is directly taken from coreman...read it,the best is
explained there

On Wed, Aug 17, 2011 at 7:10 PM, Adi Srikanth adisriika...@gmail.com wrote:

 there is something anamoly about this birthday probability caculation. Search 
 in google..you may find it.


 Regards,
 Adi Srikanth.
 Mob No 9887233349
 Personal Pages: adisrikanth.co.nr


 On Wed, Aug 17, 2011 at 6:25 PM, Romil ... vamosro...@gmail.com wrote:

 Take it as:
 P(atleast 2) = 1-P(no 2 have same b'day) = 1- ((365C50)/50!)
 where C represents the combinations

 On Wed, Aug 17, 2011 at 6:14 PM, sukran dhawan sukrandha...@gmail.com 
 wrote:

 can yo explain it pl?

 On Wed, Aug 17, 2011 at 6:11 PM, Aditya Jain aditya2...@gmail.com wrote:

 Is that exactly 2 or atleast 2?

 P(atleast 2)=1-P(no 2 people )=1-(364*363*362*.*317/365^49)





 On Aug 17, 5:24 pm, priya ramesh love.for.programm...@gmail.com
 wrote:
  nothing is specified. I guess it's 365

 --
 You received this message because you are subscribed to the Google Groups 
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from 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.



 --
 Romil


 --
 You received this message because you are subscribed to the Google Groups 
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from 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.



--
Saurabh Singh
B.Tech (Computer Science)
MNNIT 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] Re: probability tough one!

2011-08-17 Thread priya ramesh
I don't have coreman. If you have an e book can you plz upload 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.



Re: [algogeeks] Re: probability tough one!

2011-08-17 Thread saurabh singh
Sorry the problems are not same.I should have read the problem more
carefully.Anyways I would recommend its high time you get a hard copy
of coreman..
Trying for a solution now.
On Wed, Aug 17, 2011 at 7:19 PM, priya ramesh
love.for.programm...@gmail.com wrote:
 I don't have coreman. If you have an e book can you plz upload 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.




-- 
Saurabh Singh
B.Tech (Computer Science)
MNNIT 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] Possible solutions to these sort of Questions

2011-08-17 Thread Ankur Garg
Write test cases for WordPad,Notepad

In general while writing test cases for problems what parameters should one
Consider. MS has a habit of asking these sort of questions on a regular
basis


Please help as i cant think much on how to attack ques like these

Regards
Ankur

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from 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] apti! solve this!

2011-08-17 Thread Ashish kumar Jain
sqrt(146)

On Wed, Aug 17, 2011 at 7:43 PM, priya ramesh 
love.for.programm...@gmail.com wrote:

  A moves 3 kms east from his starting point . He then travels 5 kms north.
 From that point he moves 8 kms to the east.How far is A from his starting
 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.




-- 
Regards,
Ashish

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from 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] apti! solve this!

2011-08-17 Thread priyanka singhal
11.716 km

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from 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] apti! solve this!

2011-08-17 Thread manish patel
he is srqt(11^2+5^2)~12.1kms away from A.
if he would hav travelled 4 kms in east then ans would hav been 13kms

On Wed, Aug 17, 2011 at 7:43 PM, priya ramesh 
love.for.programm...@gmail.com wrote:

  A moves 3 kms east from his starting point . He then travels 5 kms north.
 From that point he moves 8 kms to the east.How far is A from his starting
 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.




-- 
With Regards

Manish Patel
BTech 3rd Year
Computer Science And Engineering
National Institute of Technology -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] apti! solve this!

2011-08-17 Thread priya ramesh
the answer is given as 13... even i got root(146)

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from 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] Fork

2011-08-17 Thread saurabh singh
Kindly suggest some references on forkI know what it is and how it
works.Its just that there are few programs related with recursion that
I have to do using fork.I am not getting the idea for the same.

-- 
Saurabh Singh
B.Tech (Computer Science)
MNNIT 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]

2011-08-17 Thread Ashish kumar Jain
If it is assumed to be of uniform density,then 3 kg should be the weight.For
any non-uniformity,please mention the mass distribution function to be
considered.

On Tue, Aug 16, 2011 at 5:14 PM, Carl Barton odysseus.ulys...@gmail.comwrote:

 Depends which quarter you're measuring. Bricks aren't a uniform cuboid so
 wont be 1kg per quarter


 On 16 August 2011 12:16, sukran dhawan sukrandha...@gmail.com wrote:


 which college are u from?
 -- Forwarded message --
 From: ravinder s ravinderr...@gmail.com
 Date: Tue, Aug 16, 2011 at 4:15 PM
 Subject: [algogeeks]
 To: algogeeks@googlegroups.com


 a brick is 4kg.If you make the brick 1/4 then how much will be its
 weight.?

 --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from 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.




-- 
Regards,
Ashish

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from 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] J.P.MORGAN

2011-08-17 Thread tejaswini
what r da questions aked in written test??..i mean is it general aptitude 
test or technical based one

-- 
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/-/9RqImn8v8NUJ.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from 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] EMC software ???

2011-08-17 Thread htross
hi everyone...what kind of questions will be asked in EMC first
round???please help..

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from 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] Max possible numbers in incremental order

2011-08-17 Thread Raghavan
Given an unsorted array (A), find the max size of set in which the numbers
should be in the incremental order.


For example: A = [7,* 2, 3*, 1, *5, 8, 9*, 6]


The possible set with max numbers (in increment order) is {2, 3, 5, 8, 9}
and the result is: 5.

Note:
1. The final set can begin at any index.
2. It can skip any numbers which comes in between the array (here we skipped
{7, 1, 6}).

how to do this?

-- 
Thanks and Regards,
Raghavan KL

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from 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] knight's tour - variant

2011-08-17 Thread Seshumadhav Chaturvedula
what is the probability that a knight will stay on a K X K chess board after
'n' steps ?

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



[algogeeks] Re: Prime numbers

2011-08-17 Thread Don
I wrote it. Can you figure out how it works?
Don

On Aug 17, 1:25 am, Nitin Nizhawan nitin.nizha...@gmail.com wrote:
 Hi Dod,

   Could you pls expalin what this algorithm is doing and from where you got
 it.

 Thanks
 Nitin

 On Wed, Aug 17, 2011 at 2:56 AM, Don dondod...@gmail.com wrote:
  I wrote a program to print prime numbers, but it is not very fast. Can
  someone help me figure out why?

  #include stdio.h

  /* This program implements a blindingly fast algorithm
    to find prime numbers, using an elegant recursive method. */
  int _(int n, int m, int d, int t=0)
  {
     int r;
     if (t) return d?1+_(n,m,d-1,d):n?_(n-1,m,m,n):0;
     for(r=m!=n; d*(tn); ++t)
         r = _(n,_(t,m,0,1),d-1)|!_(t,1,t);
     return r*n;
  }

  /*--
   Print primes up to the requested value
  */
  int main(int argc, char* argv[])
  {
     for(int n = 2; n = 1000; n++)
         printf(%d is%s prime\n,n, _(n,1,n,0)?: not);

     return 0;
  }

  --
  You received this message because you are subscribed to the Google Groups
  Algorithm Geeks group.
  To post to this group, send email to algogeeks@googlegroups.com.
  To unsubscribe from 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] Max possible numbers in incremental order

2011-08-17 Thread Sanjay Rajpal
I think it is similar to longest increasing subsequence problem .
Try the following link :
http://en.wikipedia.org/wiki/Longest_increasing_subsequence

Sanjay Kumar
B.Tech Final Year
Department of Computer Engineering
National Institute of Technology Kurukshetra
Kurukshetra - 136119
Haryana, India




On Wed, Aug 17, 2011 at 8:26 AM, Raghavan its...@gmail.com wrote:



 Given an unsorted array (A), find the max size of set in which the numbers
 should be in the incremental order.


 For example: A = [7,* 2, 3*, 1, *5, 8, 9*, 6]


 The possible set with max numbers (in increment order) is {2, 3, 5, 8, 9}
 and the result is: 5.

 Note:
 1. The final set can begin at any index.
 2. It can skip any numbers which comes in between the array (here we
 skipped {7, 1, 6}).

 how to do this?

 --
 Thanks and Regards,
 Raghavan KL

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


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



Re: [algogeeks] Re: Prime numbers

2011-08-17 Thread Sanjay Rajpal
@Don : can you plz explain it ?

Sanjay Kumar
B.Tech Final Year
Department of Computer Engineering
National Institute of Technology Kurukshetra
Kurukshetra - 136119
Haryana, 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] Max possible numbers in incremental order

2011-08-17 Thread Raghavan
@sanjay:

Thats cool

On Wed, Aug 17, 2011 at 9:02 PM, Sanjay Rajpal srn...@gmail.com wrote:

 I think it is similar to longest increasing subsequence problem .
 Try the following link :
 http://en.wikipedia.org/wiki/Longest_increasing_subsequence

 Sanjay Kumar
 B.Tech Final Year
 Department of Computer Engineering
 National Institute of Technology Kurukshetra
 Kurukshetra - 136119
 Haryana, India




 On Wed, Aug 17, 2011 at 8:26 AM, Raghavan its...@gmail.com wrote:



 Given an unsorted array (A), find the max size of set in which the numbers
 should be in the incremental order.


 For example: A = [7,* 2, 3*, 1, *5, 8, 9*, 6]


 The possible set with max numbers (in increment order) is {2, 3, 5, 8, 9}
 and the result is: 5.

 Note:
 1. The final set can begin at any index.
 2. It can skip any numbers which comes in between the array (here we
 skipped {7, 1, 6}).

 how to do this?

 --
 Thanks and Regards,
 Raghavan KL

  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from 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.




-- 
Thanks and Regards,
Raghavan KL

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from 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] Max possible numbers in incremental order

2011-08-17 Thread Romil .......
@Sanjay: In the longest common subsequence we have the continuous elements
but here he has placed no restriction on that..

On Wed, Aug 17, 2011 at 9:06 PM, Raghavan its...@gmail.com wrote:

 @sanjay:

 Thats cool


 On Wed, Aug 17, 2011 at 9:02 PM, Sanjay Rajpal srn...@gmail.com wrote:

 I think it is similar to longest increasing subsequence problem .
 Try the following link :
 http://en.wikipedia.org/wiki/Longest_increasing_subsequence

 Sanjay Kumar
 B.Tech Final Year
 Department of Computer Engineering
 National Institute of Technology Kurukshetra
 Kurukshetra - 136119
 Haryana, India




 On Wed, Aug 17, 2011 at 8:26 AM, Raghavan its...@gmail.com wrote:



 Given an unsorted array (A), find the max size of set in which the
 numbers should be in the incremental order.


 For example: A = [7,* 2, 3*, 1, *5, 8, 9*, 6]


 The possible set with max numbers (in increment order) is {2, 3, 5, 8, 9}
 and the result is: 5.

 Note:
 1. The final set can begin at any index.
 2. It can skip any numbers which comes in between the array (here we
 skipped {7, 1, 6}).

 how to do this?

 --
 Thanks and Regards,
 Raghavan KL

  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from 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.




 --
 Thanks and Regards,
 Raghavan KL

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




-- 
Romil

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from 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] mutex

2011-08-17 Thread Aman Kumar
can we use mutex for synchronization?

if yes why?

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from 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] mutex

2011-08-17 Thread rajeev bharshetty
Mutexes are used for synchronisation.

Basically they allow only one process to access any shared memory at a time
thus helping sync among processes.

On Wed, Aug 17, 2011 at 9:29 PM, Aman Kumar amanas...@gmail.com wrote:

 can we use mutex for synchronization?

 if yes why?

 --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from 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
Rajeev N B http://www.opensourcemania.co.cc

*Winners Don't do Different things , they do things Differently*

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from 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] Max possible numbers in incremental order

2011-08-17 Thread Shiv Kumar Malik
i think this can be solved by dynamic programming.
this is very similar to the knapsack problem.

1. We have to maximize profit by increasing the length of array.
2. principle of optimality  also holds here.

considering the points solution ca be visualized easily.

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from 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] knight's tour - variant

2011-08-17 Thread Shiv Kumar Malik
what is the starting position of knight.

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from 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] Factorial Algorithms

2011-08-17 Thread Gaurav Menghani
Sure.

On Wed, Aug 17, 2011 at 4:33 PM, Nitin Nizhawan
nitin.nizha...@gmail.com wrote:
 @Gaurav , if you are able to find any resource that explains the logic of
 these algos, please let me know.

 On Sat, Aug 13, 2011 at 9:50 AM, Gaurav Menghani gaurav.mengh...@gmail.com
 wrote:

 Thanks for the link. I was unaware of such algorithms. These would
 come handy in programming contests.

 On Fri, Aug 12, 2011 at 3:00 PM, Nitin Nizhawan
 nitin.nizha...@gmail.com wrote:
  http://www.luschny.de/math/factorial/FastFactorialFunctions.htm
  Does anyone know of resource for good/detailed explanation  of factorial
  algorithms on this site?
 
  --
  You received this message because you are subscribed to the Google
  Groups
  Algorithm Geeks group.
  To post to this group, send email to algogeeks@googlegroups.com.
  To unsubscribe from this group, send email to
  algogeeks+unsubscr...@googlegroups.com.
  For more options, visit this group at
  http://groups.google.com/group/algogeeks?hl=en.
 



 --
 Gaurav Menghani

 --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from 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.




-- 
Gaurav Menghani

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from 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] De shaw ques!

2011-08-17 Thread aditya kumar
i guess if the option is provided it would have been an appropiate question
.

On Wed, Aug 17, 2011 at 6:02 PM, Rohit Srivastava access2ro...@gmail.comwrote:

 +1 to nitin


 On Wed, Aug 17, 2011 at 6:02 PM, Romil ... vamosro...@gmail.comwrote:

 People this is not the way to approach this one. This question seems to be
 unfair. Take the number to be 1939 which also leaves 69 as the remainder
 when divided by 935 but when it is divided by 38, the remainder is only 1.
 There is definitely some mistake. Also there doesn't seem to be a
 mathematical way to solve this.


 On Wed, Aug 17, 2011 at 5:58 PM, priya ramesh 
 love.for.programm...@gmail.com wrote:

 i solved it the same way you solved it. Took the same exmpl too :)

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




 --
 Romil


  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from 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.



[algogeeks] Re: Algorithms For Interviews

2011-08-17 Thread rohit kumra
Please mail it to me also!!

On Aug 17, 2:22 pm, Sanjay Rajpal srn...@gmail.com wrote:
 @Raman : mail kar de bhai abhi.

 Sanjay Kumar
 B.Tech Final Year
 Department of Computer Engineering
 National Institute of Technology Kurukshetra
 Kurukshetra - 136119
 Haryana, India

 On Wed, Aug 17, 2011 at 2:20 AM, raman gugnani
 ramangugnani@gmail.comwrote:







  sanjay bhai mjse le liyo. am having the buk nw.

  On 17/08/2011, Sanjay Rajpal sanjay.raj...@live.in wrote:
   @Shady : when u'll post the links, just leave a msg at srn...@gmail.com.
                  Thanks in advance :)
   Sanjay Kumar
   B.Tech Final Year
   Department of Computer Engineering
   National Institute of Technology Kurukshetra
   Kurukshetra - 136119
   Haryana, 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.

  --
  Raman Gugnani

  Computer Engg. Deptt.
  Under Graduate
  NIT Kurukshetra

  --
  You received this message because you are subscribed to the Google Groups
  Algorithm Geeks group.
  To post to this group, send email to algogeeks@googlegroups.com.
  To unsubscribe from this group, send email to
  algogeeks+unsubscr...@googlegroups.com.
  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] Max possible numbers in incremental order

2011-08-17 Thread Sanjay Rajpal
@Romil : what u r talking about is case of substring, check out the
problem again.
In substrings we need continuously, not in subsequences.

and I have said longest increasing subsequence, not longest common subsequence

On 8/17/11, Shiv Kumar Malik skm1...@gmail.com wrote:
 i think this can be solved by dynamic programming.
 this is very similar to the knapsack problem.

 1. We have to maximize profit by increasing the length of array.
 2. principle of optimality  also holds here.

 considering the points solution ca be visualized easily.

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




-- 
Sanjay Kumar
B.Tech Final Year
Department of Computer Engineering
National Institute of Technology Kurukshetra
Kurukshetra - 136119
Haryana, India
Contact: +91-8053566286, +91-9729683720

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



[algogeeks] Re: Fork

2011-08-17 Thread siva viknesh
search in this group itself .. there are gud questions with nice
explanations


On Aug 17, 7:27 pm, saurabh singh saurab...@gmail.com wrote:
 Kindly suggest some references on forkI know what it is and how it
 works.Its just that there are few programs related with recursion that
 I have to do using fork.I am not getting the idea for the same.

 --
 Saurabh Singh
 B.Tech (Computer Science)
 MNNIT 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] Re: C output

2011-08-17 Thread rajeev bharshetty
No the warning in gcc is

ibm1.c: In function ‘main’:
ibm1.c:7:19: warning: initialization discards qualifiers from pointer target
type


On Wed, Aug 17, 2011 at 11:50 AM, venkat p.venkatesh...@gmail.com wrote:

 yes u r correct

 On Aug 16, 8:22 pm, Sanjay Rajpal sanjay.raj...@live.in wrote:
  This is becuase Hello is a constant string and constant strings get
 stored
  in *Data Area, not in stack for the function you called. *Thats why
 pointer
  to constant string will be returned and program will not produce any
 error.
 
  Sanjay Kumar
  B.Tech Final Year
  Department of Computer Engineering
  National Institute of Technology Kurukshetra
  Kurukshetra - 136119
  Haryana, India
 
  On Tue, Aug 16, 2011 at 8:19 AM, rohit raman.u...@gmail.com wrote:
   #includestdio.hconst char *fun();
   int main()
   {
   char *ptr = fun();
   return 0;
   }const char *fun()
   {
   return Hello;
   }
 
   Why doesn't this code give error??
 
   --
   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/-/qeUTNwGNKfwJ.
   To post to this group, send email to algogeeks@googlegroups.com.
   To unsubscribe from 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
Rajeev N B http://www.opensourcemania.co.cc

*Winners Don't do Different things , they do things Differently*

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from 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] an amazing amazon question!

2011-08-17 Thread priya ramesh
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.



[algogeeks] Re: Prime numbers

2011-08-17 Thread Don
_(n,1,n,0) is true if n is prime.

I set out to create an O(n^n) algorithm. It essentially computes the
product of every possible set of n integers in the range (1..n-1). If
any of those products equal n, the number is composite. You will
notice that the program does not use the * operator to perform a
multiplication. It does use * as a logical AND, but to do the products
it uses a recursive call with t=1, which is a flag to tell _ to do
multiplication instead of determining if n is prime. It does the
multiplication by recursively adding up m*n ones. As a result, it
takes billions of recursive calls to determine that 6 is not prime.
Don

On Aug 17, 10:33 am, Sanjay Rajpal srn...@gmail.com wrote:
 @Don : can you plz explain it ?

 Sanjay Kumar
 B.Tech Final Year
 Department of Computer Engineering
 National Institute of Technology Kurukshetra
 Kurukshetra - 136119
 Haryana, 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.



[algogeeks] Re: GS apti ques!

2011-08-17 Thread gaurav kumar


any more questions plzz..gs is coming to ur colg on 23rd ...technical
also ?
  Even i got 0.212

  *Muthuraj R
  IV th Year , ISE
  PESIT , Bangalore*

  On Wed, Aug 17, 2011 at 4:42 PM, Romil ... vamosro...@gmail.comwrote:

  Kumar's approach would not do perhaps. I simply eliminated the undesired
  cases. Those include the one when none of them is active and when only one
  of them is active.
  @Kumar: You should have also added the term abc.

  On Wed, Aug 17, 2011 at 4:39 PM, priya ramesh 
  love.for.programm...@gmail.com wrote:

  @romil: how did you solve this??

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

  --
  Romil

   --
  You received this message because you are subscribed to the Google Groups
  Algorithm Geeks group.
  To post to this group, send email to algogeeks@googlegroups.com.
  To unsubscribe from 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] an amazing amazon question!

2011-08-17 Thread sagar pareek
16, 61, 106  average speed is 45 miles/hour

On Wed, Aug 17, 2011 at 10:28 PM, priya ramesh 
love.for.programm...@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.




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



  1   2   >