Re: [algogeeks] Hii

2012-08-22 Thread Thomas Hatta
On 08/14/2012 05:56 PM, ragavenderan venkatesan wrote:
 Given Xor of 3 numbers, How can we derive back those 3 numbers?
 Can any one explain with an example?


maybe you're just making the wrong question :)

x = 1
y = 2
x = x XOR y
y = y XOR x
x = x XOR y

what happens?

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

2012-07-28 Thread Hatta
is there an ANSI (either C or C++) library around that implements
common graph algorithms?

any pointer is appreciated.

thanks in advance.

-- 
Hatta

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



Re: [algogeeks] content extraction

2011-10-14 Thread Hatta
for instance, you'll need some kind of 'magic-key verification' or any
other 'pattern matching' with a big dictionary, a wide and complete
one; such as the one implemented by command 'file' in unix.



On Thu, Oct 13, 2011 at 3:44 PM, karthikeya s karthikeya.a...@gmail.com wrote:
 Does anyone have an idea about how to extract content from a file
 irrespective of file format???

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





-- 
Hatta

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



Re: [algogeeks] Re: content extraction

2011-10-14 Thread Hatta
+1 Dan.

I've been seeing lots of vague questions around. I thought of doing
the same but for the sake of peace I decided not to troll this one.

I'm not saying its OP's case but many people either think the job of
answering questions is costless or maybe think it's our duty to do so.

If you need help at least help us to help you.
Let's make this list a better place :-) It's already great, it can be awesome.


On Fri, Oct 14, 2011 at 4:55 PM, Dan dant...@aol.com wrote:
 Pick a language to work in.
 Open the file in whatever way your language of choice allows.
 Read the data.
 And...  you are done.

 A better answer will probably require a better question.

 Dan   ;-)


 On Oct 13, 10:44 am, karthikeya s karthikeya.a...@gmail.com wrote:
 Does anyone have an idea about how to extract content from a file
 irrespective of file format???

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





-- 
Hatta

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



Re: [algogeeks] Stone Game

2011-10-12 Thread Hatta
being accepted doesn't imply in being correct
maybe I'm wrong but given this Test Case I think BOB wins:

3
1 3 2

didn't he (bob!)?



On Wed, Oct 12, 2011 at 6:53 PM, Wladimir Tavares wladimir...@gmail.com wrote:
 In the problem Stone Game , I did the following algorithm that was accepted
 by spoj:

 #includestdio.h
 int main(){

   int n,t,i,j,cont;

   scanf(%d,t);

   while(t--){
 scanf(%d,n);
 cont=0;
 for(i=1;i=n;i++)
 {
   scanf(%d,j);
   if(j=i){
 cont+=j/i;
   }
 }

   if(cont%2==0)
 printf(BOB\n);
   else
  printf(ALICE\n);

 }
 return 0;
 }

 A friend of mine made the following code, which was also accepted by spoj:

 #include stdio.h
 #include iostream
 #include stack
 #include queue
 #include algorithm
 #include iostream

 using namespace std;



 int main(){
   int n;
   cin  n;
   while(n--)
   cout  ALICE  endl;
   return 0;
 }



 I could not prove because Alice always wins. Does anyone know how to prove
 this fact?



 Wladimir Araujo Tavares
 Federal University of Ceará
 Homepage | Maratona |




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




-- 
Hatta

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



Re: [algogeeks] subset of an array

2011-10-10 Thread Hatta
is it a contiguous set, any sparse subset or what?

if it's a subset of a set then it can be sparse, but when you say
array you make it quite tricky to figure out.

with all due respect sir,
please mind that when you make a question you're taking peoples time
to answer it
therefore if the answer is useless to you  you'd have wasted someone
else's time with no reason. so please, I gently ask you to make a
clear question next time.




On Mon, Oct 10, 2011 at 11:47 AM, Rashmi Jain rashmi.jain...@gmail.com wrote:
 algo to find subsets of an array whose sum is equal to a given number..?

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




-- 
Hatta

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



Re: [algogeeks] what is the use of fflush ?

2011-10-09 Thread Hatta
don't fflush(stdin) it doesn't make any sense.
fflush(stdout) and fflush(stderr) only.

On Sun, Oct 9, 2011 at 8:20 AM, Saravanan Selvamani
saravananselvam...@gmail.com wrote:
 Hi,
  In the following programming when i gave character input rather
 than integer , the following scanf statement is not working . so i introduce
 the fflush(stdin) before the last scanf statement.
 But i get the same error as i before .
                  #includestdio.h
  int main()
  {
  int a,b;
  scanf(%d,a);
     
 fflush(stdin);
     scanf(%d,b);
     printf(%d,b); //prints some
 garbage value.
     return 0;
  }
 so then what is the use of the fflush(stdin) and how to correct the above
 error? Thanks in advance.
 Regards
 P.S.Saravanan.
 --
 why so serious?

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




-- 
Hatta

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



Re: [algogeeks] Re: another group?

2011-10-07 Thread Hatta
the problem is that I have to open and read several emails about jobs
actually to be more precise currently there are more emails about jobs
and interviews than about algorithms.
it's really annoying to mute all threads. really really annoying.



On Fri, Oct 7, 2011 at 6:14 AM, Abhishek zeal.gosw...@gmail.com wrote:
 Do you think we require two group. it will be good if we post all
 query in one group. it is up to people who want to read or reply the
 mail

 On Oct 7, 12:25 am, arvind kumar arvindk...@gmail.com wrote:
 great idea..totally agreed! :)

 On 10/7/11, shady sinv...@gmail.com wrote:



  no, just two group
  algogeeks - algorithms
  interview-street - job related questions, interview questions, guidance,
  books request
  if questions are algorithmic in nature then you can ask it in either of the
  group... just be specific while asking questions and do search the archives
  before asking.

  the other one is restricted to a limit which is full.

  On Fri, Oct 7, 2011 at 10:52 AM, Amol Sharma amolsharm...@gmail.com 
  wrote:

  too many groups :(
  --

  Amol Sharma
  Third Year Student
  Computer Science and Engineering
  MNNIT Allahabad
   http://gplus.to/amolsharma99
  http://twitter.com/amolsharma99http://in.linkedin.com/pub/amol-sharma/21/79b/507http://youtube.com/amolsharma99

  On Fri, Oct 7, 2011 at 10:48 AM, shady sinv...@gmail.com wrote:

 http://groups.google.com/group/http://groups.google.com/group/interview-street?hl=en
  *interview-street http://groups.google.com/group/interview-street?hl=en
  *
  *
  *
  * http://groups.google.com/group/interview-street?hl=en**fine, here it
  is. If anyone posts any kind of stuff like Which company, what ctc, where
  to
  apply ? which coll. ? i need books ? how to prepare for aptitude in
  algogeeks **he/she will be banned right away. No warnings. For such
  purposes use the interview-street group.*
  *
  *
  *Thanks.*

  On Fri, Oct 7, 2011 at 10:36 AM, Hatta tmd...@gmail.com wrote:

  algogeeks-jobs? :-)

  perhaps the current owners/moderators could do that?

  On Thu, Oct 6, 2011 at 8:38 PM, Arun Vishwanathan
  aaron.nar...@gmail.com wrote:
   Hey all,

   Just a thought...since people feel strongly the urge to post only algo
   related questions here, can a new group be made to post stuff related
  to
   interviews and the questions asked for different companies?I thot it
  wud be
   really helpfulin case one needs to discuss the answers for some
   questions he can either post them to the same group itself or
   otherwsie
  to
   the algos group if a general algo is needed or so from the
   paper...what
  say?
   Arun

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

  --
  Hatta

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

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





-- 
Hatta

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks

Re: [algogeeks] Re: another group?

2011-10-07 Thread Hatta
two groups! two groups!



On Fri, Oct 7, 2011 at 9:41 AM, shiva@Algo shiv.jays...@gmail.com wrote:
 two grp will be good

 On Fri, Oct 7, 2011 at 5:39 AM, arvind kumar arvindk...@gmail.com wrote:

 Exactly..two groups needed! :)

 On Fri, Oct 7, 2011 at 4:42 PM, sunny agrawal sunny816.i...@gmail.com
 wrote:

 No, 2 Groups will be better because now a days 95% of the mails are
 regarding companies, rather than mails part most of the people are joining
 this group only because of this, because they are told by their friends that
 here most recent Company interview Questions are posted.

 1. Most of the Interview Question are Repeated, they are getting
 Re-Posted with in the gap of 10 days atMax.
 2. Most of the Interview Question are easily available on the web with
 their answer, i don't find any need of discussing them again and again here.
 3. and The Most Important part is the reason of creation of this group is
 not to train people for companies rather to discuss some really good
 Questions.
 4. and about read and reply to mail you like part, i don't want them even
 in my mailbox so that i don't have to decide whether to read it or not.


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

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

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




-- 
Hatta

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



Re: [algogeeks] Re: implementation of malloc

2011-10-07 Thread Hatta
Im sorry bro, but this paper sucks. 6 pages of shallow information
and obvious code.




On Fri, Oct 7, 2011 at 7:43 AM, Rahul Tiwari rahultiwari6...@gmail.com wrote:
 http://www.sendspace.com/file/wxqx5l




 On Oct 7, 10:09 am, saurabh singh saurab...@gmail.com wrote:
 It uses the system call brk

 On Fri, Oct 7, 2011 at 10:23 AM, praneethn praneeth...@gmail.com wrote:
  can somebody provide the link or explain how malloc is implemented
  internally as googling didn't help me.

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





-- 
Hatta

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



Re: [algogeeks] Re: another group?

2011-10-07 Thread Hatta
thanks bro! I'll join the list...



On Fri, Oct 7, 2011 at 1:27 PM, shady sinv...@gmail.com wrote:
 Hatta :D
 please join acm_practice group, we will solve lot of algorithmic problems
 there. :)

 On Fri, Oct 7, 2011 at 9:13 PM, Hatta tmd...@gmail.com wrote:

 two groups! two groups!



 On Fri, Oct 7, 2011 at 9:41 AM, shiva@Algo shiv.jays...@gmail.com wrote:
  two grp will be good
 
  On Fri, Oct 7, 2011 at 5:39 AM, arvind kumar arvindk...@gmail.com
  wrote:
 
  Exactly..two groups needed! :)
 
  On Fri, Oct 7, 2011 at 4:42 PM, sunny agrawal sunny816.i...@gmail.com
  wrote:
 
  No, 2 Groups will be better because now a days 95% of the mails are
  regarding companies, rather than mails part most of the people are
  joining
  this group only because of this, because they are told by their
  friends that
  here most recent Company interview Questions are posted.
 
  1. Most of the Interview Question are Repeated, they are getting
  Re-Posted with in the gap of 10 days atMax.
  2. Most of the Interview Question are easily available on the web with
  their answer, i don't find any need of discussing them again and again
  here.
  3. and The Most Important part is the reason of creation of this group
  is
  not to train people for companies rather to discuss some really good
  Questions.
  4. and about read and reply to mail you like part, i don't want them
  even
  in my mailbox so that i don't have to decide whether to read it or
  not.
 
 
  --
  Sunny Aggrawal
  B.Tech. V year,CSI
  Indian Institute Of Technology,Roorkee
 
  --
  You received this message because you are subscribed to the Google
  Groups
  Algorithm Geeks group.
  To post to this group, send email to algogeeks@googlegroups.com.
  To unsubscribe from this group, send email to
  algogeeks+unsubscr...@googlegroups.com.
  For more options, visit this group at
  http://groups.google.com/group/algogeeks?hl=en.
 
  --
  You received this message because you are subscribed to the Google
  Groups
  Algorithm Geeks group.
  To post to this group, send email to algogeeks@googlegroups.com.
  To unsubscribe from 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.
 



 --
 Hatta

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


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




-- 
Hatta

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



Re: [algogeeks] Re: another group?

2011-10-07 Thread Hatta
I just searched for acm_practice within this group and found the link ;-)


On Fri, Oct 7, 2011 at 3:09 PM, arvinthdd arvint...@gmail.com wrote:
 sorry for tail gating. could you please share me the link to this
 group? tried few groups in google groups. Is this  DVC programing
 group? pls guide. TIA.

 On Oct 7, 9:27 pm, shady sinv...@gmail.com wrote:
 Hatta :D
 please join acm_practice group, we will solve lot of algorithmic problems
 there. :)







 On Fri, Oct 7, 2011 at 9:13 PM, Hatta tmd...@gmail.com wrote:
  two groups! two groups!

  On Fri, Oct 7, 2011 at 9:41 AM, shiva@Algo shiv.jays...@gmail.com wrote:
   two grp will be good

   On Fri, Oct 7, 2011 at 5:39 AM, arvind kumar arvindk...@gmail.com
  wrote:

   Exactly..two groups needed! :)

   On Fri, Oct 7, 2011 at 4:42 PM, sunny agrawal sunny816.i...@gmail.com
   wrote:

   No, 2 Groups will be better because now a days 95% of the mails are
   regarding companies, rather than mails part most of the people are
  joining
   this group only because of this, because they are told by their friends
  that
   here most recent Company interview Questions are posted.

   1. Most of the Interview Question are Repeated, they are getting
   Re-Posted with in the gap of 10 days atMax.
   2. Most of the Interview Question are easily available on the web with
   their answer, i don't find any need of discussing them again and again
  here.
   3. and The Most Important part is the reason of creation of this group
  is
   not to train people for companies rather to discuss some really good
   Questions.
   4. and about read and reply to mail you like part, i don't want them
  even
   in my mailbox so that i don't have to decide whether to read it or not.

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

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

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

  --
  Hatta

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

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





-- 
Hatta

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



Re: [algogeeks] unix book

2011-10-07 Thread Hatta
advanced programming in unix envirnment -- stevens
the unix programming envirnment -- rob pike



On Wed, Oct 5, 2011 at 8:37 AM, bihari kumarvive...@gmail.com wrote:
 tell me good books on unix

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





-- 
Hatta

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



Re: [algogeeks] puzzle

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

from [1]


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


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


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


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




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



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

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





-- 
Hatta

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



Re: [algogeeks] Post only ALGO RELATED QUESTIONS ...

2011-10-06 Thread Hatta
I completely agree.

If your not sure what an algorithm and a computational problem is
check this article:

http://en.wikipedia.org/wiki/Computational_complexity_theory#Computational_problems

puzzles are not necessarily algorithms.

we're not interested in problem instances.

please mind that.



On Thu, Oct 6, 2011 at 12:37 PM, aditya kumar
aditya.kumar130...@gmail.com wrote:
 do justify the name of the group  ..
 thnks

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




-- 
Hatta

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



Re: [algogeeks] another group?

2011-10-06 Thread Hatta
algogeeks-jobs? :-)

perhaps the current owners/moderators could do that?

On Thu, Oct 6, 2011 at 8:38 PM, Arun Vishwanathan
aaron.nar...@gmail.com wrote:
 Hey all,

 Just a thought...since people feel strongly the urge to post only algo
 related questions here, can a new group be made to post stuff related to
 interviews and the questions asked for different companies?I thot it wud be
 really helpfulin case one needs to discuss the answers for some
 questions he can either post them to the same group itself or otherwsie to
 the algos group if a general algo is needed or so from the paper...what say?
 Arun


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




-- 
Hatta

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



Re: [algogeeks] implementation of malloc

2011-10-06 Thread Hatta
look for Doug Lea's malloc.

http://g.oswego.edu/dl/html/malloc.html
ftp://g.oswego.edu/pub/misc/malloc.c

the source code for this implementation is a really neat piece of
Literate Programming.


On Fri, Oct 7, 2011 at 1:53 AM, praneethn praneeth...@gmail.com wrote:
 can somebody provide the link or explain how malloc is implemented
 internally as googling didn't help me.

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




-- 
Hatta

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



Re: [algogeeks] Re: zigzag matrix

2011-10-03 Thread Hatta
Zig Zag gets the diagonals from the matrix as if you were calculating
the determinant.
I know many OPs are not very clear in their statements but with a bit
of goodwill I could grab this one. :-)



On Mon, Oct 3, 2011 at 11:01 AM, shady sinv...@gmail.com wrote:
 exactly problem is defined in such a vague manner what is zig-zag ?
 always post links of the place from where you copy the question.

 On Mon, Oct 3, 2011 at 6:18 PM, DIVIJ WADHAWAN divij...@gmail.com wrote:

 What do u mean by Zig-Zag ??

 On Mon, Oct 3, 2011 at 12:48 PM, Rahul Verma rahulverma@gmail.com
 wrote:

 @Anika

 What do you mean with the zigzag fashion here in problem?

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




-- 
Hatta

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



Re: [algogeeks] fibonicci doubt

2011-10-03 Thread Hatta
why you guys write in colors?
my eyes are bleeding



On Sun, Oct 2, 2011 at 11:36 PM, rahul sharma rahul23111...@gmail.com wrote:
 guys if i have
 Print the sum of the even terms occuring in Fibbonaci (till 1000 terms)
 then i will go for(i=0;i=1000;i++)
 {
 fibonicii code
 add if even
 }
 for 1000 fib terms
 if i have Print the sum of the even terms occuring in Fibbonaci (till 1000)
 it indicates that we will stop when we reached 1000 ..
 m i getting it ryt guys

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




-- 
Hatta

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



Re: [algogeeks] c help

2011-10-03 Thread Hatta
#include stdio.h
int main(void) {
   int x = 10;
   int *p = malloc(16);

   printf(%p %p\n, x, p);
   return 0;
}

first will print an address in the stack
second an address in heap

no big deal, uh? :)

On Mon, Oct 3, 2011 at 7:28 AM, rahul sharma rahul23111...@gmail.com wrote:
 % p prints the corresponding argument that is pointer.can nyone given an
 xample plz?

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




-- 
Hatta

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



Re: [algogeeks] linux program in c

2011-10-02 Thread Hatta
what is 'print'?
there's no such thing in C.


On Sun, Oct 2, 2011 at 4:49 AM, rahul sharma rahul23111...@gmail.com wrote:
 main()
 {
 int pid;
 pid=fork();
 if(pid==0)
 {
 print child;
 print(...,getpid());
 }
 else
 {
 print print;
 print(...,getpid());
 }

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




-- 
Hatta

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



Re: [algogeeks] Final Year Project Ideas

2011-10-01 Thread Hatta
you if you like both security and artificial intelligence
maybe you would enjoy developing a binary analyser
that could be used for fuzzing, reverse engineering and
(the one I find more interesting) worm/trojan/botnet analysis.


On Sat, Oct 1, 2011 at 10:47 AM, Deepak Garg deepakgarg...@gmail.com wrote:
 guys
 i m a computer science 4th year students.
 Recently i developed an Intrusion detection system and bandwidth utilization
 monitoring tool (using JAVA) for ATT as a 2 months internship project
 kindly do suggest me some very good final year projects
 my interest area is Artificial Intelligence, Networking.
 But i would like to do work on other fields as well.
 please guys help me...
 Regards
 Deepak

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




-- 
Hatta

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



Re: [algogeeks] Final Year Project Ideas

2011-10-01 Thread Hatta
an example: http://www.eresi-project.org

fuzzing as in fuzzy-testing -- an automated engine to find bugs,
vulnerabilities, etc.



On Sat, Oct 1, 2011 at 11:24 AM, Deepak Garg deepakgarg...@gmail.com wrote:
 thanks for replying sir :)
 cn u pls tell me more about developing a binary analyzer that could be used
 for fuzzing

 On Sat, Oct 1, 2011 at 7:40 PM, Hatta tmd...@gmail.com wrote:

 you if you like both security and artificial intelligence
 maybe you would enjoy developing a binary analyser
 that could be used for fuzzing, reverse engineering and
 (the one I find more interesting) worm/trojan/botnet analysis.


 On Sat, Oct 1, 2011 at 10:47 AM, Deepak Garg deepakgarg...@gmail.com
 wrote:
  guys
  i m a computer science 4th year students.
  Recently i developed an Intrusion detection system and bandwidth
  utilization
  monitoring tool (using JAVA) for ATT as a 2 months internship project
  kindly do suggest me some very good final year projects
  my interest area is Artificial Intelligence, Networking.
  But i would like to do work on other fields as well.
  please guys help me...
  Regards
  Deepak
 
  --
  You received this message because you are subscribed to the Google
  Groups
  Algorithm Geeks group.
  To post to this group, send email to algogeeks@googlegroups.com.
  To unsubscribe from this group, send email to
  algogeeks+unsubscr...@googlegroups.com.
  For more options, visit this group at
  http://groups.google.com/group/algogeeks?hl=en.
 



 --
 Hatta

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




 --
 U.D.I.T

 Sent by Nokia OVI (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.




-- 
Hatta

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



Re: [algogeeks] is it possible??

2011-10-01 Thread Hatta
in code bellow you declare main because any executable needs an
entrypoint you cannot fake that
anyway, it doesn't use main at all to invoke those functions.

http://www.geeksforgeeks.org/archives/14538

#includestdio.h

/* Apply the constructor attribute to myStartupFun() so that it
is executed before main() */
void myStartupFun (void) __attribute__ ((constructor));

/* Apply the destructor attribute to myCleanupFun() so that it
   is executed after main() */
void myCleanupFun (void) __attribute__ ((destructor));

/* implementation of myStartupFun */
void myStartupFun (void)
{
printf (startup code before main()\n);
}

/* implementation of myCleanupFun */
void myCleanupFun (void)
{
printf (cleanup code after main()\n);
}

int main (void)
{
printf (hello\n);
return 0;
}

On Mon, Sep 19, 2011 at 1:51 PM, cegprakash cegprak...@gmail.com wrote:
 is it possible to print something without a main function??
 I wonder how the code won't get any compile error

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





-- 
Hatta

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



Re: [algogeeks] Deletion in Vector

2011-10-01 Thread Hatta
yes they are shifted
that's why you should use std::deque whenever that matters

http://www.cplusplus.com/reference/stl/vector/erase/


Because vectors keep an array format, erasing on positions other than
the vector end also moves all the elements after the segment erased to
their new positions, which may not be a method as efficient as erasing
in other kinds of sequence containers (deque, list).



On Sat, Oct 1, 2011 at 1:21 PM, shady sinv...@gmail.com wrote:
 nice question, Vector are implemented as arrays so they are shifted unlike
 linked list.

 On Sat, Oct 1, 2011 at 9:34 PM, SAMMM somnath.nit...@gmail.com wrote:

 Just wondering when a element in a Vector is deleted/removed , is the
 preceding elements r shifted left or it behave like a linked
 list???

 For both Java and 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.


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




-- 
Hatta

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



Re: [algogeeks] recursion

2011-10-01 Thread Hatta
wait wait, that depends on the scope, the language, eventually the
compiler, everything.
please show a snip of recursive code so we can tell, please?


On Sat, Oct 1, 2011 at 3:44 PM, rahul sharma rahul23111...@gmail.com wrote:
 as we know in recursion new set of variables are created for every
 recurrsive call...if i have array in recursion,then does a new array created
 for every recursive call???

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




-- 
Hatta

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



Re: [algogeeks] Amazon - array problem

2011-09-30 Thread Hatta
char A[] = { 1,2,3,4,5 };
int algo(int b, int i) {
if(i == sizeof(A)) { return 1; }
int c = A[i];
int f = algo(b*c, i+1);
A[i] = b*f;
return f*c;
}


On Thu, Sep 29, 2011 at 8:26 AM, raju nikutel...@gmail.com wrote:
 Given an integer array. { 1,2,3,4,5 }
 Compute array containing elements
 120,60,40,30,24 (2*3*4*5,1*3*4*5, 1*2*4*5, 1*2*3*5, 1*2*3*4)
 We shouldn't use division operator( / )
 Time complexity O(n) .. Space complexity O(1)

 ~raju

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




-- 
Hatta

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



Re: [algogeeks] is it possible??

2011-09-29 Thread Hatta
in ELF compatible binaries it's also possible to use .ctors / .dtors
not sure whether PES has similar sections but I believe it does.

On Thu, Sep 29, 2011 at 3:42 PM, UTKARSH SRIVASTAV
usrivastav...@gmail.comwrote:

 you can use _start function in c and then compile with gcc -nostartfile


 On Mon, Sep 19, 2011 at 2:39 PM, Prakash D cegprak...@gmail.com wrote:

 in c/c++
 without main function how to write a compilable code?
 for example printing a string


 On Tue, Sep 20, 2011 at 12:15 AM, hary rathor harry.rat...@gmail.comwrote:

 use #pragma  in c .
 static block in java .

 by the way which lang you are talking about ?

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




 --
 *UTKARSH SRIVASTAV
 CSE-3
 B-Tech 3rd Year
 @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.




-- 
Hatta

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



Re: [algogeeks] Amazon - array problem

2011-09-29 Thread Hatta
are the algorithm instance always a sequence incremented by one?



On Thu, Sep 29, 2011 at 8:26 AM, raju nikutel...@gmail.com wrote:
 Given an integer array. { 1,2,3,4,5 }
 Compute array containing elements
 120,60,40,30,24 (2*3*4*5,1*3*4*5, 1*2*4*5, 1*2*3*5, 1*2*3*4)
 We shouldn't use division operator( / )
 Time complexity O(n) .. Space complexity O(1)

 ~raju

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




-- 
Hatta

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



Re: [algogeeks] Try on linux terminal

2011-09-27 Thread Hatta
I tried in my company's server had to reboot the whole thing now I'm fired!!

no just kidding, but please don't send fork bombs to the public that's
not polite.
quite old thing actually. no big deal. please cut that off next time.


On Tue, Sep 27, 2011 at 7:10 AM, sukran dhawan sukrandha...@gmail.com wrote:
 nothing is gonna happen... just restart the system after it hangs unless u
 don put it in init :)

 On Tue, Sep 27, 2011 at 2:53 PM, Suganya Palaniappan
 suganyapl...@gmail.com wrote:


 Don't try this... :( :(

 --Regards,
 Sug@ny@...


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




-- 
Hatta

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