[algogeeks] Re: Elevator system design - Which ( Design Pattern, Class, DS) will be used

2012-08-07 Thread Subhransu
Anyone has any hint ? On Mon, Aug 6, 2012 at 11:32 PM, Subhransu wrote: > As this might be discussed many times in this thread but cant able to > trace back the archived emails, so reiterating > > If i have to design a elevator system(for simplicity let's say 6 elevator), &g

[algogeeks] Elevator system design - Which ( Design Pattern, Class, DS) will be used

2012-08-06 Thread Subhransu
As this might be discussed many times in this thread but cant able to trace back the archived emails, so reiterating If i have to design a elevator system(for simplicity let's say 6 elevator), 1. How will be my *classes* look like ? 2. Which all *DesignPattern* i should use and how effective i can

[algogeeks] [Linkedlist] Given only a pointer to a node to be deleted in a singly linked list how you handle deleting last node

2012-07-09 Thread Subhransu
Is there any solution which will take care deleting a node Given only a pointer to a node to be deleted in a singly linked list( *How Do we consider deleting the last node*) * * *Subhransu * -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks&q

[algogeeks]

2011-06-22 Thread Subhransu
Exam - The How ... on Your First Try Certification Study Guide by William Manning Appreciate the help *Subhransu Panigrahi * *Mobile:* *+91-9840931538* *Email:* subhransu.panigr...@gmail.com -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks"

Re: [algogeeks] A simple C question

2011-06-03 Thread Subhransu
Here you go in C code http://codepad.org/gk6AZj0T int main() { if(printf("hello")!=0) { printf("world"); } else { printf("SCREWED ! ! !"); } return 0; } * * * * *Subhransu Panigrahi * *Mobile:* *+91-9840931538* *Email:* subhransu.panigr...@gmail.com

Re: [algogeeks] Re: sum of two

2011-05-28 Thread Subhransu
scenario ? *Subhransu Panigrahi * *Mobile:* *+91-9840931538* *Email:* subhransu.panigr...@gmail.com On Sat, May 28, 2011 at 10:47 AM, Aakash Johari wrote: > @Dave: I have suggested another solution in previous threads. Please go > through that. That is without maps. It uses array for m

Re: [algogeeks] If anyone have this book please mail me Thanks in advance

2011-04-20 Thread Subhransu
Could you please mail me the URL/PDF of this. the above link seems not working for me *Subhransu Panigrahi * *Mobile:* *+91-9840931538* *Email:* subhransu.panigr...@gmail.com On Wed, Apr 20, 2011 at 7:22 AM, D.N.Vishwakarma@IITR wrote: > *I've already got But thanks for your link &g

Re: [algogeeks] Re: Finding non-repetitive element from an Array with complexity n

2011-04-16 Thread Subhransu
@Dave: It can have multiple values(twice, thrice,. . . ). *Subhransu Panigrahi * *Mobile:* *+91-9840931538* *Email:* subhransu.panigr...@gmail.com On Sun, Apr 17, 2011 at 1:06 AM, Dave wrote: > @Subhransu: Your description and new example still leave open the > question of w

Re: [algogeeks] Re: Finding non-repetitive element from an Array with complexity n

2011-04-16 Thread Subhransu
? *Subhransu Panigrahi * *Mobile:* *+91-9840931538* *Email:* subhransu.panigr...@gmail.com On Sat, Apr 16, 2011 at 11:57 PM, Subhransu wrote: > Rephrasing the array to reflect one non-repetative element. Inconvenience > regretted. > A{1, 1024, 2 , 1, 2, *3*, 4, 4, 1024}. > Now th

Re: [algogeeks] Re: Finding non-repetitive element from an Array with complexity n

2011-04-16 Thread Subhransu
Rephrasing the array to reflect one non-repetative element. Inconvenience regretted. A{1, 1024, 2 , 1, 2, *3*, 4, 4, 1024}. Now there only one non-repetative element "3"... *Subhransu Panigrahi * *Mobile:* *+91-9840931538* *Email:* subhransu.panigr...@gmail.com On Sat, Apr 16, 201

[algogeeks] Re: Finding non-repetitive element from an Array with complexity n

2011-04-16 Thread Subhransu
C'mon guys ..... *Subhransu Panigrahi * *Mobile:* *+91-9840931538* *Email:* subhransu.panigr...@gmail.com On Fri, Apr 15, 2011 at 5:49 PM, Subhransu wrote: > Hey Geeks, > > Though there are multiple algo to find an element but with a complexity of > O(N), > How to find NO

[algogeeks] Finding non-repetitive element from an Array with complexity n

2011-04-15 Thread Subhransu
complexity n. *Subhransu Panigrahi * *Mobile:* *+91-9840931538* *Email:* subhransu.panigr...@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 f

Re: [algogeeks] Re: Permutation of a string

2011-04-12 Thread Subhransu
@baghel: The method returns the desire output. But looking for some algo which can do the same. *Subhransu Panigrahi * *Mobile:* *+91-9840931538* *Email:* subhransu.panigr...@gmail.com On Tue, Apr 12, 2011 at 12:08 AM, baghel wrote: > This solution is incorrect.you are only consider

Re: [algogeeks] Finding subarray

2011-04-11 Thread Subhransu
I didnt get the step 3. Could you please elaborate this(dry run be good to understand and bringing it for generic solution). Also how best the complexity will be . *Subhransu Panigrahi * *Mobile:* *+91-9840931538* *Email:* subhransu.panigr...@gmail.com On Mon, Apr 11, 2011 at 12:27 AM, ArPiT

[algogeeks] Permutation of a string

2011-04-08 Thread Subhransu
What could be the efficient algo for finding permutation of string. Lets say a user enter a string "abc". The output should be 6(3*2*1) along with he combination of them like abc bca cab bac acb cba *Subhransu Panigrahi * *Mobile:* *+91-9840931538* *Email:* subhra

Re: [algogeeks] finds a pair of close numbers

2011-04-01 Thread Subhransu
The worst case for any sort is *"nlogn"* . have 2 see some other approach than sorting [?] *Subhransu Panigrahi * *Mobile:* *+91-9840931538* *Email:* subhransu.panigr...@gmail.com On Fri, Apr 1, 2011 at 6:02 PM, snehal jain wrote: > For a set S of n real numbers, a pair of

Re: [algogeeks] maximum difference in an array

2011-03-30 Thread Subhransu
Don't you think sorting the array and take the first & last element ! ! ! *Subhransu Panigrahi * *Mobile:* *+91-9840931538* *Email:* subhransu.panigr...@gmail.com On Wed, Mar 30, 2011 at 12:43 PM, UTKARSH SRIVASTAV wrote: > Problem > Can anyone give me the efficient algo

Re: [algogeeks] Finding subarray

2011-03-30 Thread Subhransu
propose one approach you guys also can think a better one. *Subhransu Panigrahi * *Mobile:* *+91-9840931538* *Email:* subhransu.panigr...@gmail.com On Wed, Mar 30, 2011 at 12:55 PM, Saikat Debnath wrote: > @ Subhranshu : Your approach will fail for a case let X = {-1,4,2,3} and > your su

[algogeeks] Finding subarray

2011-03-29 Thread Subhransu
e list and found closest match will be 3. Then recursively search for 3 now where closest match is 2) Any algo with better complexity will be appreciated. *Subhransu Panigrahi * *Email:* subhransu.panigr...@gmail.com -- You received this message because you are subscribed to the Google Groups "

Re: [algogeeks] Re: 25march

2011-03-28 Thread Subhransu
heaver then you have 3 balls (4, 5 , 6) Compare 4 to 5 if both equals then heaver is 6th one or out of 4 & 5 one is heaver *Subhransu Panigrahi * *Mobile:* *+91-9840931538* *Email:* subhransu.panigr...@gmail.com > On Mar 25, 2:46 am, Lavesh Rawat wrote: > > *Weighi

Re: [algogeeks]

2011-03-28 Thread Subhransu
byte + padding 3 byte + b[4 byte] + c[2 byte] + 2 byte padding = 12byte ) instead of 7 byte. *Subhransu Panigrahi * *Email:* subhransu.panigr...@gmail.com On Sun, Mar 27, 2011 at 10:54 PM, hary rathor wrote: > hello geeks: > > can any body tell me how structure padding work? >

Re: [algogeeks] spoj problem - INFINITY

2011-03-06 Thread Subhransu
This code working fine in g++ compiler. Here is the output: http://codepad.org/lEheQIkv Compiler version : *C++*: g++ 4.1.2 *Subhransu Panigrahi * *Mobile:* *+91-9840931538* *Email:* subhransu.panigr...@gmail.com On Thu, Mar 3, 2011 at 11:34 PM, Vishnutej wrote: > I dunno y dis code i

[algogeeks] Virtual Constructure ?

2011-03-06 Thread Subhransu
Hey Guys, I just want to know the reason behind C++ forcess "constructors cannot be declared virtual" as the virtual table construct during compile time itself. *Subhransu Panigrahi * *Mobile:* *+91-9840931538* *Email:* subhransu.panigr...@gmail.com -- You received this message b

Re: [algogeeks] [brain teaser ] 28february

2011-03-01 Thread Subhransu
hru satu sun mon tue *wed* thru fri *Subhransu Panigrahi * *Mobile:* *+91-9840931538* *Email:* subhransu.panigr...@gmail.com On Mon, Feb 28, 2011 at 1:32 PM, Lavesh Rawat wrote: > *Guess the Day Problem Solution* > * > *In one small town, there is a liar who lies on six days of

Re: [algogeeks] printing without loop

2011-03-01 Thread Subhransu
e 100. It has to be with caller to decide how many number he has to print & the definition will take care of algorithm. *Subhransu Panigrahi * *Mobile:* *+91-9840931538* *Email:* subhransu.panigr...@gmail.com On Tue, Mar 1, 2011 at 1:27 PM, sunny agrawal wrote: > int i=1; > #defin

Re: [algogeeks] Parallel algorithms

2011-02-22 Thread Subhransu
plz do send me if you got any reply. *Subhransu Panigrahi * *Mobile:* *+91-9840931538* *Email:* subhransu.panigr...@gmail.com On Fri, Feb 18, 2011 at 7:37 PM, Umer Farooq wrote: > Hello, > > Can anyone suggest me a good book for parallel algorithms? > > -- > Umer > >