<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Google Phone Interview (Part 2)</title>
	<atom:link href="http://haroonsaeed.wordpress.com/2006/07/19/google-phone-interview-part-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://haroonsaeed.wordpress.com/2006/07/19/google-phone-interview-part-2/</link>
	<description>Why am I fighting to live, if I am living to die ?</description>
	<lastBuildDate>Fri, 23 Oct 2009 07:18:39 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: RISTLTMB- Redux &#171; No really- we are still trying to get pregnant.</title>
		<link>http://haroonsaeed.wordpress.com/2006/07/19/google-phone-interview-part-2/#comment-27581</link>
		<dc:creator>RISTLTMB- Redux &#171; No really- we are still trying to get pregnant.</dc:creator>
		<pubDate>Tue, 16 Dec 2008 12:13:22 +0000</pubDate>
		<guid isPermaLink="false">https://haroonsaeed.wordpress.com/2006/07/19/google-phone-interview-part-2/#comment-27581</guid>
		<description>[...] Maybe you will know. [...]</description>
		<content:encoded><![CDATA[<p>[...] Maybe you will know. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Osama</title>
		<link>http://haroonsaeed.wordpress.com/2006/07/19/google-phone-interview-part-2/#comment-27576</link>
		<dc:creator>Osama</dc:creator>
		<pubDate>Mon, 15 Dec 2008 23:15:16 +0000</pubDate>
		<guid isPermaLink="false">https://haroonsaeed.wordpress.com/2006/07/19/google-phone-interview-part-2/#comment-27576</guid>
		<description>I have a phone interview tomorrow 
I applied for an internship.
Do you think that the questions will be hard. i have a very small experience in java. I am scared to death that i will screw up.</description>
		<content:encoded><![CDATA[<p>I have a phone interview tomorrow<br />
I applied for an internship.<br />
Do you think that the questions will be hard. i have a very small experience in java. I am scared to death that i will screw up.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil</title>
		<link>http://haroonsaeed.wordpress.com/2006/07/19/google-phone-interview-part-2/#comment-24922</link>
		<dc:creator>Phil</dc:creator>
		<pubDate>Mon, 28 Jan 2008 16:33:54 +0000</pubDate>
		<guid isPermaLink="false">https://haroonsaeed.wordpress.com/2006/07/19/google-phone-interview-part-2/#comment-24922</guid>
		<description>great post haroon! good for other people preparing for phone screens.

Raghavendra your solution is just the greedy solution. In your example, try 1786. The best solution is {529,529,728}, but your algorithm won&#039;t find that.

Dynamic Programming isn&#039;t just jargon. It&#039;s a technique for solving problems like this. You should read up on it for your next interview :)</description>
		<content:encoded><![CDATA[<p>great post haroon! good for other people preparing for phone screens.</p>
<p>Raghavendra your solution is just the greedy solution. In your example, try 1786. The best solution is {529,529,728}, but your algorithm won&#8217;t find that.</p>
<p>Dynamic Programming isn&#8217;t just jargon. It&#8217;s a technique for solving problems like this. You should read up on it for your next interview <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raghavendra Anahosur</title>
		<link>http://haroonsaeed.wordpress.com/2006/07/19/google-phone-interview-part-2/#comment-24477</link>
		<dc:creator>Raghavendra Anahosur</dc:creator>
		<pubDate>Fri, 28 Dec 2007 18:03:54 +0000</pubDate>
		<guid isPermaLink="false">https://haroonsaeed.wordpress.com/2006/07/19/google-phone-interview-part-2/#comment-24477</guid>
		<description>Regarding the coin denomination problem, I have got a solution which is faster than the dynamic programming one.

Here is my solution:

For each of the denomination index from 1 to max(index),
 calculate how many coins are needed where the coins are from index to n. 
Then calculate for this loop which was the lowest by having a temporary counter.


not sure if the above is clear. here it goes.

suppose the coins are 1,17, 201,529, 728 (just being hypothetical)
The maxchange is 10000000.

Here is how we have to loop thru 728,529,201,17,1

1. Take all of the coins and arrive at the solution
so divide 10000000 by 728. 
The remainder will be divided by 529. The remainder will be divided 201, and so on.
The total number of coins is the sum of all the integer divisions ie (10000000/728) + (remainder / 529) + (remainder / 201) ....

2. Take all the coins from 529 thru 1 (exclude the first one - 728)
find out the total number of coins.
3. Take all the coins from 201 thru 1 (exclude the first one and second one) 
find out the total number of coins
4. and so on, finally we will have only one coin - 1 to consider and number of coins will be 10000000.


Have a minCoins variable with Integer.MAX_VALUE. For each of above iterations above, change value of minCoins to the total number of coins found in each of scenario. 


The main advantage of this solution is, looping is only for the number of denominations not for the amount. In the dynamic programming solution (which is a big jargon) we loop thru the amount.

This is under the assumption that the denominations will always be less in number, the amount can be higher (which is a good assumption to make. I dont think anyone will face a situation where coins are 1, 5,15,21, 56 and amount is like 10 or 15)

I have seen that my solution works much faster for higher amount when compared with dynamic programming concept.</description>
		<content:encoded><![CDATA[<p>Regarding the coin denomination problem, I have got a solution which is faster than the dynamic programming one.</p>
<p>Here is my solution:</p>
<p>For each of the denomination index from 1 to max(index),<br />
 calculate how many coins are needed where the coins are from index to n.<br />
Then calculate for this loop which was the lowest by having a temporary counter.</p>
<p>not sure if the above is clear. here it goes.</p>
<p>suppose the coins are 1,17, 201,529, 728 (just being hypothetical)<br />
The maxchange is 10000000.</p>
<p>Here is how we have to loop thru 728,529,201,17,1</p>
<p>1. Take all of the coins and arrive at the solution<br />
so divide 10000000 by 728.<br />
The remainder will be divided by 529. The remainder will be divided 201, and so on.<br />
The total number of coins is the sum of all the integer divisions ie (10000000/728) + (remainder / 529) + (remainder / 201) &#8230;.</p>
<p>2. Take all the coins from 529 thru 1 (exclude the first one &#8211; 728)<br />
find out the total number of coins.<br />
3. Take all the coins from 201 thru 1 (exclude the first one and second one)<br />
find out the total number of coins<br />
4. and so on, finally we will have only one coin &#8211; 1 to consider and number of coins will be 10000000.</p>
<p>Have a minCoins variable with Integer.MAX_VALUE. For each of above iterations above, change value of minCoins to the total number of coins found in each of scenario. </p>
<p>The main advantage of this solution is, looping is only for the number of denominations not for the amount. In the dynamic programming solution (which is a big jargon) we loop thru the amount.</p>
<p>This is under the assumption that the denominations will always be less in number, the amount can be higher (which is a good assumption to make. I dont think anyone will face a situation where coins are 1, 5,15,21, 56 and amount is like 10 or 15)</p>
<p>I have seen that my solution works much faster for higher amount when compared with dynamic programming concept.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bhavin patel</title>
		<link>http://haroonsaeed.wordpress.com/2006/07/19/google-phone-interview-part-2/#comment-23305</link>
		<dc:creator>bhavin patel</dc:creator>
		<pubDate>Fri, 02 Nov 2007 01:07:02 +0000</pubDate>
		<guid isPermaLink="false">https://haroonsaeed.wordpress.com/2006/07/19/google-phone-interview-part-2/#comment-23305</guid>
		<description>I finished my phone interview with google. They asked me following questions:
1. What is the best successful project you have done in your career. explain
2. How would u define variables in VBA and how would u release the value.
3. How many mcDonalds are there in Australia.
4. Imagine you have 10000 computer network and you are the admin of this network. how would you monitor the performance and how would you rectify the problem.

thanks 
bhavin</description>
		<content:encoded><![CDATA[<p>I finished my phone interview with google. They asked me following questions:<br />
1. What is the best successful project you have done in your career. explain<br />
2. How would u define variables in VBA and how would u release the value.<br />
3. How many mcDonalds are there in Australia.<br />
4. Imagine you have 10000 computer network and you are the admin of this network. how would you monitor the performance and how would you rectify the problem.</p>
<p>thanks<br />
bhavin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bhavin patel</title>
		<link>http://haroonsaeed.wordpress.com/2006/07/19/google-phone-interview-part-2/#comment-22806</link>
		<dc:creator>bhavin patel</dc:creator>
		<pubDate>Mon, 15 Oct 2007 02:23:21 +0000</pubDate>
		<guid isPermaLink="false">https://haroonsaeed.wordpress.com/2006/07/19/google-phone-interview-part-2/#comment-22806</guid>
		<description>i have a phone interview this friday about database administrator. i have no idea how to prepare for the interview.. any idea freinds?</description>
		<content:encoded><![CDATA[<p>i have a phone interview this friday about database administrator. i have no idea how to prepare for the interview.. any idea freinds?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Preguntas curiosas que te pueden hacer durante una entrevista en Google</title>
		<link>http://haroonsaeed.wordpress.com/2006/07/19/google-phone-interview-part-2/#comment-21625</link>
		<dc:creator>Preguntas curiosas que te pueden hacer durante una entrevista en Google</dc:creator>
		<pubDate>Wed, 12 Sep 2007 12:30:53 +0000</pubDate>
		<guid isPermaLink="false">https://haroonsaeed.wordpress.com/2006/07/19/google-phone-interview-part-2/#comment-21625</guid>
		<description>[...] preguntas como las que se comentan en algunos blogs y medios convencionales ([1], [2], [3], [4], [5], [6], [...]</description>
		<content:encoded><![CDATA[<p>[...] preguntas como las que se comentan en algunos blogs y medios convencionales ([1], [2], [3], [4], [5], [6], [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bitacora del Destino &#187; Preguntas curiosas que te pueden hacer durante una entrevista en Google</title>
		<link>http://haroonsaeed.wordpress.com/2006/07/19/google-phone-interview-part-2/#comment-21559</link>
		<dc:creator>Bitacora del Destino &#187; Preguntas curiosas que te pueden hacer durante una entrevista en Google</dc:creator>
		<pubDate>Mon, 10 Sep 2007 14:34:03 +0000</pubDate>
		<guid isPermaLink="false">https://haroonsaeed.wordpress.com/2006/07/19/google-phone-interview-part-2/#comment-21559</guid>
		<description>[...] preguntas como las que se comentan en algunos blogs y medios convencionales ([1], [2], [3], [4], [5], [6], [...]</description>
		<content:encoded><![CDATA[<p>[...] preguntas como las que se comentan en algunos blogs y medios convencionales ([1], [2], [3], [4], [5], [6], [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tanay</title>
		<link>http://haroonsaeed.wordpress.com/2006/07/19/google-phone-interview-part-2/#comment-21557</link>
		<dc:creator>tanay</dc:creator>
		<pubDate>Mon, 10 Sep 2007 14:05:37 +0000</pubDate>
		<guid isPermaLink="false">https://haroonsaeed.wordpress.com/2006/07/19/google-phone-interview-part-2/#comment-21557</guid>
		<description>Hi i have a telefone interview of gppgle next week.....i have applied for a Soft Engg,I have applied for freshers graduate, what typical questions they can ask on the telephone??</description>
		<content:encoded><![CDATA[<p>Hi i have a telefone interview of gppgle next week&#8230;..i have applied for a Soft Engg,I have applied for freshers graduate, what typical questions they can ask on the telephone??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karthik Upadrasta</title>
		<link>http://haroonsaeed.wordpress.com/2006/07/19/google-phone-interview-part-2/#comment-20698</link>
		<dc:creator>Karthik Upadrasta</dc:creator>
		<pubDate>Sat, 18 Aug 2007 14:31:20 +0000</pubDate>
		<guid isPermaLink="false">https://haroonsaeed.wordpress.com/2006/07/19/google-phone-interview-part-2/#comment-20698</guid>
		<description>Thank you</description>
		<content:encoded><![CDATA[<p>Thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Deepak</title>
		<link>http://haroonsaeed.wordpress.com/2006/07/19/google-phone-interview-part-2/#comment-336</link>
		<dc:creator>Deepak</dc:creator>
		<pubDate>Mon, 04 Sep 2006 16:59:10 +0000</pubDate>
		<guid isPermaLink="false">https://haroonsaeed.wordpress.com/2006/07/19/google-phone-interview-part-2/#comment-336</guid>
		<description>Hey kart, 
              what questions were u  asked for ur interviews...I have a Google phone interview coming up next week for a software Engineer position...</description>
		<content:encoded><![CDATA[<p>Hey kart,<br />
              what questions were u  asked for ur interviews&#8230;I have a Google phone interview coming up next week for a software Engineer position&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kart</title>
		<link>http://haroonsaeed.wordpress.com/2006/07/19/google-phone-interview-part-2/#comment-263</link>
		<dc:creator>Kart</dc:creator>
		<pubDate>Fri, 04 Aug 2006 08:19:20 +0000</pubDate>
		<guid isPermaLink="false">https://haroonsaeed.wordpress.com/2006/07/19/google-phone-interview-part-2/#comment-263</guid>
		<description>Very good post.
Even I attended a phone interview and waiting for the second round.  Any updates on ur interview results?</description>
		<content:encoded><![CDATA[<p>Very good post.<br />
Even I attended a phone interview and waiting for the second round.  Any updates on ur interview results?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
