Re: [algogeeks] Find longest consecutive subsequence

2014-01-29 Thread VARUN SACHDEVA
If we don't process the same number more than once, does it not create a situation when we miss out on the solution? For example the digit 6 in this sequence: 1,2,3,4,0,2,3,1,4,5,2,4,3,4,5,6,7,8,9 Varun Varun Sachdeva On 28 January 2014 00:29, Don wrote: > This works, and I thin

Re: [algogeeks] Casual: MS in US expenses

2013-06-25 Thread Varun Nagpal
I think you should go to Edulix.com. There you can find details about the expenses for MS in a many different US universities On Tue, Jun 25, 2013 at 4:54 PM, Shachin Sharma wrote: > Most of the good/top universities will have many TA and RA positions. > Besides this University associated insti

Re: [algogeeks] Casual: MS in US expenses

2013-06-25 Thread Varun Nagpal
Prepare to spend atleast 20 Lakhs On Tue, Jun 25, 2013 at 4:49 PM, Jagannath Prasad Das wrote: > Folks, >I suppose this is not the right blog to query about the aforementioned > subject, but i am of opinion that i can get a comprehensive reply to my > question. On an average how much money(a

[algogeeks] Find a specific set of numbert

2013-04-03 Thread Varun
Hello all, I have this problem to solve, and seek your assistance. Program should be feeded with following integer inputs. 1. n integers in ascending order (a1,a2,a3...an) 2 an integer K. We need to find K(k1,k2...kn) integers between [a1..an] both inclusive such that the sum of the absolute va

Re: [algogeeks] Puzzle.. How to solve??

2013-01-29 Thread varun pahwa
ons can be answered. Hope I'm cleared. Thanks & Regards, Varun On Tue, Jan 29, 2013 at 12:25 AM, nikhil rao wrote: > Dream teams are formed by television viewers by selecting five players > from the sixteen players namely > F1,F2,F3,F4,F5,F6,F7,F8,F9,F10,F11,F12,F13,F14

[algogeeks] Re: OS question..

2012-11-05 Thread Varun
see, ideally for Q1, the answer the NO. But paging has some advantage, therefore its better to have it neverthless Q2, ?? -- 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/m

Re: [algogeeks] Accolite placement papers???

2012-09-08 Thread varun singh
For datastructure round, do practice simple datastructure questions generally asked in microsoft interviews. Varun Singh 9958130047 On Sat, Sep 8, 2012 at 11:13 AM, sandeep kumar wrote: > Hey!!! > Can anyone give some idea about Accolite technologies placement procedure > and question

Re: [algogeeks] Enter in the loop challenge

2012-09-06 Thread Varun
> > This one's clever! -- 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/-/DVlEUy17gMgJ. To post to this group, send email to algogeeks@googlegroups.com. To un

[algogeeks] Re: Queue problem

2012-07-24 Thread Varun
> > Circular Queue, as it will overwrite in that case. I am not sure, if I understood the question correctly though. -- 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/ms

[algogeeks] Re: storing URL's

2012-05-19 Thread Varun
That's agreed Gene. Answer depends on context. On Saturday, 19 May 2012 22:46:06 UTC+5:30, Gene wrote: > > This question has no answer. Every good student of computer science > will know that you choose a data structure based on the _operations_ > that must be performed on it: insert, lookup and

[algogeeks] Re: storing URL's

2012-05-15 Thread Varun
should be a tree based on domain in url and directory mentioned in url. On Tuesday, 15 May 2012 21:20:55 UTC+5:30, atul007 wrote: > > Given a file which contain millions of URL's. which data structure would > you use for storing these URL's . data structure used should store and > fetch data in

[algogeeks] Re: determine if a string if of form pZq

2012-04-20 Thread Varun
what's q then? can you please give few more examples? On Thursday, 19 April 2012 23:02:31 UTC+5:30, tech coder wrote: > > determine whether the given string is of form pZq. > p and q can contain only X and Y. > like if p=XXYX then z will be XYXX > for ex XXYXXXYXX is valid > > the limitation is

[algogeeks] Re: Which data structure to use in searching a list for information about - -

2012-04-10 Thread Varun
use double hash On Friday, 6 April 2012 22:50:14 UTC+5:30, Rose wrote: > > Thanks all of you. I'm new to algorithms and data structure and I'm new in > this forum. > I have an assignment but not sure yet: > > A. Describe a data structure which can effectively answer the following > questions: >

Re: [algogeeks] Re: GPU doubt

2012-04-09 Thread Varun Nagpal
Sorry for lot of typos On Mon, Apr 9, 2012 at 1:53 PM, Varun Nagpal wrote: > GP programming on GPU is useful for those algorithms which are > computationally intensive, can be paralleled with least overheads, > granularity of per thread computations is not big, less+similar control &

Re: [algogeeks] Re: GPU doubt

2012-04-09 Thread Varun Nagpal
dware options and its architecture. One of the criteria of how to choose would be see the calculations/per memory access. The higher is this value, the better it would be suitable for GPU than CPU and vice versa I suggest you to this question on a computer architecture forum. Thanks Varun On Mon,

[algogeeks] Re: networking

2012-03-29 Thread Varun
use RPC or RMI. Since java use RPC On Friday, 23 March 2012 10:07:12 UTC+5:30, Aman Kumar wrote: > > Hii to all > > how to make a call of class's method(function) from client side to > server in java? > > please replyit's urgent -- You received this message because you are subscribed to t

[algogeeks] Re: Doubt in removing loop from linked list

2012-03-10 Thread Varun
Yes, if they meet then its a loop, but in later case, they won't meet in case where loop has anything more than 1 element. here one ptr is at meeting point, and second is at start of loop, but the distance between them isn't always one, its the number of elements in the loop. Now when u move each b

Re: [algogeeks] thanx to all

2012-02-28 Thread Varun Nagpal
cool On Tue, Feb 28, 2012 at 9:22 PM, Ravi Ranjan wrote: > hey Geeks thanx a lot .. for the valuable information in the > discussions > > i got selected in Yatra.com (R n D profile) > > thanx a lot for the algorithms explained by to guys > > THANX A LOT > > :D:D:D:D > > > -- > You receive

Re: [algogeeks] doubt about macro.......

2012-02-04 Thread Varun
Yep..that's correct. In this context, I would like to understand a little more about inline functions? Other than they being a type sensitive compared to macro, what else differs them from macro, and does each call to inline function, does get replaced by its definition!. Any link, that can giv

[algogeeks] algorithm to sort based on frequency.

2012-02-01 Thread Varun
I was asked this question sometime during an interview. WE have an array of known length. The elements in array can be repetitive. now sort the array based on frequency of occurrence of each element in array. Eg: a= {4.3.2.5.4.6.2.6} after sorting a={4,4,2,2,6,6,3,5} 4,2,6 all occurs twice, in t

[algogeeks] Re: Director Round MS Google

2012-01-31 Thread Varun
Ideally it should be invested intellectually to reap fruits for future. Invest in RnD for upcoming technologies like wireless, video, roaming, seamless integration of devices, achieving standards for protocols which are heavily used but not standardized. On Feb 1, 5:53 am, Ashish Goel wrote: > Hi

Re: [algogeeks] Re: MICROSOFT WRITTEN

2011-10-02 Thread Varun Jakhoria
ived this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to algogeeks@googlegroups.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...@googlegroups.com. > For more options, visit this

Re: [algogeeks] Re: google os ques on pipelining

2011-09-27 Thread Varun Nagpal
Thats right. Clock speed is governed by slowest processing stage + register delay. With clock cycle of (160+5) ns even the faster stages will be forced to run slowly. As a result 1st instruction will take 165*4 ns and rest of following 999 instructions will take 165*999 ns. On Tue, Sep 27, 2011 a

Re: [algogeeks] C++ Doubts !!

2011-09-24 Thread Varun Nagpal
Dude google C++ Faqs. You will find all your answers. You can also buy some books 1. C++ Common Knowledge: Essential Intermediate Programming 2. Effective and More effective C++ 3. C++ gotchas On Sat, Sep 24, 2011 at 11:52 AM, Decipher wrote: > Q1) What does the compiler does if I declare a bas

Re: [algogeeks] Re: Blocked/Unrolled linked list with no duplicates and sorted

2011-09-16 Thread Varun Nagpal
ext = newNode return startNode } } } } } *END Function* *You can look at below email for more explanation of unrolled linked list.* * * * * *Thanks * *V.* * * * * On Thu, Jul 28, 2011 at 6:43 PM, Varun Nagpal wrote: > Thanks a lot for your inputs Sunny. Your solution seems corr

Re: [algogeeks] c output doubt

2011-08-11 Thread Varun Jakhoria
d email to > algogeeks+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > > -- Varun Jakhoria ...it's only about 0's & 1's -- You received this message because you are subscribed to the G

Re: [algogeeks] Re: puzzle

2011-08-10 Thread varun pahwa
group, send email to algogeeks@googlegroups.com. >>> To unsubscribe from 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: need a pgm pls help me

2011-08-09 Thread Varun Jakhoria
group. > To post to this group, send email to algogeeks@googlegroups.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > > -- Varun Jakhoria ...it

Re: [algogeeks] os

2011-08-09 Thread Varun Jakhoria
mail to algogeeks@googlegroups.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- Varun Jakhoria ...it's only about 0's & 1's --

Re: [algogeeks] output?

2011-08-09 Thread Varun Jakhoria
ups.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- Varun Jakhoria ...it's only about 0's & 1's -- You received this mess

Re: [algogeeks] pls help

2011-08-05 Thread Varun Jakhoria
roup/algogeeks?hl=en. >>> >> >> >> >> -- >> Regards, >> Kamakshi >> kamakshi...@gmail.com >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Algorithm Geeks" group. >> To pos

Re: [algogeeks] Missing elements

2011-08-01 Thread varun pahwa
hm Geeks" group. > To post to this group, send email to algogeeks@googlegroups.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > > -- Varu

Re: [algogeeks] array constant

2011-07-30 Thread varun pahwa
use you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to algogeeks@googlegroups.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...@googlegroups.com. > For more options, visit this group at >

Re: [algogeeks] Re: binary search tree question!!!!

2011-07-30 Thread varun pahwa
ks@googlegroups.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- Varun Pahwa B.Tech (IT) 7th Sem. Indian Institute of Information Technology Allahabad

Re: [algogeeks] Re: Permutations in a string

2011-07-28 Thread varun pahwa
@ambika :: assuming only pointer can move in forward direction. On Thu, Jul 28, 2011 at 11:26 PM, varun pahwa wrote: > @amit:: I think ur solution will give wrong answer if all the characters > are not unique. > > On Thu, Jul 28, 2011 at 11:13 PM, SAMMM wrote: > >> >&

Re: [algogeeks] Re: Permutations in a string

2011-07-28 Thread varun pahwa
.com. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > > -- Varun Pahwa B.Tech (IT) 7th Sem. Indian Institute of Information Technology Allahabad. Ph : 09793899112 Official Email :: rit2008...@iiita.ac.in Another Email :: varunpahwa.ii.

Re: [algogeeks] Re: Blocked/Unrolled linked list with no duplicates and sorted

2011-07-28 Thread Varun Nagpal
avoidance ? Do I perform binary search on each node during the list construction to check for duplicates? Or you can think of a more efficient way? Thanks a lot Varun On Thu, Jul 28, 2011 at 11:02 AM, sunny agrawal wrote: > Nice Problem :) > > i think taking care of duplicates is ve

Re: [algogeeks] Question

2011-07-25 Thread varun pahwa
group. >>> To post to this group, send email to algogeeks@googlegroups.com. >>> To unsubscribe from this group, send email to >>> algogeeks+unsubscr...@googlegroups.com. >>> For more options, visit this group at >>> http://groups.google.com/group/algogeeks

Re: [algogeeks] C OUTPUT

2011-07-25 Thread varun pahwa
roup/algogeeks?hl=en. >> > > > > -- > Regards > Rajeev N B <http://www.opensourcemania.co.cc> > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to alg

Re: [algogeeks] MS Written Test

2011-07-24 Thread varun pahwa
N B <http://www.opensourcemania.co.cc> > > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to algogeeks@googlegroups.com. > To unsubscribe from this group, send email

Re: [algogeeks] MS Written Test

2011-07-23 Thread varun pahwa
LLAHABAD > > > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to algogeeks@googlegroups.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...

Re: [algogeeks] explain plzz:output in file old.out

2011-07-22 Thread varun pahwa
glegroups.com. >>>>> To unsubscribe from 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: Contiguous subarray with sum zero

2011-07-20 Thread varun pahwa
this group at >> http://groups.google.com/group/algogeeks?hl=en. >> > > > > -- > Regards, > Kamakshi > kamakshi...@gmail.com > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. &

Re: [algogeeks] Re: Amazon

2011-07-19 Thread varun pahwa
Algorithm Geeks" group. > To post to this group, send email to algogeeks@googlegroups.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- Varun

Re: [algogeeks] Re: INFINITY

2011-07-19 Thread varun pahwa
uot; > > > > *- 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 g

Re: [algogeeks] ms ques

2011-07-18 Thread varun pahwa
le Groups > "Algorithm Geeks" group. > To post to this group, send email to algogeeks@googlegroups.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/gro

Re: [algogeeks] Re: Long string and the first non-repeating character

2011-07-18 Thread varun pahwa
group, send email to algogeeks@googlegroups.com. >> To unsubscribe from this group, send email to >> algogeeks+unsubscr...@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/algogeeks?hl=en. >> >> > > > -- > **Reg

Re: [algogeeks] Long string and the first non-repeating character

2011-07-18 Thread varun pahwa
gt; You received this message because you are subscribed to the Google Groups >> "Algorithm Geeks" group. >> To post to this group, send email to algogeeks@googlegroups.com. >> To unsubscribe from this group, send email to >> algogeeks+unsubscr...@googlegroups.com. >&

Re: [algogeeks] Long string and the first non-repeating character

2011-07-18 Thread varun pahwa
-- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to algogeeks@googlegroups.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...@googlegroups.com. > For mo

Re: [algogeeks] Missing Number in an array

2011-07-18 Thread varun pahwa
sorry that would not work. only it could work if each element is present exactly once. On Mon, Jul 18, 2011 at 5:44 PM, Aakash Johari wrote: > Yes, you will have to write a quad eq. solver. It's easy to write. > > > On Mon, Jul 18, 2011 at 5:13 AM, Aakash Johari wrote: > >

Re: [algogeeks] Missing Number in an array

2011-07-18 Thread varun pahwa
send email to > algogeeks+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > > -- Varun Pahwa B.Tech (IT) 7th Sem. Indian Institute of Information Technology Allahabad. Ph : 09793899112 Official Email :: rit2008..

Re: [algogeeks] Missing Number in an array

2011-07-18 Thread varun pahwa
s group at > http://groups.google.com/group/algogeeks?hl=en. > > -- Varun Pahwa B.Tech (IT) 7th Sem. Indian Institute of Information Technology Allahabad. Ph : 09793899112 Official Email :: rit2008...@iiita.ac.in Another Email :: varunpahwa.ii...@gmail.com People who fail to plan are th

Re: [algogeeks] c++ output

2011-07-17 Thread varun pahwa
oup, send email to algogeeks@googlegroups.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- Varun Pahwa B.Tech (IT) 7th Sem. Indian Instit

Re: [algogeeks] what would be the output of following code??

2011-07-16 Thread varun pahwa
ignore my previous result. the ans to first should be 2 22 2 0. and the ans to second should be. 2 222 2 please correct me if i am wrong. On Sat, Jul 16, 2011 at 5:38 PM, varun pahwa wrote: > the ans to first should be 2 2 2 2 0. > and the and to second should be. > 222 2 > 2 >

Re: [algogeeks] what would be the output of following code??

2011-07-16 Thread varun pahwa
please ignore my previous post. On Sat, Jul 16, 2011 at 5:38 PM, varun pahwa wrote: > the ans to first should be 2 2 2 2 0. > and the and to second should be. > 222 2 > 2 > please correct me if i am wrong. > > On Sat, Jul 16, 2011 at 4:57 PM, shady wrote: > >> @ank

Re: [algogeeks] what would be the output of following code??

2011-07-16 Thread varun pahwa
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 unsubsc

Re: [algogeeks] X-AmazoN

2011-07-15 Thread varun pahwa
om this group, send email to > algogeeks+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- Varun Pahwa B.Tech (IT) 7th Sem. Indian Institute of Information Technology Allahabad. Ph : 09793899112 Official Email :: rit20

Re: [algogeeks] microsoft ques

2011-07-12 Thread varun pahwa
ps.com. >> To unsubscribe from 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 t

Re: [algogeeks] microsoft ques

2011-07-12 Thread varun pahwa
>> >> >> > -- > Regards: > --- > D Kranthi kumar > Computer Science & Engg. > 1st Mtech, IIT Madras. > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To p

Re: [algogeeks] C OUTPUT HELP

2011-07-11 Thread varun pahwa
ant in it ?anyone link regarding that ?? > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to algogeeks@googlegroups.com. > To unsubscribe from this group, send email to > algogeek

Re: [algogeeks] Re: find sol!!

2011-07-09 Thread varun pahwa
; > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to algogeeks@googlegroups.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...@googlegroups.com. >

Re: [algogeeks] puzzle

2011-07-09 Thread varun pahwa
p, send email to > algogeeks+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- Varun Pahwa B.Tech (IT) 7th Sem. Indian Institute of Information Technology Allahabad. Ph : 09793899112 Official Email :: rit20

[algogeeks] Spaghetti Sort

2011-07-05 Thread varun gupta
Can someone give me coding implementation of spaghetti sort in java or c/c++. I know the steps but i wonder how it can be implemented. http://en.wikipedia.org/wiki/Spaghetti_sort -- Warm Regards, Varun Kumar Email Id: varun.gt...@gmail.com Contact: +91-9711751235 -- You received this message

Re: [algogeeks] Re: Interview Question

2011-07-02 Thread varun pahwa
Mittal >> 4th year , Computer Engineering >> Student-Coordinator , DTU WebTeam >> Delhi Technological University >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Algorithm Geeks" group. >> To post to this

Re: [algogeeks] Re: help..

2011-07-02 Thread varun pahwa
@sunny thnx for the correction. On Sat, Jul 2, 2011 at 9:16 AM, varun pahwa wrote: > @sunny ya i wanted to write the while(k % m == 0) > > > On Sat, Jul 2, 2011 at 3:47 AM, sameer.mut...@gmail.com < > sameer.mut...@gmail.com> wrote: > >> n&n-1 is the expressio

Re: [algogeeks] Re: help..

2011-07-02 Thread varun pahwa
logy,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+u

Re: [algogeeks] Re: help..

2011-07-02 Thread varun pahwa
subscr...@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 g

Re: [algogeeks] please explain

2011-06-30 Thread varun pahwa
gt;> To post to this group, send email to algogeeks@googlegroups.com. >> To unsubscribe from 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] Binary Tree

2011-06-29 Thread varun pahwa
I don't have any alternative solution till now. On Wed, Jun 29, 2011 at 8:05 PM, varun pahwa wrote: > @ankit: ur space complexity will be too high. i think it will be ultimately > 2^n where n is the number of the nodes. > > On Wed, Jun 29, 2011 at 1:10 PM, ankit sambyal wrote:

Re: [algogeeks] Binary Tree

2011-06-29 Thread varun pahwa
gt;> > > > > -- > > You received this message because you are subscribed to the Google Groups > > "Algorithm Geeks" group. > > To post to this group, send email to algogeeks@googlegroups.com. > > To unsubscribe from this group, send email to > >

Re: [algogeeks] Re: Statement Riddle

2011-06-27 Thread varun pahwa
oglegroups.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,

Re: [algogeeks] Re: given a bst and a value x.find pair of nodes in the tree that sum upto x

2011-06-27 Thread varun pahwa
isit this group at >>> > >http://groups.google.com/group/algogeeks?hl=en. >>> > >>> > -- >>> > Sunny Aggrawal >>> > B-Tech IV year,CSI >>> > Indian Institute Of Technology,Roorkee- Hide quoted text - >>> > >>>

Re: [algogeeks] given a bst and a value x.find pair of nodes in the tree that sum upto x

2011-06-27 Thread varun pahwa
roups > "Algorithm Geeks" group. > To post to this group, send email to algogeeks@googlegroups.com. > To unsubscribe from 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] MS question

2011-06-27 Thread varun pahwa
t; http://groups.google.com/group/algogeeks?hl=en. > > -- Varun Pahwa B.Tech (IT) 7th Sem. Indian Institute of Information Technology Allahabad. Ph : 09793899112 ,08011820777 Official Email :: rit2008...@iiita.ac.in Another Email :: varunpahwa.ii...@gmail.com People who fail to plan are those who p

Re: [algogeeks] Re: Sort - Consecutive Array in O(n)

2011-06-25 Thread varun pahwa
= 2 T(n/2) + O(1) :: O(nlogn) > > > > > On Sat, Jun 25, 2011 at 12:15 PM, varun pahwa wrote: > >> will this work. >> n size of array. >> cal (a[i] - min(arr) + 1). >> now cal sum of a[i], cal square sum of array as (a[i] * a[i]) , cal cube >> sum

Re: [algogeeks] Binary Tree

2011-06-25 Thread varun pahwa
, send email to algogeeks@googlegroups.com. > >> >>>>>> To unsubscribe from this group, send email to > >> >>>>>> algogeeks+unsubscr...@googlegroups.com. > >> >>>>>> For more options, visit this group at > >> >

Re: [algogeeks] Re: Sort - Consecutive Array in O(n)

2011-06-24 Thread varun pahwa
il to algogeeks@googlegroups.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > > -- Varun Pahwa B.Tech (IT) 7th Sem. Indian Institute of Information Tec

Re: [algogeeks] Re: strings

2011-06-22 Thread varun pahwa
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

Re: [algogeeks] Re: Amazon - Longest palindrome in a string in O(n)

2011-06-22 Thread varun gupta
lgogeeks@googlegroups.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- Warm Regards, Varun Kumar Email Id: varun.gt...@gmail.com Contact: +91

Re: [algogeeks] Re: Amazon - Longest palindrome in a string in O(n)

2011-06-22 Thread varun gupta
t. Ltd >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Algorithm Geeks" group. >> To post to this group, send email to algogeeks@googlegroups.com. >> To unsubscribe from this group, send email to >> algo

Re: [algogeeks] [brain teaser ] Probability Riddle Loaded Revolver 13 june

2011-06-17 Thread varun pahwa
; >>>> >> -- >>>> >> Piyush Sinha >>>> >> IIIT, Allahabad >>>> >> +91-8792136657 >>>> >> +91-7483122727 >>>> >> https://www.facebook.com/profile.php?id=10655377926 >>>> >>

Re: [algogeeks] C OUTPUT HELP

2011-06-12 Thread varun pahwa
send email to >>> >>>>>> > algogeeks+unsubscr...@googlegroups.com. >>> >>>>>> > For more options, visit this group at >>> >>>>>> > http://groups.google.com/group/algogeeks?hl=en. >>> >>>>>

Re: [algogeeks] [brain teaser ] Find next number in series 10 june

2011-06-10 Thread varun pahwa
tp://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 algo

Re: [algogeeks] Re: Million Numbers

2011-06-10 Thread varun pahwa
can anyone explain "Since there are less than 2^32 numbers in the file there is bound to be one number in the array that is less than 2^16." in dumanshu's solution. On Fri, Jun 10, 2011 at 12:39 PM, varun pahwa wrote: > @ankit :please explain by taking an example. > > &

Re: [algogeeks] Re: Million Numbers

2011-06-10 Thread varun pahwa
o post to this group, send email to algogeeks@googlegroups.com. >> > To unsubscribe from 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] MS Interview

2011-06-09 Thread varun pahwa
e Groups > "Algorithm Geeks" group. > To post to this group, send email to algogeeks@googlegroups.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/algo

Re: [algogeeks] Re: finding whether sum of two numbers of array is equal to given number or not ? plz tell why my this is not working for x=10,11,13 values

2011-06-08 Thread varun pahwa
* > * > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to algogeeks@googlegroups.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...@google

Re: [algogeeks] Re: Difference btwn elements in a sorted array a-b=k

2011-06-07 Thread varun pahwa
received this message because you are subscribed to the Google >>> Groups >>> > "Algorithm Geeks" group. >>> > To post to this group, send email to algogeeks@googlegroups.com. >>> > To unsubscribe from this group, send email to >>>

Re: [algogeeks] Re: A Graph Problem

2011-06-05 Thread Varun Nagpal
Maybe this problem is related to pigeon hole problem On Mon, May 30, 2011 at 8:44 AM, Aakash Johari wrote: > No, won't work. :( > > > On Sun, May 29, 2011 at 11:39 PM, Aakash Johari wrote: > >> Can this solution work? >> >> Create adjacency matrix where adj[i][j] representing person i doesnt like

Re: [algogeeks] Puzzle

2011-05-27 Thread varun pahwa
you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to algogeeks@googlegroups.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...@googlegroups.com. > For more options, visit this group at >

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

2011-05-01 Thread Varun Nagpal
Please refrain from sharing such links and engaging in piracy. I kindly request the admin of this forum to delete all such posts and to warn the users on the forum for possible barring in case they are found to use this forum for piracy and malpractices. On Sat, Apr 30, 2011 at 12:09 PM, Charles

Re: [algogeeks] A SIMPLE C++ PROGRAM.

2011-04-29 Thread Varun Nagpal
I think these questions are stupid in the sense that no one would ever use these constructs in their production code unless someone wants to write an obscure obfuscated code in some competition. Many times similar expressions are non-portable. Anyways, to understand this and related concepts, plea

Re: [algogeeks] Clock Algorithm

2011-03-04 Thread Varun Nagpal
I do know about event based simulation in digital circuit simulators.. It would be interesting to know.what exactly algorithms they use On Fri, Mar 4, 2011 at 5:27 PM, Luciano Junior wrote: > Hello, > > I need a clock algorithm to use with in a simulation system that I be > creating. > >

Re: [algogeeks] Parallel algorithms

2011-02-26 Thread Varun Nagpal
Practical - Good mix of theory and practice 1. The Art of Multiprocessor Programming" by Maurice Herlihy & Nir Shavit 2. Introduction to Parallel Computing, Second Edition. By Ananth Grama, Anshul Gupta, George Karypis, Vipin Kumar 3. Herb Sutter's Blog on Concurrency API Specific 4. Oreilly's Int

Re: [algogeeks] Intel Question

2011-01-26 Thread Varun Nagpal
I understand the algorithm, but what is the question? On Wed, Jan 26, 2011 at 10:10 AM, bittu wrote: > In order to make their newest microcontroller as cheap as possible, > the ACME Widget Company designed it with a very simple cache. The > processor is connected to a slow memory system that con

Re: [algogeeks] Sorting algorithm

2010-08-23 Thread varun bhatia
Who said count sort does not uses extra space??? As faras I know, it does need extra space to need thr frequency of each and every element within a given range.. Regards, Varun Bhatia On Mon, Aug 23, 2010 at 4:20 PM, Tanveer Asif wrote: > Count s

Re: [algogeeks] P ! = NP

2010-08-11 Thread Varun Nagpal
Yeah,,,...lets hope the next turing goes to this Indian. Its still being verified. On Thu, Aug 12, 2010 at 12:54 AM, Kishen Das wrote: > > http://www.telegraph.co.uk/science/science-news/7938238/Computer-scientist-Vinay-Deolalikar-claims-to-have-solved-maths-riddle-of-P-vs-NP.html > > Check out

Re: [algogeeks] Copy Constructor and reference

2010-08-06 Thread Varun Nagpal
As far as I know, one simple reason it takes reference to constant class type is to make sure that the object being copied is not modified in copy constructor. a object passed as non-const reference can be modified in copy construcor. If the formal argument of copy constructor is made as "T obj" i

Re: [algogeeks] Google Interview Question

2010-07-14 Thread Varun Nagpal
First attempt: sort them and add the 2 largest numbers 2nd attempt: find 1st and 2nd largest number and add them. On Wed, Jul 14, 2010 at 7:27 AM, Debajyoti Sarma wrote: > An array contains the set of positive integer. Find the largest number > c such that c=a+b where a,b,c are distinct number of

Re: [algogeeks] C++++

2010-07-11 Thread varun bhatia
> For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- Regards, VARUN BHATIA -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algoge..

  1   2   >