<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-314275781551519087</id><updated>2012-01-06T11:19:29.978-08:00</updated><category term='Maths'/><category term='Flipkart'/><category term='Triangle'/><category term='solution'/><category term='YDN'/><category term='Probability'/><category term='Open-Hack'/><category term='Geometry'/><category term='puzzle'/><category term='elimination'/><category term='prime factors'/><category term='Analytical Geometry'/><category term='Number theory'/><title type='text'>The Inquisitive Mind</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://dinquisitvemind.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/314275781551519087/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://dinquisitvemind.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Vivek Agarwal</name><uri>http://www.blogger.com/profile/00861098179030597605</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>19</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-314275781551519087.post-269489464474537071</id><published>2010-08-18T07:28:00.000-07:00</published><updated>2010-08-18T07:43:02.106-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flipkart'/><title type='text'>Campus knack at Flipkart</title><content type='html'>Its time for on-campus hiring at Flipkart.com. Come Friday, and student at NIT Surathkal, would be (supposedly!) hitting their heads on gritty problems posed by the Flipkart.com at the event of On-Campus Hiring. I recently joined Flipkart, and essentially I am not a part of the recruitment team, but yeah! I am a part of Flipkart.com and I am excited :) I guess everyone would be!! Good luck guys! We would like to see a bunch of you here, and I am sure, you would love working in here.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Well, yeah! I have been and perhaps would be away from some algorithm/analytical problems, working on some real-life problems at Flipkart but it has been interesting, and if I come across something that should be shared with you, yours truly would do the service. &lt;/div&gt;&lt;div&gt;Recently, I have been working on some basic utils at the Flipkart, that makes life easier, faster and efficient for other teams. So if I am not over-estimating, I am a part of the OS team for the instance Flipkart.com (Can you guess which technology I am working on rite now by my statements :P :P).&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Well, yeah I have a news. I have started learning perl, and I have started liking the MacOS terminal. I never knew it was so damn powerful, and I would like to share some of the hacks that I come across to make your life easier on the terminal. And if you are not using it still, well then do get used to it! In industry, the terminal is your only and sufficient help. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;And problem lovers, well dont worry, if I do come vis-a-vis with a new/interesting problem , I wouldn't delay posting it here on the blog.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Till Then,&lt;/div&gt;&lt;div&gt;Enjoy, and Keep computing :)&lt;/div&gt;&lt;div&gt;Vivek&lt;/div&gt;&lt;div&gt;nitkkr.vivek@gmail.com&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/314275781551519087-269489464474537071?l=dinquisitvemind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dinquisitvemind.blogspot.com/feeds/269489464474537071/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dinquisitvemind.blogspot.com/2010/08/campus-knack-at-flipkart.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/314275781551519087/posts/default/269489464474537071'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/314275781551519087/posts/default/269489464474537071'/><link rel='alternate' type='text/html' href='http://dinquisitvemind.blogspot.com/2010/08/campus-knack-at-flipkart.html' title='Campus knack at Flipkart'/><author><name>Vivek Agarwal</name><uri>http://www.blogger.com/profile/00861098179030597605</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-314275781551519087.post-6136593894595983992</id><published>2010-07-26T00:49:00.000-07:00</published><updated>2010-07-26T01:06:10.857-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='YDN'/><category scheme='http://www.blogger.com/atom/ns#' term='Open-Hack'/><title type='text'>Yahoo Hack Day @ Bangalore</title><content type='html'>&lt;div&gt;Hey folks,&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;Last weekend, I was at the Taj Residency. Now before you jump to any conclusions (as my PG room mate did :P ) , it was the Open Hack, Bangalore 2010, organized by Yahoo. It was  series of tech-talks on Yahoo tools on YDN, followed by a 24 hour over-nite, hack development contest. For those who might be confused by the overloaded term "hack", it is in simple terms any application which is build on something, to add a feature or make it better and simpler to be used. &lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;We saw a lot of new applications and ideas coming up, along with a sleepless virtual two day, 1 night stay at Taj Residency's Vijaynagar and Trinity Hall. Yours truly also tried a hand at developing a hack over PayPal API which gives you real time updates in your mail-box over changing Forex rates. Well anyone wants to keep a check over the foreign exchange rates and get a notification over the same in his mail-box can mail me and we can try and work something out.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Over all it was a great experience, with real good info on the Yahoo tools like YAP, YQL and YUI, and I hope to work on some of them soon. Would keep you'll updated though.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ok, for those who are looking for the solution of the last week's puzzle, I am sure it would have been a good experience and although till now we dont have a concrete proof, what we do have is a strong and almost logically convincing solution from Kapil Garg. As Kapil puts in, if Alladin just moves diagonally opposite to the point where Roger is heading, Alladin would end up leaving the circle. People who love calculus may try writing some differential equations which may help them get a concrete proof. Its not hard to visualise that Alladin would follow a out-spreading spiral-kind path from the centre of the circle while Roger would keep revolving through the circumference in one direction. This reminds me of a similar problem from previous IIT-JEE papers with three people at the three ends of equilateral triangle, start moving towards each other continuously, where would they eventually meet.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;For this post, I don't have a puzzle yet but I am sure you would be interested in Yahoo tools if you go on YDN. For a lead, I would ask you to visit YQL and see what all data you can access. It really seemed magical to me that YQL includes almost everything on the earth and web in the YQL and helps you extract info from it. Also, you can think of a hack that you would have made had you been here in Bangalore at the Open Hack. Do share your ideas with us, and who knows you may end up be on the stage with Yahoo Unique Hack prizes (they had almost 7 categories of prizes :) ).&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Meanwhile, i would work on ideas/puzzles and would try keeping you a brain-knacker soon.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Cheers , (Yahoo??)&lt;/div&gt;&lt;div&gt;Vivek&lt;/div&gt;&lt;div&gt;nitkkr.vivek@gmail.com&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/314275781551519087-6136593894595983992?l=dinquisitvemind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dinquisitvemind.blogspot.com/feeds/6136593894595983992/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dinquisitvemind.blogspot.com/2010/07/yahoo-hack-day-bangalore.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/314275781551519087/posts/default/6136593894595983992'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/314275781551519087/posts/default/6136593894595983992'/><link rel='alternate' type='text/html' href='http://dinquisitvemind.blogspot.com/2010/07/yahoo-hack-day-bangalore.html' title='Yahoo Hack Day @ Bangalore'/><author><name>Vivek Agarwal</name><uri>http://www.blogger.com/profile/00861098179030597605</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-314275781551519087.post-8554100326645988250</id><published>2010-07-12T02:46:00.000-07:00</published><updated>2010-07-12T03:02:41.683-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='puzzle'/><category scheme='http://www.blogger.com/atom/ns#' term='Analytical Geometry'/><title type='text'>Str8 from the most happening place in Bangalore</title><content type='html'>Hey amigos,&lt;div&gt;Hope you'll are doing well at your new job/higher study course.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I am writing this mail straight from Koramangala, supposed to be the most happening place of Bangalore. I joined Flipkart.com two weeks back, and it has been an awesome experience since then. Great Co-workers! Friendly environment and working on deeper real life problems. Being a fresher, I can't ask for a much. Its 3:20 pm on my MacBook ( yeah, I work on a MacBook now, thanks to Flipkart ), and as I turn my head around, I see someone struggling with debugging on her MacBook, someone surfing topcoder.com, yet another co-worker relaxing with a glass which supposedly contains coffee and yet another fresher relaxing on a beanbag and pondering over a problem which might have appeared on his MacBook.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Now, I have been away from blogging for a long time just cause I haven't had a good problem to start off with. But while I was talking to an old friend Raunak, I came across a nice mathematics problem which I thought would be a nice one to kick start my blog again.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;So, we have a circle of radius R. Our fast, smart and intelligent dog, Roger is on the circumference at some point. Roger is restrained to move on and only on the circumference of the circle. Our hero, Alladin, is standing on the centre of the circle and wants to get out of the circle as soon as possible. Speed of Roger is 4 times that of speed of Alladin. Now, as Alladin starts moving out intelligent dog Roger calculates his direction and moves towards the point of exit. Alladin cannot make an exit from the point if Roger is standing there. So is it possible for our hero to evade the dog and break the "Ring" to come out? &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Do pour in with queries and answers and suggestions. I have some ideas on the problem, but I am still searching for a particular solution with proof. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Cheers,&lt;/div&gt;&lt;div&gt;Vivek  &lt;/div&gt;&lt;div&gt;nitkkr.vivek@gmail.com&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/314275781551519087-8554100326645988250?l=dinquisitvemind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dinquisitvemind.blogspot.com/feeds/8554100326645988250/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dinquisitvemind.blogspot.com/2010/07/str8-from-most-happening-place-in.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/314275781551519087/posts/default/8554100326645988250'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/314275781551519087/posts/default/8554100326645988250'/><link rel='alternate' type='text/html' href='http://dinquisitvemind.blogspot.com/2010/07/str8-from-most-happening-place-in.html' title='Str8 from the most happening place in Bangalore'/><author><name>Vivek Agarwal</name><uri>http://www.blogger.com/profile/00861098179030597605</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-314275781551519087.post-7737576324559879024</id><published>2010-05-19T10:34:00.001-07:00</published><updated>2010-05-19T10:34:26.223-07:00</updated><title type='text'>Are yoou'll on?</title><content type='html'>Well I guess it has been a week, and I still don't have any entry. Looks like the puzzle stumped people! Ohk, for people who have not noticed, I would like to give you'll a hint:&lt;br /&gt;1. You can use prime number theory. That will help you in a great way.&lt;br /&gt;2. Go by limiting the maximum possible value for the product, and then eliminate some cases. You would be left with very less numbers.&lt;br /&gt;3. And takes the lines of both the students very seriously :P. Those are the only and sufficient hints.&lt;br /&gt;4. If you still can't get it, drop me a mail and I would like to help you get closer to the solution.&lt;br /&gt;&lt;br /&gt;Ohk, well I have a lead on the greatest integer function solution for finding the maximum of the two numbers, given by Sarvana. Although it works only for numbers with same sign , but then it is a great find indeed. And as you will see its simple yet elegant.&lt;br /&gt;&lt;br /&gt;let x = a * [ a / b ] + b * [b / a], that would be equal to&lt;br /&gt;max ( a , b ) *  ( max / min ) .&lt;br /&gt;&lt;br /&gt;now, either of [ a / b ] or [ b / a ] would be zero or both would be 1.&lt;br /&gt;&lt;br /&gt;in any case, lets divide x by  y = [ a / b ] + [ b / a ]  .&lt;br /&gt;&lt;br /&gt;This  cancels out the multiplicant with the max(a,b) you get the required answer.&lt;br /&gt;&lt;br /&gt;Well, I think this is completely see through and doesn't requires explanation. And please drop in our comments and views about the solution. :)&lt;br /&gt;&lt;br /&gt;People, do get your brains working for the number guessing problem. Its tough, but I am sure you'll can crack it once you set on it.&lt;br /&gt;&lt;br /&gt;Cheers,&lt;br /&gt;Vivek&lt;br /&gt;nitkkr.vivek@gmail.com&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/314275781551519087-7737576324559879024?l=dinquisitvemind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dinquisitvemind.blogspot.com/feeds/7737576324559879024/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dinquisitvemind.blogspot.com/2010/05/are-yooull-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/314275781551519087/posts/default/7737576324559879024'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/314275781551519087/posts/default/7737576324559879024'/><link rel='alternate' type='text/html' href='http://dinquisitvemind.blogspot.com/2010/05/are-yooull-on.html' title='Are yoou&apos;ll on?'/><author><name>Vivek Agarwal</name><uri>http://www.blogger.com/profile/00861098179030597605</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-314275781551519087.post-6435753230721787379</id><published>2010-05-13T10:22:00.000-07:00</published><updated>2010-05-13T10:24:33.803-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Number theory'/><category scheme='http://www.blogger.com/atom/ns#' term='puzzle'/><category scheme='http://www.blogger.com/atom/ns#' term='elimination'/><category scheme='http://www.blogger.com/atom/ns#' term='prime factors'/><title type='text'>How did they know the numbers?</title><content type='html'>Well, this has been a happening week. With the most dreaded teacher  setting one of toughest paper for the final year guys, to extending of  date sheet insanely, I would say NIT Kurukshetra final year guys would  have had a tough time digesting all the flash news.&lt;br /&gt;&lt;br /&gt;Anyways, lets  get back to the solution for previous week's puzzle. Well lot of  entries this week. Shashank, Sarvana, Pradeep and Pulkit Sir chipping  with a great way.&lt;br /&gt;&lt;br /&gt;The essence of the solution being :&lt;br /&gt;&lt;br /&gt;max (  a , b ) = (a + b ) /2 - | a - b |/2.&lt;br /&gt;Now, before you say modulus is  not a mathematical operator, I would quote Pulkit Sir's way of seeing  this " absolute value is just the distance from 0 on a number line".  Now, this is perfectly mathematical and its just the way you percieve  it.&lt;br /&gt;&lt;br /&gt;Still, if for hard-core exrepssion lovers, |a| is sqrt (  x**2).&lt;br /&gt;I have a hint that this problem may be solved by another  method of using greatest integer function ( [ ] ). Well, I will keep  trying, and if you get a solution on this thread, do drop me a mail.&lt;br /&gt;&lt;br /&gt;This  week, we have a puzzle contributed by Pulkit Sir again, and i  thoroughly enjoyed solving the puzzle owing to the careful drafting of  the puzzle wordings. I am sure you would enjoy it :)&lt;br /&gt;&lt;br /&gt;&lt;span style="border-collapse: collapse;font-family:arial,sans-serif;font-size:13px;"  &gt;A teacher says: I'm thinking of two natural  numbers greater  than 1.&lt;br /&gt;Try to guess what they are.&lt;br /&gt;The first student knows their  product and  the other one knows their&lt;br /&gt;sum.&lt;br /&gt;First: I do not know  the sum.&lt;br /&gt;Second:  I knew that. The sum is less than 14.&lt;br /&gt;First: I  knew that. However,  now I know the numbers.&lt;br /&gt;Second: And so do I.&lt;br /&gt;What  were the numbers?&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;So drop me a mail as soon as you find  the numbers. &lt;span style="border-collapse: collapse;font-family:arial,sans-serif;font-size:13px;"  &gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Cheers,&lt;br /&gt;&lt;br /&gt;Vivek,&lt;br /&gt;nitkkr.vivek@gmail.com&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/314275781551519087-6435753230721787379?l=dinquisitvemind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dinquisitvemind.blogspot.com/feeds/6435753230721787379/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dinquisitvemind.blogspot.com/2010/05/how-did-they-know-numbers.html#comment-form' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/314275781551519087/posts/default/6435753230721787379'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/314275781551519087/posts/default/6435753230721787379'/><link rel='alternate' type='text/html' href='http://dinquisitvemind.blogspot.com/2010/05/how-did-they-know-numbers.html' title='How did they know the numbers?'/><author><name>Vivek Agarwal</name><uri>http://www.blogger.com/profile/00861098179030597605</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-314275781551519087.post-4751846690015857065</id><published>2010-05-04T08:02:00.000-07:00</published><updated>2010-05-04T08:26:55.437-07:00</updated><title type='text'>Max with Maths</title><content type='html'>Hey folks,&lt;br /&gt;&lt;br /&gt;Well, this has been a super fundoo week. Last working day at college, scribble day and followed by a sleepy lazy preparatory leave. Its time to gear up for the final end semesters (phew!) of my B.Tech degree.&lt;br /&gt;&lt;br /&gt;So, as you may assume I haven't been able to prepare a challenging puzzle for you'll. But then, you'll must be busy with exams too, and so I would let this week pass by with a simple puzzle again. Well before that, lets see the solution to previous week's puzzle. Shashank Srikant from NITK was the first one to chip in with the solution after a small discussion. And we had a really good entry from IIIT Allahabad, by Siddharth Shankar, who takes on the problem with a approach which was new for me as well.&lt;br /&gt;&lt;br /&gt;Well, if you remember the basic formula of area of the triangle .5 * base * height, this problem could not have taken more than 2 minutes of deep thinking. Divide the base of the triangle into 9 equal parts and now join those points with the third vertex. Now height of each of the triangle is same and as base is 1/9th of the original triangle, you end up with each area 1/9th of the original triangle.&lt;br /&gt;&lt;br /&gt;What Siddharth came up with was based on similarity of triangles, which he eventually extends to equal triangles. Lets see the diagram he attached:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_zKzjxlSvBgY/S-A8n74kXBI/AAAAAAAAABM/IUKx6fQsqoQ/s1600/GEO.jpg"&gt;&lt;img style="cursor: pointer; width: 320px; height: 226px;" src="http://2.bp.blogspot.com/_zKzjxlSvBgY/S-A8n74kXBI/AAAAAAAAABM/IUKx6fQsqoQ/s320/GEO.jpg" alt="" id="BLOGGER_PHOTO_ID_5467436604415302674" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;I hope this makes it very clear, although I would like to discuss if anyone has any doubts.&lt;br /&gt;&lt;br /&gt;Ok, now the puzzle for this week. Well, computer programmers have a very easy way to find the maximum or minimum of a number. Just include a math library and you have a direct function. Or else, you can use a if loop or much better, use a conditional operator.&lt;br /&gt;&lt;br /&gt;What about people who dont know programming but only know math. So this week we sought to help those people.  Give me an expression involving only mathematical operators and 'a', and 'b', which finds the maximum of 'a' and 'b'.&lt;br /&gt;Your expression can contain any mathematical operator like !,-,+,/,* etc etc.., besides 'a' and 'b' but no programming constructs.&lt;br /&gt;&lt;br /&gt;Cheers,&lt;br /&gt;Good luck for your exams&lt;br /&gt;Vivek Agarwal&lt;br /&gt;nitkkr.vivek@gmail.com&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/314275781551519087-4751846690015857065?l=dinquisitvemind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dinquisitvemind.blogspot.com/feeds/4751846690015857065/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dinquisitvemind.blogspot.com/2010/05/max-with-maths.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/314275781551519087/posts/default/4751846690015857065'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/314275781551519087/posts/default/4751846690015857065'/><link rel='alternate' type='text/html' href='http://dinquisitvemind.blogspot.com/2010/05/max-with-maths.html' title='Max with Maths'/><author><name>Vivek Agarwal</name><uri>http://www.blogger.com/profile/00861098179030597605</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_zKzjxlSvBgY/S-A8n74kXBI/AAAAAAAAABM/IUKx6fQsqoQ/s72-c/GEO.jpg' height='72' width='72'/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-314275781551519087.post-6000587720162045292</id><published>2010-04-27T21:09:00.000-07:00</published><updated>2010-05-02T00:08:40.043-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Triangle'/><category scheme='http://www.blogger.com/atom/ns#' term='Maths'/><category scheme='http://www.blogger.com/atom/ns#' term='Geometry'/><title type='text'>Equal Division</title><content type='html'>Hey folks,&lt;br /&gt;Since I am in a mess of sessional (last of my college life.. phew! ), I would straight away go to the question for this post. This one was asked to one of my friends in an interview lately. And believe me, its easier than i may appear at the first go.&lt;br /&gt;&lt;br /&gt;How do you divide a triangle (any valid triangle), into 9 equal parts. &lt;br /&gt;Edit: By equal parts, I mean the triangle should have equal areas. Apologies if that small miss from my side messed up your head a bit 2 much.&lt;br /&gt;&lt;br /&gt;Well, I dont have much to say, except that at this point of time, Compiler Design has blown me off! So while I find the chapters, you can ponder over the problem, and yeah mail me the solution as soon as you get a leaf on it. :)&lt;br /&gt;&lt;br /&gt;C ya,&lt;br /&gt;Vivek&lt;br /&gt;nitkkr.vivek@gmail.com&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/314275781551519087-6000587720162045292?l=dinquisitvemind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dinquisitvemind.blogspot.com/feeds/6000587720162045292/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dinquisitvemind.blogspot.com/2010/04/equal-division.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/314275781551519087/posts/default/6000587720162045292'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/314275781551519087/posts/default/6000587720162045292'/><link rel='alternate' type='text/html' href='http://dinquisitvemind.blogspot.com/2010/04/equal-division.html' title='Equal Division'/><author><name>Vivek Agarwal</name><uri>http://www.blogger.com/profile/00861098179030597605</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-314275781551519087.post-5658884530145286050</id><published>2010-04-27T00:44:00.000-07:00</published><updated>2010-04-27T01:02:06.585-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='puzzle'/><category scheme='http://www.blogger.com/atom/ns#' term='solution'/><category scheme='http://www.blogger.com/atom/ns#' term='Probability'/><title type='text'>Only half a chance :(</title><content type='html'>Hey,&lt;br /&gt;Seems like the last week problem sent you'll a bit hay-wire. I got two correct entries from Kapil Garg and Pradeep Sharma, but the logic/proof given by them were not pretty convincing. Pradeep Sharma, our very own Pandit, came really very close and almost cracked the problem.&lt;br /&gt;&lt;br /&gt;Now, lets consider the condition when there are k people in the queue ( k&gt;=2 ). By a little hand calculation you can see that probability that kth person gets kth seat kor k = 2 , is 0.5 . Again, for k = 3 , the possible configurations are (1,2,3) , ( 2,1,3) , (3,1,2) , (3,2,1 ). Here also, we have the probability to be 0.5. You may convince youself for k = 4 ,5 and so on, till you patience permits. &lt;br /&gt;Here we can generalise the answer to be 0.5 for each k &gt;=2 . Now lets see a rigid proof for this. &lt;br /&gt;We use Mathematical Induction:&lt;br /&gt;&lt;br /&gt;Lets say, F ( n ) denotes the probability that nth person sits in nth seat, the total number of people in the queue being n.&lt;br /&gt;Also, lets say F ( n ) = 0.5 for all n &gt;=2 .&lt;br /&gt;Now we prove this for F ( n + 1 ) .&lt;br /&gt;&lt;br /&gt;For the last person to sit on his seat, the first person must sit on any seat except n. Let she sits on seat k.&lt;br /&gt;Now all the passengers from 2 to k-1 sit on their respective sits, with k , k + 1 , k + 2 ... n still remaining, the seats vacant being 1,k+1,k+2,...n .&lt;br /&gt;This is similar to the initial case, just that the kth person is equivalent to drunk girl with his seat number being 1. Hence we have a recursive relation like:&lt;br /&gt;&lt;br /&gt;F ( n +  1 ) = 1/(n+1) + sum for k = 2 to n { 1 / ( n + 1 )  * [F ( n + 1 - ( k -1 ) - 1 )] } .&lt;br /&gt;&lt;br /&gt;The first 1/(n+1) means the girl sits on 1st seat. The other one is summation means the person sits on kth seat and now we remain with N + 1 - 1 - ( k - 1) people to be seated.&lt;br /&gt;&lt;br /&gt;each F ( k ) is 1/2 and hence you can get the answer as 1 / 2.&lt;br /&gt;&lt;br /&gt;While you convince yourself about the above solution, you can mail me for clarifications. I will soon have a new post ( Infact, I am working on it rite now :) ) .&lt;br /&gt;&lt;br /&gt;Cheers,&lt;br /&gt;Vivek&lt;br /&gt;nitkkr.vivek@gmail.com&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/314275781551519087-5658884530145286050?l=dinquisitvemind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dinquisitvemind.blogspot.com/feeds/5658884530145286050/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dinquisitvemind.blogspot.com/2010/04/only-half-chance.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/314275781551519087/posts/default/5658884530145286050'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/314275781551519087/posts/default/5658884530145286050'/><link rel='alternate' type='text/html' href='http://dinquisitvemind.blogspot.com/2010/04/only-half-chance.html' title='Only half a chance :('/><author><name>Vivek Agarwal</name><uri>http://www.blogger.com/profile/00861098179030597605</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-314275781551519087.post-4192827173921887692</id><published>2010-04-21T18:49:00.000-07:00</published><updated>2010-04-21T19:05:20.706-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='puzzle'/><category scheme='http://www.blogger.com/atom/ns#' term='Probability'/><title type='text'>Can I sit in my seat?</title><content type='html'>Hey folks,&lt;br /&gt;Well, I know this post would come as a surprise especially after such a long break, but it's just that I was not able to find time and content to post. Anyways, better late than never! Here I start :) &lt;br /&gt;&lt;br /&gt;Now, as some of you'll might be knowing, I started this blog with an idea to concentrate on problem solving and algorithms. But, as it turns out, puzzle solving is an integral part and it seems like I cannot do without that. Well, so may be I will start intermixing my posts now-onwards, with puzzles and code snippets that I hope should prove to be more helpful.&lt;br /&gt;&lt;br /&gt;Ok, for this week, I have an interesting puzzle. Many of you might have heard it, but for those who haven't, this puzzle guarantees to give you a run for your sleep.&lt;br /&gt;&lt;br /&gt;I am going back to my hometown on vacations, and I am already at the airport. It is a long queue of 100 people waiting to board the plane. We each have a ticket with our seats numbered,  i-th person having the ticket for i-th seat. I am the last person in the line and not to mention, my seat was number 100. But first person in the line was a crazy drunk girl and she will randomly select her seat once she is in the flight. All others of us were normal and would occupy our respective seat if it was un-occupied. Otherwise, we will also select one of the empty seats at random. What is the probability that I will get to sit on seat #100.&lt;br /&gt;&lt;br /&gt;Well, so get set go!&lt;br /&gt;&lt;br /&gt;Happy puzzling,&lt;br /&gt;Vivek&lt;br /&gt;nitkkr.vivek@gmail.com&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/314275781551519087-4192827173921887692?l=dinquisitvemind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dinquisitvemind.blogspot.com/feeds/4192827173921887692/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dinquisitvemind.blogspot.com/2010/04/can-i-sit-in-my-seat.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/314275781551519087/posts/default/4192827173921887692'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/314275781551519087/posts/default/4192827173921887692'/><link rel='alternate' type='text/html' href='http://dinquisitvemind.blogspot.com/2010/04/can-i-sit-in-my-seat.html' title='Can I sit in my seat?'/><author><name>Vivek Agarwal</name><uri>http://www.blogger.com/profile/00861098179030597605</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-314275781551519087.post-6862064050463606199</id><published>2010-03-18T19:03:00.000-07:00</published><updated>2010-03-18T19:14:33.619-07:00</updated><title type='text'>Long Time! But here I come !! :)</title><content type='html'>Hey,&lt;br /&gt;Guys I know, I have been off the record for a long time; But lets begin again, cause its never too late, rite?&lt;br /&gt;&lt;br /&gt;Oh'k, first of all, lets see the last post's puzzle! I didn't get any answers for that one; So I assume even you'll were having a busy time! Okay, that one was Gray Code arithmetic problem, where each subsequent entry has a difference at one bit-position. We need to maintain log(N) bits, and then maintain a Gray Code-sequence which gives us ll the possible value. Maybe you'll would like to peek into the wiki article of &lt;a href="http://en.wikipedia.org/wiki/Gray_code"&gt;Gray Code arithmetic&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Well, this season I had been occupied with many things. From placements to minor project and extending it to some personal programming things, my calendar was always occupied with something or the other. I would like to share about my personal findings regarding Javascripts, CSS and Java language, may be in the next post. &lt;br /&gt;Coz, rite now, its times to get ready for the class of Software Testing. Hey! did I tell you? I am attending classes even!&lt;br /&gt;&lt;br /&gt;Cheers,&lt;br /&gt;Vivek Agarwal&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/314275781551519087-6862064050463606199?l=dinquisitvemind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dinquisitvemind.blogspot.com/feeds/6862064050463606199/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dinquisitvemind.blogspot.com/2010/03/long-time-but-here-i-come.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/314275781551519087/posts/default/6862064050463606199'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/314275781551519087/posts/default/6862064050463606199'/><link rel='alternate' type='text/html' href='http://dinquisitvemind.blogspot.com/2010/03/long-time-but-here-i-come.html' title='Long Time! But here I come !! :)'/><author><name>Vivek Agarwal</name><uri>http://www.blogger.com/profile/00861098179030597605</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-314275781551519087.post-185744008088682965</id><published>2009-12-20T13:48:00.000-08:00</published><updated>2009-12-21T09:09:16.359-08:00</updated><title type='text'>The faster, the better :)</title><content type='html'>Well, Mr Sanders is biting his nails cause Kapil and Shashank got the strategy for the prisoners within a day of posting the puzzle. Great Work guys! &lt;div&gt;Edit: I saw the mail from Pulkit Agrawal very late, but he had explained the solution in a very elegant manner. Kudos to you too sir!&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The key to the solution is keeping one prisoner as the counting man. One of the switches is a counting switch which is changed whenever a prisoner except the counting man finds it in off state, provided he has never toggled the switch before. In all other cases, he toggles the other switch which is dummy switch. On the other hand, the counting man simple switches off the counting switch (in case it is on) and increases his count which is initally zero, otherwise he also plays around with the dummy switch. So as soon as the count reaches 22, he knows that all have been once into the room. To account for the absence of knowledge of initial condition of the switch, he waits till count reaches 23. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;As Aditya puts in, this is the algorithm for Stop and Wait protocol (he remembers to have read it in Computer Networks lectures :-O)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ok, for this week, I don't have much. Have been excited over going home this weekend (that is once in 6 months :-) ). So I would put down a puzzle I remember from 1st year of my college.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;A shopkeeper needs to weigh 125 packets of sugar. The packets are of weights 1kg,2 kg, 3kg, 4kg.... 125kg. Now, he seems to be in a hurry and wants to weigh it in minimum time possible. Of course the only operation consuming time is changing the weights on the balance. Hence, we plan to give him a strategy to weigh all the 125 packets with minimum changes of weights on the balance. Any suggestions for the strategy? &lt;b&gt;He should also use the minimum number of weight-bars possible.&lt;/b&gt; Also, being a professional shopkeeper, he will weigh using the weight bars only,i.e. the already prepared packets cannot be used to weigh the packets prepared later.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Cheers, &lt;/div&gt;&lt;div&gt;Merry Christmas and a very Happy New year!&lt;/div&gt;&lt;div&gt;Vivek&lt;/div&gt;&lt;div&gt;nitkkr.vivek@gmail.com  &lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/314275781551519087-185744008088682965?l=dinquisitvemind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dinquisitvemind.blogspot.com/feeds/185744008088682965/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dinquisitvemind.blogspot.com/2009/12/well-mr-sanders-is-biting-his-nails.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/314275781551519087/posts/default/185744008088682965'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/314275781551519087/posts/default/185744008088682965'/><link rel='alternate' type='text/html' href='http://dinquisitvemind.blogspot.com/2009/12/well-mr-sanders-is-biting-his-nails.html' title='The faster, the better :)'/><author><name>Vivek Agarwal</name><uri>http://www.blogger.com/profile/00861098179030597605</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-314275781551519087.post-4252631527854231717</id><published>2009-12-16T00:47:00.000-08:00</published><updated>2009-12-16T01:27:46.084-08:00</updated><title type='text'>Escaping the Jail</title><content type='html'>Hope you all are enjoying your vacations back at home. Its very cold here at my hostel and as I am writing the post, I am almost freezing :P&lt;br /&gt;&lt;br /&gt;Anyways, Mr Winger is very happy as his wine party was great, Thanks to Kapil and Shashank. The greedy algorithm does the trick for this problem. Sort the activity of guests according to times. Whenever a guest comes in, give him a old used glass if possible, else get a new glass. Whenever a guest goes out, just take the glass from him and add it to the old glass stock. For a C/C++ implementation, do get in touch with me.&lt;br /&gt;&lt;br /&gt;Well, I do wanted to share about palindromes in this post, but I am in a hurry. So lets keep the theory for the next post :)&lt;br /&gt;&lt;br /&gt;Mr Sanders, the in-charge of New Orleans Jail has 23 prisoners in his custody. He offers them to take each of them in a room, one by one. The room has 2 switches. On entering the room, a prisoner has to toggle the condition of any one of the two switches. Mr Sanders randomly selects the prisoners each day, so there is an equal probability of selecting each of the 23 prisoners. On any day, a prisoner can assert that all his co--prisoners along with him have visited the room at least once. However, if his assertion is false all of the prisoners would be fed to alligators. On the other hand, on a right assertion they all would be set free. The prisoners want to know about the room and the switches, but Mr Sanders refuses to give any more information.&lt;br /&gt;&lt;br /&gt;The prisoners can discuss their strategy for tonight. After that, they wont be allowed to talk to each other. Can you help the prisoners decide a strategy which would let them &lt;b&gt;surely&lt;/b&gt; escape the prison? Prisoners also want to know the average time before they get out of the prison. Considering a random selection of prisoners by Mr Sanders, try predicting this value as per your strategy.&lt;br /&gt;&lt;br /&gt;Keep puzzling..  enjoy :)&lt;br /&gt;Take Care&lt;br /&gt;Vivek&lt;br /&gt;nitkkr.vivek@gmail.com&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/314275781551519087-4252631527854231717?l=dinquisitvemind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dinquisitvemind.blogspot.com/feeds/4252631527854231717/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dinquisitvemind.blogspot.com/2009/12/hope-you-all-are-enjoying-your.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/314275781551519087/posts/default/4252631527854231717'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/314275781551519087/posts/default/4252631527854231717'/><link rel='alternate' type='text/html' href='http://dinquisitvemind.blogspot.com/2009/12/hope-you-all-are-enjoying-your.html' title='Escaping the Jail'/><author><name>Vivek Agarwal</name><uri>http://www.blogger.com/profile/00861098179030597605</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-314275781551519087.post-8413037949999723009</id><published>2009-12-12T10:30:00.000-08:00</published><updated>2009-12-12T11:04:44.729-08:00</updated><title type='text'>Arranging a Wine Party</title><content type='html'>I am sure you would have enjoyed solving last post's puzzle. I know it was a bit tricky, more cause it was from Google Code Jam'08 Onsite Practice Round. Still, we have two correct entries sent by the third day from the date of the post. While Shashank Srikant used a C++ implementation to get the answer, following it up with a well-built logic, Kapil Garg went past the puzzle with a simple yet elegant observation.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The last ball that remain is only BLACK. &lt;/div&gt;&lt;div&gt;You might notice, that the number of  white balls in the bag changes only in even numbers. Hence, starting of with a even number of white balls, and doing only transactions that cause changes in even numerals, you can never reach a state of 1 white ball in the bag. Hence, the ball has to be black :)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Well, this week I also came through a good algorithm development question. I still cannot figure out the perfect logic for it. I thought the blog would be great platform to share the problem. And I would be really thankful if someone can send a probable approach.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Mr Winger is having a party. He has a list of guests along with their in-times and out-times from the party. Anytime, a guest enters the party, he is given a glass of wine. The guest returns the glass as soon as he leaves the party. Given the list of guests and their in/out times, can you help Mr X in deciding what is the minimum number of glasses required for his party. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;For Eg, if guest 1 comes at time 2units and leaves at time 3units, while guest 2 comes at time 3units, the glass of guest 1 can be given to guest 2 and hence, only 1 glass is needed. On the other hand, had the guest 2 come at time 2units, we would have needed 2 glasses.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I do have one more puzzle over which I am still hitting my head.  Lets keep that for the next week. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Till then,&lt;/div&gt;&lt;div&gt;Good Luck,&lt;/div&gt;&lt;div&gt;and Keep puzzling&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Regards,&lt;/div&gt;&lt;div&gt;Vivek&lt;/div&gt;&lt;div&gt;nitkkr.vivek@gmail.com&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/314275781551519087-8413037949999723009?l=dinquisitvemind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dinquisitvemind.blogspot.com/feeds/8413037949999723009/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dinquisitvemind.blogspot.com/2009/12/arranging-wine-party.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/314275781551519087/posts/default/8413037949999723009'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/314275781551519087/posts/default/8413037949999723009'/><link rel='alternate' type='text/html' href='http://dinquisitvemind.blogspot.com/2009/12/arranging-wine-party.html' title='Arranging a Wine Party'/><author><name>Vivek Agarwal</name><uri>http://www.blogger.com/profile/00861098179030597605</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-314275781551519087.post-2607553867723900465</id><published>2009-12-08T21:56:00.000-08:00</published><updated>2009-12-09T01:37:11.891-08:00</updated><title type='text'>Help TorNador! Create Magic!</title><content type='html'>Hey folks,&lt;br /&gt;This week is awesome. I am finished with all my exams, and have been enjoying my time. This week has been high for placements at the college and I am expecting a lot more people getting jobs in the coming days.&lt;br /&gt;Ok, coming back to the issue of discussion. Once again, Kapil Garg and Aditya Nema chipped in with their gritty insights and divided the cake equally into two parts. Kapil supplemented his solution with a mathematical proof, while Aditya relied on logic to crack the puzzle.&lt;br /&gt;&lt;br /&gt;Any plane passing through the middle of a cuboid divides it in two equal parts. We can consider the given cake as combinaton of two cuboids, a full cuboid and the hole being a cuboid of negative weight. Now, the plane through the two centres simultaneously give you the solution. If you still want a more convincing proof, try proving it for a 2-D geometry and you can extend it to 3-D. And yeah, I am always there if you still need some more details on the solution.&lt;br /&gt;&lt;br /&gt;Ok, this week I had been going through Rabin-Karp string algorithm. A single pass through the string can let you manipulate the string well. It uses application of hashing technique. Hence, O(N) being the runtime, the algorithm lets you perform fast, infact very fast operations. The only drawbacks being that it cannot be applied to very long string. I would suggest the computer programmers to go through it once for sure. &lt;a href="http://www-igm.univ-mlv.fr/%7Elecroq/string/node5.html#SECTION0050"&gt;This  &lt;/a&gt;section has it explained well. Try applying it to test whether a string is palindrome or not.&lt;br /&gt;&lt;br /&gt;Ok, well for others, I do have a puzzle.&lt;br /&gt;&lt;br /&gt;TorNador is an old and famous magician. Due to his age, he keeps forgetting the tricks for magics. He has a bag with 10 white balls, and 8 black balls. He calls one person from the audience and asks him to perform the following operations successively.&lt;br /&gt;1. Take two balls out from the bag.&lt;br /&gt;2. If the balls are of same colour, put a black ball inside the bag, else put a white ball back.&lt;br /&gt;&lt;br /&gt;You can assume that there is an infinite supply of both white and black balls and hence the person can always put a ball back in the bag.&lt;br /&gt;&lt;br /&gt;When one ball is left in the bag, the person asks Tornador the colour of the ball. Help TorNador give the answer. If you think the answer is not definite, give the expected value of the last ball being white.&lt;br /&gt;&lt;br /&gt;Would be back in the weekend...&lt;br /&gt;Till then help TorNador and keep puzzling :)&lt;br /&gt;Vivek&lt;br /&gt;nitkkr.vivek@gmail.com&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/314275781551519087-2607553867723900465?l=dinquisitvemind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dinquisitvemind.blogspot.com/feeds/2607553867723900465/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dinquisitvemind.blogspot.com/2009/12/hey-folks-this-week-is-awesome.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/314275781551519087/posts/default/2607553867723900465'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/314275781551519087/posts/default/2607553867723900465'/><link rel='alternate' type='text/html' href='http://dinquisitvemind.blogspot.com/2009/12/hey-folks-this-week-is-awesome.html' title='Help TorNador! Create Magic!'/><author><name>Vivek Agarwal</name><uri>http://www.blogger.com/profile/00861098179030597605</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-314275781551519087.post-6738857013967613178</id><published>2009-12-04T06:13:00.000-08:00</published><updated>2009-12-04T07:28:19.905-08:00</updated><title type='text'>I want an equal share!!!</title><content type='html'>Hello frnds,&lt;br /&gt;Long time since last mail... hehe, blame it all on the schedule of practicals and the last minute preparations of the minor project.&lt;br /&gt;Lets start off with the solution to previous post puzzle. Shankey would be thankful to Aditya Nema, who provided the solution to the fruit dillema.&lt;br /&gt;&lt;br /&gt;80 oranges, 19 apples and 1 banana is what Shankey would be buying to take back 100 fruits, for exactly Rs 100.&lt;br /&gt;&lt;br /&gt;Well, today's puzzle would be more on a geometrical analysis. I had found this puzzle in a Intel's interview paper.&lt;br /&gt;&lt;br /&gt;Chicku and Chicki are fighting on a cake prepared by their mother.  The delicious choclate cake, is a rectangluar cuboid. Due to the fight, they have already cutoff a cuboidal hole from the cake. So, the cake, now is basically  a cuboid with a cuboidal hole. Not wanting to mess around anymore, they want to divide the cake equally amongst them. By a single straight cut of a knife through the cake, help them divide the cake equally. Give the solution suitable for the hole of any size and position.&lt;br /&gt;&lt;br /&gt;Meanwhile, this week I would be busy with some string algorithms and hence you can expect the next post to contain some basic string manipulation theory and some interesting puzzles on that :)&lt;br /&gt;&lt;br /&gt;Till then,&lt;br /&gt;Keep Smiling and puzzling :) :)&lt;br /&gt;Vivek&lt;br /&gt;nitkkr.vivek@gmail.com&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/314275781551519087-6738857013967613178?l=dinquisitvemind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dinquisitvemind.blogspot.com/feeds/6738857013967613178/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dinquisitvemind.blogspot.com/2009/12/i-want-equal-share.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/314275781551519087/posts/default/6738857013967613178'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/314275781551519087/posts/default/6738857013967613178'/><link rel='alternate' type='text/html' href='http://dinquisitvemind.blogspot.com/2009/12/i-want-equal-share.html' title='I want an equal share!!!'/><author><name>Vivek Agarwal</name><uri>http://www.blogger.com/profile/00861098179030597605</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-314275781551519087.post-7689268712456461932</id><published>2009-11-25T07:44:00.000-08:00</published><updated>2009-11-27T12:19:17.200-08:00</updated><title type='text'>The Fruit dillema</title><content type='html'>Ok this has been a long gap, almost of a week. Well, the week has been quite interesting for me. Couple of doubts over Kapil's solution, Lots of tension about the end-sem (it still carries!! :P ). This week I have a couple of interesting things. But before that, lets say "Great Work!" to Aditya Nema for solving all the three problems from last week's post.&lt;br /&gt;&lt;br /&gt;Before going, as always let me give you the solutions:&lt;br /&gt;&lt;br /&gt;1. a&amp;amp;!(a-1) gives you the last set bit (Phew! wasnt that simple yet elegant).&lt;br /&gt;&lt;br /&gt;2. 59 is the number which on divided by 2,3,4,5,6 gives 1,2,3,4,5 as remainders repectively.&lt;br /&gt;&lt;br /&gt;3. the Algorithm:&lt;br /&gt;    int count_bits(int A)&lt;br /&gt;    {&lt;br /&gt;             int ret=0;&lt;br /&gt;  while(A)&lt;br /&gt;             {&lt;br /&gt;                  ret++;&lt;br /&gt;                 A=A&amp;amp;(A-1);&lt;br /&gt;             }&lt;br /&gt;             return ret;&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;Ok! Lets see the doubts over Kapil's solution, as pointed out by Jasveer Singh Maan :).&lt;br /&gt;Please refer the diagram in the previous post.&lt;br /&gt;AEG and FEG are equilateral triangles. So each angle of these must be 60 degrees. Hence AEF= AEG+FEG=120 degree.&lt;br /&gt;Now, AEFCB is a regular pentagon. So each internal angle should be 102 degrees (I think it is a requirement of regular polygon!). So there is a contradiction as AEF is internal angle of pentagon. I still havent drawn it with proper geometrical instruments but the argument seems to be very strong. So at the moment, Kapil's solution is not perfectly valid, the doubt being, is such a figure practically possible, and does a C actually exists?&lt;br /&gt;&lt;br /&gt;Edit:&lt;br /&gt;Well, with doubts I never meant that Kapil's solution is wrong, and I would like to apologise if any wrong meanings were conveyed. Anyways, Kapil's solution seems to be, infact are correct. There can be always a polygon with equal sides and un-equal internal angles. Jasveer perhaps mis-interpreted to call that as a "regular polygon", which essentially requires all the sides and internal angles to be equal (108 degrees).&lt;br /&gt;Obviously, the best way to confirm is to draw using a compass, and cause of not finding one (you know how we keep things in hostel! :P, I am sorry about that as well ), I could not draw the diagram but yeah, it is correct cause an appproximation does confirm its validity.&lt;br /&gt;&lt;br /&gt;Well, Mr. Kapil, we are not taking any credit from your side. Its just that someone had a small doubt and we couldn't comprehend it properly. Full points to your solution as before :). Cheer up, dude!&lt;br /&gt;&lt;br /&gt;Ok so now this week's post.&lt;br /&gt;And yes! I will try keeping this short, since last post had reviews of being a bit longer. I dont have much to share today except for a couple of sites that I came across.&lt;br /&gt;&lt;br /&gt;If you have an appetite for maths puzzles, a bit of interest in simple programming, and a great insight, you cannot stop missing the site http://www.projecteuler.net, once you have seen it. 264 problems, each one requires a simple yet smart approach. Do try it and comment whether you liked it.&lt;br /&gt;&lt;br /&gt;Again, if you love programming and want to get hand on some good IARCS problems, try this http://opc.iarcs.org.in&lt;br /&gt;You have it graded in IOI style and you also get partial points. This helps in realising the efficiency of your solutions.&lt;br /&gt;&lt;br /&gt;At last, a simple puzzle.&lt;br /&gt;Shankey, our friend, wants to buy fruits. He has Rs 100 in his pocket and being a lover of numbers, he wants to buy exaclty 100 fruits. The market has 3 kinds of fruits available at different rates. An apple sould cost Shanket Rs 5, a banana would be for Re 1 and the cheapest of all oranges cost 5p each (Ohk that is very cheap, I know!). Help Shankey find the right combination of fruits so that he spends all the money in his pocket and end up buying 100 fruits. Remember, he loves variety and would like to take at least 1 kind of each fruit back with him.&lt;br /&gt;&lt;br /&gt;I would appreciate if you can mail me the method by which you arrived at the solution.&lt;br /&gt;Cheers,&lt;br /&gt;Vivek Agarwal&lt;br /&gt;nitkkr.vivek@gmail.com&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/314275781551519087-7689268712456461932?l=dinquisitvemind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dinquisitvemind.blogspot.com/feeds/7689268712456461932/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dinquisitvemind.blogspot.com/2009/11/fruit-dillema.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/314275781551519087/posts/default/7689268712456461932'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/314275781551519087/posts/default/7689268712456461932'/><link rel='alternate' type='text/html' href='http://dinquisitvemind.blogspot.com/2009/11/fruit-dillema.html' title='The Fruit dillema'/><author><name>Vivek Agarwal</name><uri>http://www.blogger.com/profile/00861098179030597605</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-314275781551519087.post-42402660659257129</id><published>2009-11-15T04:33:00.000-08:00</published><updated>2009-11-15T05:22:00.828-08:00</updated><title type='text'>The Bits &amp; Bi(y)tes</title><content type='html'>&lt;div&gt;Well, before I start off with the actual content, lets thank and congratulate Mr Kapil Garg for his ingenious solution to the seven points problem. His was the first reply that I received. So I can safely assume that its only him (of course, within the domain of people who saw the problem) who has solved the problem.&lt;br /&gt;&lt;br /&gt;Well, just a small explanation on the solution. 4 equilateral triangles ABD, AEG, CDB, FEG with unit sides,  are drawn such that FC is at distance 1. Attached is the solution sent by Kapil:&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center; "&gt;&lt;a href="http://4.bp.blogspot.com/_zKzjxlSvBgY/Sv_3YwAX5tI/AAAAAAAAABA/Ph7LBZ5xPnY/s1600-h/solution.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em; "&gt;&lt;img src="http://4.bp.blogspot.com/_zKzjxlSvBgY/Sv_3YwAX5tI/AAAAAAAAABA/Ph7LBZ5xPnY/s320/solution.jpg" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Okk, so lets come back to the issue of bits and bytes.&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;Well smart devices, smart talks and of course smart languages. I am talking about computer, the smartest device available and its language, of course binary 0's and 1's. Basically, you can show any number in a binary format. For eg. 7 is represented by 111, and 8 by 1000, 10 is 1010 and ofcourse 15 is 1111. Now, why am I telling you this simple thing. Well, just to notice that 7 requires 3 bits and 8 requires 4 bits. With 4 bits we can represent any number till 15, where again 16 will require me to put an extra bit.&lt;br /&gt;&lt;br /&gt;This just implies n bits can help me represent any number till 2^n -1.&lt;br /&gt;&lt;br /&gt;Now whenever you see a question (People who are belling the CAT this year, please notice!!!) like, " I have 127 coins of Re 1. How many minimum bags I need to make (and of what denominations) so that I can share any amount till Rs 127.&lt;br /&gt;&lt;br /&gt;The answer is: just find binary representation of 127 which I guess is 1111111 and that is 7 bits. So, we need to make 7 bags of 1,2,4,8,16,32,64 coins each and we can satisfy any demand till Rs 127. Infact, any demand from 64 to 127 will require 7 bags at least since the binary representation of 64 requires 7 bits.&lt;br /&gt;&lt;br /&gt;This makes me go back to the question in my class 10 Physics Lab. Why are the denominations in a weight box of a mass-balance in ratio 1:2:2:5? The answer we were told was that this ratio can satisfy all weight combinations from 1 to 10. If I could go back, I would have said, "mam it can also be in 1,2,4,8 and with my combination you can satisfy all weights till 1 to 15".&lt;br /&gt;&lt;br /&gt;Anyways, so simple operations on bits, We all know about them. And, OR, XOR, NOT. I dont need to tell all those.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;Ok, a very interesting question, " Tell me how can you find the last set bit in a binary representation of a number. What I mean is for 2 (10) answer would be 2nd bit, for 5(101) answer would be first bit and for 10(1010) answer would be second bit. Give me an expression that helps me single out only the last set bit of a number n." Hint : Use &amp;amp; and - (this is not logical ~ operation.)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Well, a very important manipulation done with bits is set and subset selection. Say I have n elements (n&amp;lt;32) and I want to generate all possible subsets of these 32 elements. From basic perm and comb theory, the answer is 2^n subsets. Generating all these sets with hands is easy. With computers, it easier! Just loop over i from 0 to 2^n-1 and see the pattern of set bits in i. A jth set bit in i means that jth element is selected. Hence for i=0, no set bit, means no element is selected. And for i=3 (11), both 1st and 2nd elements are selected. So, say I want to print all the possible subsets of elements in an array. So the pseudo code would be&lt;br /&gt;&lt;br /&gt;A[1...n]&lt;br /&gt;for i=0 to 1&amp;lt;&amp;lt; n ....... set bits of i represents selected elements in the current subset&lt;br /&gt;for j=0 to n.................... j is to iterate over all elements&lt;br /&gt;if( i &amp;amp; j) ............ (checking if jth element is selected)&lt;br /&gt;{&lt;br /&gt;print A[j];&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;I know it may be difficult to see whats happening. Just iterate it for n=3,4,5 and you will understand the logic behind it. Hence, any integer can be used to depict the subset selection. Hence all set operations are just trivial. Two sub-sets represents by i &amp;amp; j are:&lt;br /&gt;&lt;br /&gt;1. mutually exclusive if i &amp;amp; j = 0&lt;br /&gt;2. are same if i = j&lt;br /&gt;3. exhaustive if i | j = 2^n - 1&lt;br /&gt;&lt;br /&gt;Just a bit more fascinating is XOR operation. If B is a subset of A, and you want to select elements of A not present in B, the simple operation is A XOR B. For any two sets A and B, the operation A-B is (A XOR B ) &amp;amp; A. If you dont get it, please try seeing with small numbers or else you can always email me at my id.&lt;br /&gt;&lt;br /&gt;Well, I hope you remember the puzzle above (written in brown). I will add one more very simple puzzle and a algorithm question to keep you busy while I deal with my end-semester exams.&lt;br /&gt;&lt;br /&gt;Puzzle: Find a number N which when divided by 2,3,4,5,6 leaves remainder 1,2,3,4,5.&lt;br /&gt;&lt;br /&gt;Algorithm puzzle: Give me a good (non-bruteforce please!) algorithm to find the number of set bits in binary representation of a number n.&lt;br /&gt;&lt;br /&gt;Happy bit-ing :).&lt;br /&gt;Contact: nitkkr.vivek@gmail.com&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/314275781551519087-42402660659257129?l=dinquisitvemind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/314275781551519087/posts/default/42402660659257129'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/314275781551519087/posts/default/42402660659257129'/><link rel='alternate' type='text/html' href='http://dinquisitvemind.blogspot.com/2009/11/bits-biytes_15.html' title='The Bits &amp; Bi(y)tes'/><author><name>Vivek Agarwal</name><uri>http://www.blogger.com/profile/00861098179030597605</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_zKzjxlSvBgY/Sv_3YwAX5tI/AAAAAAAAABA/Ph7LBZ5xPnY/s72-c/solution.jpg' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-314275781551519087.post-6993742372612609382</id><published>2009-11-12T01:44:00.000-08:00</published><updated>2009-11-12T01:54:04.278-08:00</updated><title type='text'>The seven point puzzle</title><content type='html'>So lets start off....&lt;br /&gt;&lt;br /&gt;Well this puzzle was given to me by one of my friend and till date, I have no solution for it. Oh I should have told the problem instead of chatting :P&lt;br /&gt;&lt;br /&gt;"You are given a 2-D paper and a pencil. Mark seven points on the paper such that if I select any three of them, at least two of them are at a distance of one from each other. "&lt;br /&gt;&lt;br /&gt;I along with my frnds tried it but to no avail. Hopefully, I will get a solution here.. and please dont forget to mail me the same  at nitkkr.vivek@gmail.com&lt;br /&gt;&lt;br /&gt;I would like to warn you that making a regular hexagon abcdef (side equal 1 unit) with g as its centre will not work cause i can select the points a,c,e of which no combination of two points at unity distance is possible.&lt;br /&gt;&lt;br /&gt;Next post will probably be on bit manipulation... and its not only for computer guys. You just need to know a bit of binary to get to this beautiful world of bit manipulation. And its damn interesting :)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Till then..&lt;br /&gt;Happy puzzling,&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/314275781551519087-6993742372612609382?l=dinquisitvemind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dinquisitvemind.blogspot.com/feeds/6993742372612609382/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dinquisitvemind.blogspot.com/2009/11/seven-point-puzzle.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/314275781551519087/posts/default/6993742372612609382'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/314275781551519087/posts/default/6993742372612609382'/><link rel='alternate' type='text/html' href='http://dinquisitvemind.blogspot.com/2009/11/seven-point-puzzle.html' title='The seven point puzzle'/><author><name>Vivek Agarwal</name><uri>http://www.blogger.com/profile/00861098179030597605</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-314275781551519087.post-8114492958991544239</id><published>2009-11-12T01:12:00.000-08:00</published><updated>2009-11-12T01:21:34.568-08:00</updated><title type='text'>The First Post: Purpose</title><content type='html'>Hi folks,&lt;br /&gt;I am Vivek, a final year student of NIT Kurukshetra in the discipline of Computer Engnieering. Well, what instigated me to start this blog was to share my knowledge (though very little :P)and experiments. Well, with that word experiments, I know many of you would have been getting a feeling of this being a blog for geeks. Well its not!. At least I dont think it to be so. &lt;br /&gt;&lt;br /&gt;Here, in my free time(we get lots of those at my college), I would like to share puzzles, some maths problems and of course programming stuff (ok! after all I am in discipline of Computer Engineering).....&lt;br /&gt;&lt;br /&gt;Well thats it!&lt;br /&gt;This is a beginner's blog, so If something goes wrong, I do hope youll will be there to comment :)&lt;br /&gt;And I assure you the best from my side...&lt;br /&gt;&lt;br /&gt;tk care&lt;br /&gt;Vivek @ Aricent&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/314275781551519087-8114492958991544239?l=dinquisitvemind.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dinquisitvemind.blogspot.com/feeds/8114492958991544239/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dinquisitvemind.blogspot.com/2009/11/first-post-purpose.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/314275781551519087/posts/default/8114492958991544239'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/314275781551519087/posts/default/8114492958991544239'/><link rel='alternate' type='text/html' href='http://dinquisitvemind.blogspot.com/2009/11/first-post-purpose.html' title='The First Post: Purpose'/><author><name>Vivek Agarwal</name><uri>http://www.blogger.com/profile/00861098179030597605</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
