Re: [algogeeks] directi paper pattern

2012-07-31 Thread md shaukat ali
On Tue, Jul 31, 2012 at 7:37 PM, deepikaanand wrote: > can anyone tell me the pattern (selection procedure )followed by directi > this year > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To view this discussion on the web visit > htt

Re: [algogeeks] C o/p

2012-07-08 Thread md shaukat ali
ra > > wrote: > > > >> .i think there will be an error in this -l value required, as post > >> increment has more precedence than pre increment > >> > >> > >> On Sun, Jul 8, 2012 at 11:44 PM, ashish jain > >> wrote: > >> > >

Re: [algogeeks] C o/p

2012-07-08 Thread md shaukat ali
but i am confused in this problem... int a=10; int b; b=--a--; printf("%d %d",a,b);..what will output? On Sun, Jul 8, 2012 at 11:39 PM, md shaukat ali wrote: > agree with adarsh > > > On Sun, Jul 8, 2012 at 10:39 PM, adarsh kumar wrote: > >> Sorry, its 6/6 and not

Re: [algogeeks] C o/p

2012-07-08 Thread md shaukat ali
agree with adarsh On Sun, Jul 8, 2012 at 10:39 PM, adarsh kumar wrote: > Sorry, its 6/6 and not 6/5, > > regds. > > On Sun, Jul 8, 2012 at 10:39 PM, adarsh kumar wrote: > >> Firstly, this is ambiguous and expressions with multiple >> increment/decrement operators will get executed according to

Re: [algogeeks] java books???

2011-09-06 Thread md shaukat ali
nageshwar rao On Tue, Sep 6, 2011 at 8:22 PM, Sandy wrote: > Java How To Program - Deitel & Deitel > > > On Tue, Sep 6, 2011 at 5:38 PM, htross wrote: > >> guys i need to prepare for java aptitude so please refer some >> books.. >> >> -- >> You received this message because

[algogeeks] Discussion on unique-elements-in-an-array

2007-10-29 Thread MD
There can be multiple ways to do this.. obviously sorting gives you o(nlogn). another approach of hashtable gives o(n) and here is another approach: 1. maintaining array of size N, initialized to 0. Say B 2. for(i=0;i= 1 , which gives unique elements only. Only restriction is the memory. --~--~

[algogeeks] Re: A efficient algorithm for digit sum?

2007-09-27 Thread MD
If we have enough memory.. we could probably have a array to hold values for numbers in each base and sum it and output the value.. :) efficiency at the cost of memory. On Sep 25, 5:12 pm, Mgccl <[EMAIL PROTECTED]> wrote: > is there a known, efficient digit sum algorithm exist for any base. > In

[algogeeks] Re: How to solve this problem efficiently?

2007-09-07 Thread MD
Let me know any comments of above approach. -MD On Sep 5, 8:34 am, adak <[EMAIL PROTECTED]> wrote: > Of course, the index numbers lower than the book being checked out, > don't need to be changed, just the higher numbers. > > I like using an array of structs with structure

[algogeeks] Re: Post order traversal of a binary tree without recursion

2007-08-27 Thread MD
I think first s=pop() in while is not the right approach. This is an alternate approach where explored() checks if the node is visited or not... hence discarding that path.. and I think the following handles the null conditions as well.. (ex given by chandra) void postOrderTraversal(Tree *root)