<?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-309066060964352175</id><updated>2011-11-28T04:45:14.331+05:30</updated><category term='zindagi'/><category term='Bollywood'/><category term='Euler'/><category term='Engg'/><title type='text'>Life -- Code -- Experience</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://mtktechiecode.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/309066060964352175/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://mtktechiecode.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Md Tareque Khan</name><uri>http://www.blogger.com/profile/11255767652389656742</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/_GYtp331qfhs/TCNTyLhqgTI/AAAAAAAAAEM/AHoC6NejI9I/S220/14.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>16</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-309066060964352175.post-2448047791872109088</id><published>2011-10-25T21:42:00.002+05:30</published><updated>2011-10-31T23:37:39.299+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Euler'/><title type='text'>Project Euler #315</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span class="Apple-style-span" style="color: red;"&gt;Problem&lt;/span&gt;: Digital Root Clocks&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #6aa84f;"&gt;Solution&lt;/span&gt;: [Spoiler Ahead]&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;One of the easy problems and one of the easy solutions.&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;It's just straight forward,&lt;br /&gt;&lt;br /&gt;&lt;blockquote class="tr_bq"&gt;&lt;span class="Apple-style-span" style="background-color: #eeeeee;"&gt;the number of LED on-off by SAM's clock -&amp;nbsp;the number of LED on-off by MAX's clock&lt;/span&gt;&lt;/blockquote&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Globals I used, a noOfLEDsForDigit[] array holding the number of led's required to glow a particular digit.&lt;br /&gt;A digits[] array holding hex values for the number that represent the ON-OFF LED. e.g.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-EYymbI2Ci-g/Tq7juBeXo6I/AAAAAAAAAWo/VrJwi7WG2ps/s1600/Seven_segment_display-animated.gif" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" height="200" src="http://1.bp.blogspot.com/-EYymbI2Ci-g/Tq7juBeXo6I/AAAAAAAAAWo/VrJwi7WG2ps/s200/Seven_segment_display-animated.gif" width="159" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;b&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;bit&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;LED&lt;/b&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;------------&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt; 0&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;top&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt; 1&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;middle&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt; 2&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;bottom&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt; 3&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;top-left&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt; 4&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;top-right&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt; 5&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;bottom-left&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt; 6&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;bottom-right&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Digit &amp;nbsp; Binary representation &amp;nbsp; &amp;nbsp;Hex_value&lt;/b&gt;&lt;br /&gt;-------------------------------------------------------&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;0&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;0111 1101 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0x7d&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;1&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;0101 0000&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0x50&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;2&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;0011 0111&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0x37&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;3&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;0101 0111&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0x57e&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;4&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;0101 1010&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0x5a&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;5&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;0100 1111&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0x4f&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;6&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;0110 1111&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0x6f&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;7&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;0101 1001&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0x59&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;8&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;0111 1111&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0x7f&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;9&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;0101 1111&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0x5f&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Now the calculations become very easy,&lt;br /&gt;&lt;br /&gt;&lt;b&gt;For SAM&lt;/b&gt;: it's just the twice the sum of number of LED's in the digit(or no. of 1's in it's binary representation according to above user-defined digits)&lt;br /&gt;&lt;br /&gt;&lt;b&gt;For MAX&lt;/b&gt;: we need to get the common LED that will not be turn off when number changes from 'a' to 'b', this is given by XORing both value i.e.(a^b), plus the LED's that need to be turned on to complete the number 'b'.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;There it is , therein lies the rub !&lt;br /&gt;&lt;br /&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/309066060964352175-2448047791872109088?l=mtktechiecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/309066060964352175/posts/default/2448047791872109088'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/309066060964352175/posts/default/2448047791872109088'/><link rel='alternate' type='text/html' href='http://mtktechiecode.blogspot.com/2011/10/project-euler-315.html' title='Project Euler #315'/><author><name>Md Tareque Khan</name><uri>http://www.blogger.com/profile/11255767652389656742</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/_GYtp331qfhs/TCNTyLhqgTI/AAAAAAAAAEM/AHoC6NejI9I/S220/14.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-EYymbI2Ci-g/Tq7juBeXo6I/AAAAAAAAAWo/VrJwi7WG2ps/s72-c/Seven_segment_display-animated.gif' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-309066060964352175.post-1295823155023626705</id><published>2011-05-28T00:46:00.017+05:30</published><updated>2011-10-31T23:46:41.621+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Engg'/><title type='text'>8 on 8</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div style="text-align: justify;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; So finally, everything is completed and and &lt;b&gt;&lt;i&gt;perfect 8 on 8&lt;/i&gt;&lt;/b&gt;. I am now a Bachelor of Technology, what I would be liked to be called. After entering the &lt;a href="http://www.coep.org.in/"&gt;CoEP&lt;/a&gt; and seeing all the brilliant students around I had thought that probably getting out of CoEP is more difficult than getting in.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-I4RYIepEKNA/Tq7l7olCz1I/AAAAAAAAAW4/-c0VY4ES8_8/s1600/Logo.JPG" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" height="200" src="http://4.bp.blogspot.com/-I4RYIepEKNA/Tq7l7olCz1I/AAAAAAAAAW4/-c0VY4ES8_8/s200/Logo.JPG" width="167" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;First Year:&lt;/b&gt; began with all the intros given to seniors(which I owe a &amp;nbsp;lot as it made me think that I didn't had anything special in me, I need to make myself into some or the other thing). The lectures went repeating some physics and chemistry part.Technically was introduced to the C-Programming which I even didn't know that this is going to be with my entire life henceforth. Even by the end of the first year, I didn't get to know the concept of a programming language, but I sored quite well in it(thanks to my friends, and this is the part where your friends help you a lot :P). As usual not to mention, when it comes to engineering Mathematics never leaves your collar bone. Bunked some lectures for the&amp;nbsp;Regatta.&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;Second Year:&lt;/b&gt; gave exposure to the computer graphics and latest technologies.Also one whole semester was wasted (ohhhhh no I'm sorry&amp;nbsp;&lt;i&gt;*vested*&lt;/i&gt;) in understanding stack and queues alone.Trees and graphs still remaining a nightmare to me and many others. Database Systems didn't move a page ahead even after 2 months of&amp;nbsp;continuous&amp;nbsp;efforts of the professor. Tried to make a manual robot for the dogfight and a&amp;nbsp;micro-mouse&amp;nbsp;in the College's Annual&amp;nbsp;Tech-fest&amp;nbsp;&lt;a href="http://mind-spark.org/"&gt;MindSpark&lt;/a&gt;&amp;nbsp;with very few achievements which would be better to called nil.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;Third Year:&lt;/b&gt; was busy amongst all the four years. This was the time when I understood what IT is? and what I'll be doing for the rest of my life. Tried to learn new things and got hands on few platforms but was still a naive in all those areas. Graduate Aptitude Test in Engineering didn't go quiet well giving me a rank of above 7000.&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-dcyTWHF6IFU/Tq7ln25gpgI/AAAAAAAAAWw/s6w55U_4kKw/s1600/mainbldg11.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="200" src="http://3.bp.blogspot.com/-dcyTWHF6IFU/Tq7ln25gpgI/AAAAAAAAAWw/s6w55U_4kKw/s200/mainbldg11.jpg" width="143" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;Final Year:&lt;/b&gt; the main ground and the most important time of my life. This year taught me a lot of good things as well as bad things. I got to learn many things from my experience which eventually improved my point of view towards life and the ways to deal with the problems. As a human I was a changed being by the end of the year.&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/309066060964352175-1295823155023626705?l=mtktechiecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/309066060964352175/posts/default/1295823155023626705'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/309066060964352175/posts/default/1295823155023626705'/><link rel='alternate' type='text/html' href='http://mtktechiecode.blogspot.com/2011/05/8-on-8.html' title='8 on 8'/><author><name>Md Tareque Khan</name><uri>http://www.blogger.com/profile/11255767652389656742</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/_GYtp331qfhs/TCNTyLhqgTI/AAAAAAAAAEM/AHoC6NejI9I/S220/14.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-I4RYIepEKNA/Tq7l7olCz1I/AAAAAAAAAW4/-c0VY4ES8_8/s72-c/Logo.JPG' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-309066060964352175.post-4487705108995640157</id><published>2011-05-02T02:36:00.078+05:30</published><updated>2011-11-22T08:43:36.163+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='zindagi'/><title type='text'>Aarz hai</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;i&gt; &lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;a href="http://science.nasa.gov/media/medialibrary/2007/10/17/17oct_orphanstars_resources/a3627_420.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" height="181" src="http://science.nasa.gov/media/medialibrary/2007/10/17/17oct_orphanstars_resources/a3627_420.jpg" width="200" /&gt;&lt;/a&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt; &lt;/i&gt;&lt;br /&gt;&lt;div style="background-color: white; color: black; text-align: center;"&gt;&lt;i&gt;Taaro ko ginne wale hum na the,&lt;/i&gt;&lt;br /&gt;&lt;i&gt;akele gungunane wale hum na the,&lt;/i&gt;&lt;br /&gt;&lt;i&gt;Ye to dosti aadat laga di,&lt;/i&gt;&lt;br /&gt;&lt;i&gt;varna kisi ko itna yaad karne wale hum na the.&lt;/i&gt;&lt;/div&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt; &lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;a href="http://1.bp.blogspot.com/_uL91CpVwz78/S3RIvnaAgyI/AAAAAAAAAGo/5p1A7jl911U/s400/020-photo-crashing-ocean-waves.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" height="150" src="http://1.bp.blogspot.com/_uL91CpVwz78/S3RIvnaAgyI/AAAAAAAAAGo/5p1A7jl911U/s200/020-photo-crashing-ocean-waves.png" width="200" /&gt;&lt;/a&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt; &lt;/i&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;i&gt;Iss kadar na har baat yaaron se pucho,&lt;/i&gt;&lt;br /&gt;&lt;i&gt;Jo baat raaz ki ho isharo se pucho,&lt;/i&gt;&lt;br /&gt;&lt;i&gt;Lahero se khelna to samandar ka shauk hai,&lt;/i&gt;&lt;br /&gt;&lt;i&gt;lagti hai chot kaise kinaron se pucho.&lt;/i&gt;&lt;/div&gt;&lt;i&gt; &lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;a href="http://www.trulygraphics.com/wp-content/uploads/2010/09/sad-butterfly.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" height="150" src="http://www.trulygraphics.com/wp-content/uploads/2010/09/sad-butterfly.jpg" width="200" /&gt;&lt;/a&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt; &lt;/i&gt;&lt;br /&gt;&lt;div style="background-color: white; color: black; text-align: center;"&gt;&lt;i&gt;Bheg jati hai palkein tanhayi me,&lt;/i&gt;&lt;br /&gt;&lt;i&gt;darte hai koi janna le,&lt;/i&gt;&lt;br /&gt;&lt;i&gt;Pasand karte hai tez barsaat mein chlana,&lt;/i&gt;&lt;br /&gt;&lt;i&gt;kahi rote hue ko koi pehchaan na le.&lt;/i&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;i&gt;&lt;a href="http://1.bp.blogspot.com/-BaJLtzUNJdA/TssQXjd3eHI/AAAAAAAAAXU/-WLCcPjN_PQ/s1600/t3.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="150" src="http://1.bp.blogspot.com/-BaJLtzUNJdA/TssQXjd3eHI/AAAAAAAAAXU/-WLCcPjN_PQ/s200/t3.jpg" width="200" /&gt;&lt;/a&gt;&lt;/i&gt;&lt;/div&gt;&lt;i&gt; &lt;/i&gt;&lt;br /&gt;&lt;div style="background-color: white; color: black; text-align: center;"&gt;&lt;i&gt;Kal fursat na mili toh kya koroge,&lt;/i&gt;&lt;br /&gt;&lt;i&gt;itni si mohlat na mili toh kya karoge,&lt;/i&gt;&lt;br /&gt;&lt;i&gt;Roj kehte ho kal baat karenge,&lt;/i&gt;&lt;br /&gt;&lt;i&gt;kal hamari aakhen na kholi toh kya karoge.&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;i&gt;&lt;a href="http://i.ytimg.com/vi/3D9OTNhubbA/0.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" height="150" src="http://i.ytimg.com/vi/3D9OTNhubbA/0.jpg" width="200" /&gt;&lt;/a&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;i&gt;Wo shasks meri jaan bana rehta hai,&lt;/i&gt;&lt;br /&gt;&lt;i&gt;uska pyar meri pehchaan bana rehta hai,&lt;/i&gt;&lt;br /&gt;&lt;i&gt;Koi yad karta hai usko kitni shidat se,&lt;/i&gt;&lt;br /&gt;&lt;i&gt;wo janta he magar anjan bana rehta hai.&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;i&gt;&lt;a href="http://1.bp.blogspot.com/_l1LMUaFgQm0/S9oBf9x1RvI/AAAAAAAAAOk/rFplxs8ZYVQ/s1600/book.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" height="133" src="http://1.bp.blogspot.com/_l1LMUaFgQm0/S9oBf9x1RvI/AAAAAAAAAOk/rFplxs8ZYVQ/s200/book.jpg" width="200" /&gt;&lt;/a&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;i&gt;Guzra waqt dil ki baat sunaega,&lt;/i&gt;&lt;br /&gt;&lt;i&gt;kabhi saath the hum hal pal yaad aayega,&lt;/i&gt;&lt;br /&gt;&lt;i&gt;Gaur se palatna zindagi ke panno ko,&lt;/i&gt;&lt;br /&gt;&lt;i&gt;kahin na nahin to hamara naam jarur nazar aayega.&lt;/i&gt;&lt;/div&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/309066060964352175-4487705108995640157?l=mtktechiecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/309066060964352175/posts/default/4487705108995640157'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/309066060964352175/posts/default/4487705108995640157'/><link rel='alternate' type='text/html' href='http://mtktechiecode.blogspot.com/2011/05/aarz-hai.html' title='Aarz hai'/><author><name>Md Tareque Khan</name><uri>http://www.blogger.com/profile/11255767652389656742</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/_GYtp331qfhs/TCNTyLhqgTI/AAAAAAAAAEM/AHoC6NejI9I/S220/14.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_uL91CpVwz78/S3RIvnaAgyI/AAAAAAAAAGo/5p1A7jl911U/s72-c/020-photo-crashing-ocean-waves.png' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-309066060964352175.post-1113120911960153866</id><published>2011-05-02T01:43:00.000+05:30</published><updated>2011-05-02T01:44:04.172+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='zindagi'/><title type='text'>Still trying to code ....</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;style&gt;#quote{    border: 2px solid balck;    background: #DE7689;    font-family: "Bitstream Vera Serif";    font-size: 2em;}&lt;/style&gt;&lt;br /&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/__XFE27LSt-g/STRHsxxTY0I/AAAAAAAAACQ/7VS5BaGP-yM/s400/computer_programming.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" height="240" src="http://1.bp.blogspot.com/__XFE27LSt-g/STRHsxxTY0I/AAAAAAAAACQ/7VS5BaGP-yM/s320/computer_programming.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;Introduced to programming language C and C++ in first year of my 4 year Engineering Course. Till the end of the year, I hardly understood the power of programming. But eventually the time spent dwindling with online tutorials in the summer break was a real break for me !!!&lt;br /&gt;&lt;br /&gt;Spending next 6 months on data-structure, I got to know how to use the correct tool for the given problem, but many a times my decisions didn't gave any result. Codechef, Topcoders, Codeforces as proved a motivational platform to develop my skills.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;But still after a period of 3 years, I am not able to get around some difficult problems :( . One needs to really work hard to develop the proper skill, which I&amp;nbsp;think I still haven't.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://www.text2image.com/user_images/text2image_R45784_20110501_210709.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://www.text2image.com/user_images/text2image_R45784_20110501_210709.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If I had to put my current scenario in the current sense then the quote correctly depict that. At some point of your life , you reach a stage when you need help, but wouldn't find one. The answer to this is just 'Patience'. As it is rightly said "All human wisdom is summed up into two words wait and hope".&lt;/div&gt;&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/309066060964352175-1113120911960153866?l=mtktechiecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/309066060964352175/posts/default/1113120911960153866'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/309066060964352175/posts/default/1113120911960153866'/><link rel='alternate' type='text/html' href='http://mtktechiecode.blogspot.com/2011/05/still-trying-to-code.html' title='Still trying to code ....'/><author><name>Md Tareque Khan</name><uri>http://www.blogger.com/profile/11255767652389656742</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/_GYtp331qfhs/TCNTyLhqgTI/AAAAAAAAAEM/AHoC6NejI9I/S220/14.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/__XFE27LSt-g/STRHsxxTY0I/AAAAAAAAACQ/7VS5BaGP-yM/s72-c/computer_programming.jpg' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-309066060964352175.post-3778036893249145128</id><published>2011-03-16T02:32:00.001+05:30</published><updated>2011-04-11T03:44:18.450+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='zindagi'/><title type='text'>Experience Bolta hai...</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://t2.gstatic.com/images?q=tbn:ANd9GcTMV-E6TZz5OsK6iGCJr0gac8L97cMWbyVQSkglrYY4sqscu12R" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://t2.gstatic.com/images?q=tbn:ANd9GcTMV-E6TZz5OsK6iGCJr0gac8L97cMWbyVQSkglrYY4sqscu12R" /&gt;&lt;/a&gt;&lt;/div&gt;Last&amp;nbsp;semester&amp;nbsp;of engineering&amp;nbsp;really&amp;nbsp;taught me much more than I could&amp;nbsp;perceive.My technical knowledge got boosted but on the other hand I got to know that we have to live a professional life in this professional world.&lt;br /&gt;&lt;br /&gt;Bitter truth is something that one has to face at some point of time in your life.Once you start working on something, don't be afraid of failure and don't abandon it. People who work sincerely are the happiest.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Also keep proof of everything you do as this would help you in future to rectify many problems. And try to grasp as many things as possible from the given&amp;nbsp;scenario&amp;nbsp;which would eventually lead to good results.Always be clear of what you need at the end.The person we fear, which we think can do what-ever he wants and which treats you as useless, is a person not to be feared and not to be entertained.It is he who is in the loss and cannot be helped by anyone.&lt;br /&gt;&lt;br /&gt;So just lead the life as it comes. Do your best in which ever field you work and what you are capable of, this will make you happy and also the people around you :)&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&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/309066060964352175-3778036893249145128?l=mtktechiecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/309066060964352175/posts/default/3778036893249145128'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/309066060964352175/posts/default/3778036893249145128'/><link rel='alternate' type='text/html' href='http://mtktechiecode.blogspot.com/2011/03/experience-bolta-hai.html' title='Experience Bolta hai...'/><author><name>Md Tareque Khan</name><uri>http://www.blogger.com/profile/11255767652389656742</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/_GYtp331qfhs/TCNTyLhqgTI/AAAAAAAAAEM/AHoC6NejI9I/S220/14.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-309066060964352175.post-6075580843443900585</id><published>2011-02-24T03:20:00.009+05:30</published><updated>2011-11-01T01:32:46.828+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Euler'/><title type='text'>Project Euler 5</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;style type="text/css"&gt;#ToggleTarget { display: none; background-color: #cccccc;}&lt;/style&gt;&lt;br /&gt;&lt;script type="text/javascript"&gt;function Toggle() { var el = document.getElementById("ToggleTarget"); if (el.style.display == "block") {  el.style.display = "none"; } else {  el.style.display = "block"; }}&lt;/script&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: red;"&gt;Problem&lt;/span&gt;:&amp;nbsp;&lt;u style="color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="color: #444444; font-family: Georgia, 'Times New Roman', serif; font-size: small;"&gt;&lt;a href="http://projecteuler.net/problem=5"&gt;What is the smallest number divisible by each of the numbers 1 to 20?&lt;/a&gt;&lt;/span&gt;&lt;/u&gt;&lt;br /&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #6aa84f;"&gt;Solution&lt;/span&gt;: [Spoiler Ahead]&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #444444; font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I just checked for numbers that are divisible by all numbers between 11 and 20(inclusive), this algo is not much&amp;nbsp;efficient&amp;nbsp;but works well.&lt;br /&gt;&lt;br /&gt;&lt;a href="javascript:Toggle();"&gt;Toggle Code&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id="ToggleTarget"&gt;&lt;div id="code"&gt;&lt;pre&gt;&lt;span class="Apple-style-span"&gt;#include &amp;lt;stdio.h&amp;gt;;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="Apple-style-span"&gt;main() &lt;br /&gt;{ &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; int i; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; int smallest=0,found=0; &lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for(smallest=20;found &amp;lt; 1;smallest++){ &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; for(i=20;i &amp;gt; 10 ;i--){ &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if(smallest%i != 0){ &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; found = 0; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; break; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if(i == 10){ &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; found = 1; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; break; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("%d\n",smallest); &lt;br /&gt;} &lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;Enjoy coding :-)&lt;/div&gt;&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/309066060964352175-6075580843443900585?l=mtktechiecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/309066060964352175/posts/default/6075580843443900585'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/309066060964352175/posts/default/6075580843443900585'/><link rel='alternate' type='text/html' href='http://mtktechiecode.blogspot.com/2011/02/project-euler-5.html' title='Project Euler 5'/><author><name>Md Tareque Khan</name><uri>http://www.blogger.com/profile/11255767652389656742</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/_GYtp331qfhs/TCNTyLhqgTI/AAAAAAAAAEM/AHoC6NejI9I/S220/14.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-309066060964352175.post-8517614539269217712</id><published>2011-02-24T02:48:00.002+05:30</published><updated>2011-11-01T01:30:58.759+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Euler'/><title type='text'>Project Euler 4</title><content type='html'>&lt;style type="text/css"&gt;#ToggleTarget { display: none; background-color:#cccccc;}&lt;/style&gt;&lt;br /&gt;&lt;script type="text/javascript"&gt;function Toggle() { var el = document.getElementById("ToggleTarget"); if (el.style.display == "block") { el.style.display = "none"; } else {  el.style.display = "block"; }}&lt;/script&gt;&lt;br /&gt;&lt;br /&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;style&gt;#code {    border: 1px solid balck;    background: #F5F5F5;    font-family: "Bitstream Vera Serif";    font-size: 1.2em;    padding: 1px 3px;    line-height:150%; }#film{       font-family: "Script MT Bold";       font-size: 1.6em;       color: #1DD189;}&lt;/style&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: red;"&gt;Problem&lt;/span&gt;:&amp;nbsp;&lt;u style="color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="color: #444444; font-family: Georgia, 'Times New Roman', serif; font-size: medium;"&gt;&lt;a href="http://projecteuler.net/problem=4"&gt;Find the largest palindrome made from the product of two 3-digit numbers&lt;/a&gt;&lt;/span&gt;&lt;/u&gt;&lt;u style="color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="color: #444444; font-family: Georgia, 'Times New Roman', serif; font-size: medium;"&gt;.&lt;/span&gt;&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #6aa84f;"&gt;Solution&lt;/span&gt;: [Spoiler Ahead]&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: 22px; line-height: 30px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;&amp;nbsp;The initial algorithm to the problem is : Check all products of two 3-digit number and store the required number.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span class="Apple-style-span" style="color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="javascript:Toggle();"&gt;Toggle Code&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id="ToggleTarget"&gt;&lt;div id="code"&gt;function reverse(n)&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;reversed = 0&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;while n &amp;gt; 0&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;reversed = 10*reversed + n mod 10&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;n = n/10&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;return reversed&lt;br /&gt;&lt;br /&gt;function isPalindrome(n)&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;return n = reverse(n)&lt;br /&gt;&lt;br /&gt;largestPalindrome = 0&lt;br /&gt;a = 100&lt;br /&gt;while a &amp;lt;= 999&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;b = 100&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;while b &amp;lt;= 999&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;if isPalindrome(a*b) and a*b &amp;gt; largestPalindrome&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;largestPalindrome = a*b&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;b = b+1&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;a = a+1&lt;br /&gt;&lt;br /&gt;output largestPalindrome&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;This works quiet well but if you observe we are computing the same product twice.&amp;nbsp;So beginning the value of 'b' from the value of 'a' will suffice for this. Also running the loop in reverse order will speed up the algo as lower number need not be checked for the palindrome case as shown in below implementation:&lt;/b&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div id="code"&gt;&lt;br /&gt;largestPalindrome = 0&lt;br /&gt;a = 999&lt;br /&gt;while a &amp;gt;= 100&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;b = 999&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;while b &amp;gt;= a&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;if a*b &amp;lt;= largestPalindrome&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;break&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;if isPalindrome(a*b)&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;largestPalindrome = a*b&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;b = b-1&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;a = a-1&lt;br /&gt;&lt;br /&gt;output largestPalindrome&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Thus giving us answer in few seconds !!!&lt;br /&gt;Enjoy coding :-)&lt;br /&gt;&lt;br /&gt;&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/309066060964352175-8517614539269217712?l=mtktechiecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/309066060964352175/posts/default/8517614539269217712'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/309066060964352175/posts/default/8517614539269217712'/><link rel='alternate' type='text/html' href='http://mtktechiecode.blogspot.com/2011/02/project-euler-4.html' title='Project Euler 4'/><author><name>Md Tareque Khan</name><uri>http://www.blogger.com/profile/11255767652389656742</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/_GYtp331qfhs/TCNTyLhqgTI/AAAAAAAAAEM/AHoC6NejI9I/S220/14.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-309066060964352175.post-1444241055437524754</id><published>2011-02-23T20:53:00.002+05:30</published><updated>2011-02-24T02:39:31.546+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Euler'/><title type='text'>Project Euler #3</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;style&gt;#code {    border: 1px solid balck;    background: #F5F5F5;    font-family: "Bitstream Vera Serif";    font-size: 1.2em;    padding: 1px 3px;    line-height:150%; }&lt;/style&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;u&gt;&lt;span class="Apple-style-span" style="color: #444444; font-family: Georgia, 'Times New Roman', serif; font-size: large;"&gt;Problem #3:&lt;/span&gt;&lt;/u&gt;&lt;u&gt;&lt;span class="Apple-style-span" style="color: #444444; font-family: Georgia, 'Times New Roman', serif; font-size: large;"&gt;Find the largest prime factor of a composite number.&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;u&gt;&lt;span class="Apple-style-span" style="color: #444444; font-family: Georgia, 'Times New Roman', serif; font-size: 1.2em;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #444444; font-family: Georgia, 'Times New Roman', serif; font-size: large;"&gt;&lt;span class="Apple-style-span" style="color: black; font-family: 'Times New Roman'; font-size: 1.2em;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="color: #38761d; font-size: large;"&gt;Solution&lt;/span&gt;&lt;/b&gt;:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #444444; font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;span class="Apple-style-span" style="color: black; font-family: 'Times New Roman'; font-size: large;"&gt;&lt;/span&gt;&lt;/span&gt;As usual firstly the straight forward implementation. Run a loop and go on checking whether it divides the given number and check if it is prime, storing the largest one.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div id="code"&gt;&lt;div id="code"&gt;&lt;span class="Apple-style-span" style="font-size: 19px; line-height: 28px;"&gt;#include&lt;stdio.h&gt;&lt;/stdio.h&gt;&lt;/span&gt;&lt;/div&gt;&lt;div id="code"&gt;&lt;span class="Apple-style-span" style="font-size: 19px; line-height: 28px;"&gt;#include"prime.h"&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;//My own module,code not shown here&lt;/span&gt;&lt;/div&gt;&lt;div id="code"&gt;&lt;span class="Apple-style-span" style="font-size: 19px; line-height: 28px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div id="code"&gt;&lt;span class="Apple-style-span" style="font-size: 19px; line-height: 28px;"&gt;int main()&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: 19px; line-height: 28px;"&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div id="code"&gt;&lt;span class="Apple-style-span" style="font-size: 19px; line-height: 28px;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;long long num=600851475143L;&lt;/span&gt;&lt;/div&gt;&lt;div id="code"&gt;&lt;span class="Apple-style-span" style="font-size: 19px; line-height: 28px;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;long largest_prime_factor=0,&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: 19px; line-height: 28px;"&gt;i;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: 19px; line-height: 28px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div id="code"&gt;&lt;span class="Apple-style-span" style="font-size: 19px; line-height: 28px;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;for(i=10;i&amp;lt;num/2&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: monospace; font-size: 19px; line-height: 28px; white-space: pre;"&gt;;i++)&lt;/span&gt;&lt;/div&gt;&lt;div id="code"&gt;&lt;span class="Apple-style-span" style="font-size: 19px; line-height: 28px;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;       &lt;/span&gt;if(num%i==0)&lt;/span&gt;&lt;/div&gt;&lt;div id="code"&gt;&lt;span class="Apple-style-span" style="font-size: 19px; line-height: 28px;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;              &lt;/span&gt;if(isPrime(i))&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;//return true if prime&lt;/span&gt;&lt;/div&gt;&lt;div id="code"&gt;&lt;span class="Apple-style-span" style="font-size: 19px; line-height: 28px;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;                     &lt;/span&gt;largest_prime_factor=i;&lt;/span&gt;&lt;/div&gt;&lt;div id="code"&gt;&lt;span class="Apple-style-span" style="font-size: 19px; line-height: 28px;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;printf("Answer to Euler #3 : %ld",largest_prime_factor);&lt;/span&gt;&lt;/div&gt;&lt;div id="code"&gt;&lt;span class="Apple-style-span" style="font-size: 19px; line-height: 28px;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;return 0;&lt;/span&gt;&lt;/div&gt;&lt;div id="code"&gt;&lt;span class="Apple-style-span" style="font-size: 19px; line-height: 28px;"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;This can be optimized a little by defining a new upper bound for the loop counter &amp;nbsp;and that would be square root of the given number.&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; More over 2 is a factor which if checked separately will make our life easy. Then we can increase the factor by step of 2.&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;A little more optimized algorithm is:&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div id="code"&gt;&lt;pre&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: large; line-height: normal; white-space: normal;"&gt;&lt;div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;n="a large number"&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;if n mod 2=0&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;then&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;    &lt;/span&gt;n=n / 2&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;    &lt;/span&gt;lastFactor=2&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;    &lt;/span&gt;while n % 2=0&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;        &lt;/span&gt;n=n / 2&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;else&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;    &lt;/span&gt;lastFactor=1&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;factor=3&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;while n&amp;gt;1&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;         &lt;/span&gt;if n % factor=0&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;         &lt;/span&gt;then&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;                &lt;/span&gt;n=n / factor&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;         &lt;/span&gt;lastFactor=factor&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;         &lt;/span&gt;while n % factor=0&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;                &lt;/span&gt;n=n / factor&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;         &lt;/span&gt;factor+=2&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;output lastFactor&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;This is not the fully optimized solution but can be modified further. That left to you ;-)&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;Enjoy coding :-)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div style="color: black; font-family: 'Times New Roman'; font-size: medium;"&gt;&lt;/div&gt;&lt;/div&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;/div&gt;&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/309066060964352175-1444241055437524754?l=mtktechiecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/309066060964352175/posts/default/1444241055437524754'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/309066060964352175/posts/default/1444241055437524754'/><link rel='alternate' type='text/html' href='http://mtktechiecode.blogspot.com/2011/02/project-euler-3.html' title='Project Euler #3'/><author><name>Md Tareque Khan</name><uri>http://www.blogger.com/profile/11255767652389656742</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/_GYtp331qfhs/TCNTyLhqgTI/AAAAAAAAAEM/AHoC6NejI9I/S220/14.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-309066060964352175.post-2686390009784448771</id><published>2011-02-23T20:14:00.005+05:30</published><updated>2011-11-01T01:33:16.761+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Euler'/><title type='text'>Project Euler 2</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;style&gt;#code {    border: 1px solid balck;    background: #F5F5F5;    font-family: "Bitstream Vera Serif";    font-size: 1.2em;    padding: 1px 3px;    line-height:150%; }&lt;/style&gt;&lt;br /&gt;&lt;br /&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;u&gt;&lt;span class="Apple-style-span" style="color: #444444; font-family: Georgia, 'Times New Roman', serif; font-size: large;"&gt;Problem #2:Find the sum of all the even-valued terms in the Fibonacci sequence which do not exceed four million.&lt;/span&gt;&lt;/u&gt;&lt;br /&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="color: #38761d; font-size: large;"&gt;Solution&lt;/span&gt;&lt;/b&gt;: A straight forward implementation in C for this problem can be as shown&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id="code"&gt;&lt;pre&gt;#include&lt;stdio.h&gt;&lt;br /&gt;#define LIMIT 4000000&lt;br /&gt;int main()&lt;br /&gt;{&lt;br /&gt; long a=1, b=2, c=0, sum=0;&lt;br /&gt; sum = b;&lt;br /&gt; while(c &amp;lt; LIMIT ){&lt;br /&gt;  c = a+b;&lt;br /&gt;  if(c &amp;lt; 1000000)&lt;br /&gt;  if(c%2 == 0)&lt;br /&gt;   sum += c;&lt;br /&gt;  a = b;&lt;br /&gt;  b = c;&lt;br /&gt; }&lt;br /&gt; printf("\nAnswer to euler #2 : %ld\n",sum);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/stdio.h&gt;&lt;/pre&gt;&lt;/div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; This code works fine for our required need, but more optimizations can be done.How?  Lets look at the fibo seq.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1 1 &lt;span class="Apple-style-span" style="color: lime;"&gt;2&lt;/span&gt; 3 5 &lt;span class="Apple-style-span" style="color: lime;"&gt;8&lt;/span&gt; 13 21 &lt;span class="Apple-style-span" style="color: lime;"&gt;34&lt;/span&gt; 55 89 &lt;span class="Apple-style-span" style="color: lime;"&gt;144&lt;/span&gt; ...&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; As we can see,every 3rd term is a even number. Therefore we can change the code accordingly to just sum up every third number.&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Another approach is we can find a recurrence funtion for this new series i.e. we can have :&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;b&gt;F`(n)=4*F`(n-1) + F`(n-2)&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;It is easy to prove that for Fibonacci series we get:&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;b&gt;&amp;nbsp;F(n)=4*F(n-3)+F(n-6)&amp;nbsp;&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;Thus we get a more faster running code, which we eventually need :-)   &lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;Enjoy coding :-)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&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/309066060964352175-2686390009784448771?l=mtktechiecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/309066060964352175/posts/default/2686390009784448771'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/309066060964352175/posts/default/2686390009784448771'/><link rel='alternate' type='text/html' href='http://mtktechiecode.blogspot.com/2011/02/project-euler-2.html' title='Project Euler 2'/><author><name>Md Tareque Khan</name><uri>http://www.blogger.com/profile/11255767652389656742</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/_GYtp331qfhs/TCNTyLhqgTI/AAAAAAAAAEM/AHoC6NejI9I/S220/14.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-309066060964352175.post-703252065241941478</id><published>2011-02-23T02:46:00.005+05:30</published><updated>2011-05-02T01:51:25.453+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Bollywood'/><title type='text'>My all time favourite Movies</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;style&gt;#film{       font-family: "Script MT Bold";       font-size: 1.6em;       color: #1DD189;}&lt;/style&gt;&lt;br /&gt;&lt;br /&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://www.tunesofbollywood.com/cm/images/stories/bmPhotos/ma.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;&lt;img border="0" height="280" src="http://www.tunesofbollywood.com/cm/images/stories/bmPhotos/ma.jpg" width="400" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;span class="Apple-style-span" id="film" style="font-size: large;"&gt;Mughal-e-azam &lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://nowrunning.com/comingsoon/Wednesday/wall_1024x768_1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="297" src="http://nowrunning.com/comingsoon/Wednesday/wall_1024x768_1.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;span class="Apple-style-span" id="film" style="font-size: large;"&gt;A Wednesday&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;&lt;a href="http://lifestyle.iloveindia.com/lounge/images/a-wednesday-review.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;/a&gt;&lt;a href="http://actor.bollysite.com/albums/aamir-khan/Aamir-Khan-010.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="300" src="http://actor.bollysite.com/albums/aamir-khan/Aamir-Khan-010.jpg" width="400" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;span class="Apple-style-span" id="film" style="font-size: large;"&gt;Ghajini&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; font-size: medium; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;&lt;a href="http://afreeimages.com/wp-content/uploads/2010/08/munnabhai_mbbs.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="271" src="http://afreeimages.com/wp-content/uploads/2010/08/munnabhai_mbbs.jpg" width="400" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; font-size: medium; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;"&gt;&lt;span class="Apple-style-span" id="film" style="color: #1dd189; font-family: 'Script MT Bold'; font-size: large;"&gt;Munnabhai M.B.B.S&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #1dd189; font-family: 'Script MT Bold';"&gt;&lt;span class="Apple-style-span" style="font-size: 26px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://www.gdefon.ru/films/63163_vozvrashhenie-na-rodinu_or_swades-we-the-people_1024x768_(www.GdeFon.ru).jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="300" src="http://www.gdefon.ru/films/63163_vozvrashhenie-na-rodinu_or_swades-we-the-people_1024x768_(www.GdeFon.ru).jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;span class="Apple-style-span" style="color: #1dd189; font-family: 'Script MT Bold';"&gt;&lt;span class="Apple-style-span" style="font-size: 26px;"&gt;Swades - we the people&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-size: large; margin-left: 1em; margin-right: 1em;"&gt;&lt;a href="http://mashedmusings.files.wordpress.com/2007/10/dil-chahta-hai-wallpaper-985-5641.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="300" src="http://mashedmusings.files.wordpress.com/2007/10/dil-chahta-hai-wallpaper-985-5641.jpg" width="400" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;span class="Apple-style-span" id="film" style="font-size: large;"&gt;Dil Chahta Hai&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-size: large; margin-left: 1em; margin-right: 1em;"&gt;&lt;a href="http://s.chakpak.com/se_images/18430_-1_564_none/rang-de-basanti-wallpaper.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="300" src="http://s.chakpak.com/se_images/18430_-1_564_none/rang-de-basanti-wallpaper.jpg" width="400" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;span class="Apple-style-span" id="film" style="font-size: large;"&gt;Rang De Basanti&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&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/309066060964352175-703252065241941478?l=mtktechiecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/309066060964352175/posts/default/703252065241941478'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/309066060964352175/posts/default/703252065241941478'/><link rel='alternate' type='text/html' href='http://mtktechiecode.blogspot.com/2011/02/my-all-time-favourite-movies.html' title='My all time favourite Movies'/><author><name>Md Tareque Khan</name><uri>http://www.blogger.com/profile/11255767652389656742</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/_GYtp331qfhs/TCNTyLhqgTI/AAAAAAAAAEM/AHoC6NejI9I/S220/14.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-309066060964352175.post-7870632884665719342</id><published>2011-02-23T02:14:00.009+05:30</published><updated>2011-11-01T01:33:26.014+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Euler'/><title type='text'>Project Euler 1</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;a href="http://projecteuler.net/index.php?section=problems&amp;amp;id=1" target="_blank"&gt;&lt;span style="color: #444444; font-family: georgia; font-size: 21px;"&gt;Problem #1. Add all the natural numbers below one thousand that are multiples of 3 or 5.&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span style="color: #009900; font-size: large; font-weight: bold;"&gt;Solution&lt;/span&gt;&amp;nbsp;: This can be done in two ways ....&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;i. The&amp;nbsp;&lt;span style="font-weight: bold;"&gt;normal method&lt;/span&gt;, i.e. run a&amp;nbsp;&lt;span style="font-style: italic;"&gt;for&lt;/span&gt;&amp;nbsp;from 1 to 1000 and check for the given condition on each number.&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;This method does solves our problem but is&amp;nbsp;&lt;span style="font-weight: bold;"&gt;crude&lt;/span&gt;.&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div id="code"&gt;&lt;pre style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;tt&gt;upperlimit=999&lt;br /&gt;total_sum=0&lt;br /&gt;for i=1 to upperlimit do&lt;br /&gt;if (i mod 3=0) or (i mod 5)=0 then&lt;br /&gt;total_sum:=total_sum+i;&lt;br /&gt;output total_sum&lt;br /&gt;&lt;/tt&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;ii. The&amp;nbsp;&lt;span style="font-weight: bold;"&gt;short-cut method&lt;/span&gt;&amp;nbsp;: In this you need only one formula and just need to compute value of 3 expressions.&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;Just go through----&amp;gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;The solution to given problem will be the answer of this expression :&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;ans = sumDivisibleBy(3) + sumDivisibleBy(5) - sumDivisibleBy(15)&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;Now for n=3 :&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;3,6,9,12,15,18,21,24,27,.....,999 = 3(1,2,3,4,5,6,7,8,9,....,333)&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;Now we know that :&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;1 + 2 + 3 + .... + q = 1/2*q*(q+1)&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;In our case :&lt;tt&gt;&amp;nbsp;q = upperlimit / n&lt;/tt&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;Therefore our solution says :&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div id="code"&gt;&lt;pre style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;tt&gt;Function sumDivisibleBy(n):&lt;br /&gt;q = upperlimit div n&lt;br /&gt;return n*(q*(q+1)) div 2&lt;br /&gt;EndFunction&lt;br /&gt;&lt;br /&gt;print sumDivisibleBy(3)+sumDivisibleBy(5)-sumDivisibleBy(15)&lt;/tt&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;Feel free to ask any kind of querry, I'll try my best to solve it.&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;Enjoy coding :-)&lt;/span&gt;&lt;br /&gt;&lt;style&gt;#code {    border: 1px solid balck;    background: #F5F5F5;    font-family: "Bitstream Vera Serif";    font-size: 1.2em;    padding: 1px 3px;    line-height:150%; }&lt;/style&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/309066060964352175-7870632884665719342?l=mtktechiecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/309066060964352175/posts/default/7870632884665719342'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/309066060964352175/posts/default/7870632884665719342'/><link rel='alternate' type='text/html' href='http://mtktechiecode.blogspot.com/2011/02/project-euler-1.html' title='Project Euler 1'/><author><name>Md Tareque Khan</name><uri>http://www.blogger.com/profile/11255767652389656742</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/_GYtp331qfhs/TCNTyLhqgTI/AAAAAAAAAEM/AHoC6NejI9I/S220/14.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-309066060964352175.post-2678985483250231039</id><published>2010-08-30T06:10:00.000+05:30</published><updated>2011-04-11T03:44:18.450+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='zindagi'/><title type='text'>The Month of Purity and Patience</title><content type='html'>&lt;span style="font-style: italic;"&gt;&lt;span style="font-weight: bold;"&gt;Ramzaan&lt;/span&gt;&lt;/span&gt; is the month of purity and patience that brings the human soul towards the Creator and makes him think about each and every small and wonderful things He has created. Fasting reschedules all your daily routines that we disturbed otherwise.&lt;br /&gt;&lt;br /&gt;       &lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_GYtp331qfhs/THsAX61p0QI/AAAAAAAAAF4/fyJJYKJpDBc/s1600/wallpaper67.jpg"&gt;&lt;img style="cursor: pointer; width: 400px; height: 300px;" src="http://2.bp.blogspot.com/_GYtp331qfhs/THsAX61p0QI/AAAAAAAAAF4/fyJJYKJpDBc/s400/wallpaper67.jpg" alt="" id="BLOGGER_PHOTO_ID_5510998979949220098" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;---------------------------------------------------------&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;Take account of yourself before you are called for account.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/309066060964352175-2678985483250231039?l=mtktechiecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/309066060964352175/posts/default/2678985483250231039'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/309066060964352175/posts/default/2678985483250231039'/><link rel='alternate' type='text/html' href='http://mtktechiecode.blogspot.com/2010/08/month-of-purity-and-patience.html' title='The Month of Purity and Patience'/><author><name>Md Tareque Khan</name><uri>http://www.blogger.com/profile/11255767652389656742</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/_GYtp331qfhs/TCNTyLhqgTI/AAAAAAAAAEM/AHoC6NejI9I/S220/14.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_GYtp331qfhs/THsAX61p0QI/AAAAAAAAAF4/fyJJYKJpDBc/s72-c/wallpaper67.jpg' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-309066060964352175.post-7355492494432982634</id><published>2010-07-25T17:11:00.001+05:30</published><updated>2010-12-22T18:17:53.055+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Engg'/><title type='text'></title><content type='html'>&lt;span style="font-weight: bold;"&gt;A good comparision between &lt;span style="color: rgb(0, 153, 0);"&gt;Bubble Sort&lt;/span&gt; and &lt;span style="color: rgb(0, 153, 0);"&gt;Quick Sort.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Please Wait while the video loads.......&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;object height="385" width="480"&gt;&lt;param name="movie" value="http://www.youtube.com/v/vxENKlcs2Tw&amp;amp;hl=en_US&amp;amp;fs=1"&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;embed src="http://www.youtube.com/v/vxENKlcs2Tw&amp;amp;hl=en_US&amp;amp;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" height="385" width="480"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/309066060964352175-7355492494432982634?l=mtktechiecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/309066060964352175/posts/default/7355492494432982634'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/309066060964352175/posts/default/7355492494432982634'/><link rel='alternate' type='text/html' href='http://mtktechiecode.blogspot.com/2010/07/blog-post.html' title=''/><author><name>Md Tareque Khan</name><uri>http://www.blogger.com/profile/11255767652389656742</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/_GYtp331qfhs/TCNTyLhqgTI/AAAAAAAAAEM/AHoC6NejI9I/S220/14.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-309066060964352175.post-6781753707822180490</id><published>2009-09-10T11:22:00.000+05:30</published><updated>2010-12-22T18:17:53.055+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Engg'/><title type='text'>Impressed by Free Software........</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_GYtp331qfhs/SqiWTV6mTLI/AAAAAAAAACI/j8S9NNvM9gI/s1600-h/images.jpeg"&gt;&lt;img style="margin: 0pt 0pt 10px 10px; float: right; cursor: pointer; width: 102px; height: 122px;" src="http://2.bp.blogspot.com/_GYtp331qfhs/SqiWTV6mTLI/AAAAAAAAACI/j8S9NNvM9gI/s320/images.jpeg" alt="" id="BLOGGER_PHOTO_ID_5379715013938662578" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;The starting of the &lt;span style="font-weight: bold; font-style: italic;"&gt;CoFSUG&lt;/span&gt; &lt;span style="font-weight: bold; font-style: italic;"&gt;( Coep's Free Software Users Group)&lt;/span&gt; club increased my curiosity towards the world of free software. FREEDOM IS OUR BIRTH RIGHT AND WE SHALL HAVE IT was been rightly said by one great freedom fighter which applies in almost every field.&lt;br /&gt;My thinking got changed a lot and now I believe that the code contributed by a group of people is far more robust and secured than developed by an individual.If anyone wants to write any new implementable software from scratch then even if he has done with it, the code would not be that smarter as it would have been if it was a &lt;span style="font-weight: bold;"&gt;open source code&lt;/span&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/309066060964352175-6781753707822180490?l=mtktechiecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/309066060964352175/posts/default/6781753707822180490'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/309066060964352175/posts/default/6781753707822180490'/><link rel='alternate' type='text/html' href='http://mtktechiecode.blogspot.com/2009/09/impressed-by-free-software.html' title='Impressed by Free Software........'/><author><name>Md Tareque Khan</name><uri>http://www.blogger.com/profile/11255767652389656742</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/_GYtp331qfhs/TCNTyLhqgTI/AAAAAAAAAEM/AHoC6NejI9I/S220/14.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_GYtp331qfhs/SqiWTV6mTLI/AAAAAAAAACI/j8S9NNvM9gI/s72-c/images.jpeg' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-309066060964352175.post-6775659945411580983</id><published>2009-08-29T08:21:00.000+05:30</published><updated>2009-08-29T08:37:09.742+05:30</updated><title type='text'>The day everything went wrong .....</title><content type='html'>Two days before was a good lesson teaching day for me. All began with those  news in the TOI which were showing the cruel face of humans which was too disappointing.&lt;br /&gt;Then I went to the library where to my surprise I found I had lost my collage ID card, then ATM card, Driving license and at last whole wallet.&lt;br /&gt;In the Afternoon my laptop got formatted as I was trying some new command in ubuntu.&lt;br /&gt;In the evening near about 7 p.m. I remembered I had forgotten my pendrive in the collage lab.&lt;br /&gt;I think this all happened due to some reason and as if God was punishing me for some of my sins .&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/309066060964352175-6775659945411580983?l=mtktechiecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/309066060964352175/posts/default/6775659945411580983'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/309066060964352175/posts/default/6775659945411580983'/><link rel='alternate' type='text/html' href='http://mtktechiecode.blogspot.com/2009/08/day-everything-went-wrong.html' title='The day everything went wrong .....'/><author><name>Md Tareque Khan</name><uri>http://www.blogger.com/profile/11255767652389656742</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/_GYtp331qfhs/TCNTyLhqgTI/AAAAAAAAAEM/AHoC6NejI9I/S220/14.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-309066060964352175.post-6465063067528001160</id><published>2009-07-21T16:43:00.000+05:30</published><updated>2011-04-11T03:44:18.452+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='zindagi'/><title type='text'>My first POST</title><content type='html'>A warm 'hi' to everyone. This is my very first Blog. I didn't knew that anything like Blog existed , but thanks to my friends who are the source of this discovery to me.&lt;br /&gt;Currently, I am a T.Y.B.Tech student in COEP . Recently impressed with one of the faculty's ideas I generated interest in Linux and Free Software like things and to my notice I found that Free Software is a huge and great world. It actually develops a programmers skills and spreads it among others.&lt;br /&gt;Initially , I faced many problems with its installation and other stuff but gradually due to curiosity the solution came all the way.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/309066060964352175-6465063067528001160?l=mtktechiecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/309066060964352175/posts/default/6465063067528001160'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/309066060964352175/posts/default/6465063067528001160'/><link rel='alternate' type='text/html' href='http://mtktechiecode.blogspot.com/2009/07/asw.html' title='My first POST'/><author><name>Md Tareque Khan</name><uri>http://www.blogger.com/profile/11255767652389656742</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/_GYtp331qfhs/TCNTyLhqgTI/AAAAAAAAAEM/AHoC6NejI9I/S220/14.jpg'/></author></entry></feed>
