<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Swageroo - Latest Comments</title><link>http://swageroo.disqus.com/</link><description></description><atom:link href="https://swageroo.disqus.com/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Mon, 17 Mar 2014 11:46:03 -0000</lastBuildDate><item><title>Re: SPOJ Problem 6256: Inversion Count &amp;#8211; INVCNT</title><link>http://www.swageroo.com/wordpress/spoj-problem-6256-inversion-count-invcnt/#comment-1288422584</link><description>&lt;p&gt;hi why does insertion sort give me wa. can't we implement insertion sort?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">kau</dc:creator><pubDate>Mon, 17 Mar 2014 11:46:03 -0000</pubDate></item><item><title>Re: Little-Known Awesome Algorithms: Fenwick Trees &amp;#8211; Rapidly Find Cumulative Frequency Sums</title><link>http://www.swageroo.com/wordpress/little-known-awesome-algorithms-fenwick-range-trees-rapidly-find-cumulative-frequency-sums/#comment-1249985020</link><description>&lt;p&gt;This is the best article on BIT . Well done&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ramachandran</dc:creator><pubDate>Tue, 18 Feb 2014 13:05:52 -0000</pubDate></item><item><title>Re: How to program a Gaussian Blur without using 3rd party libraries</title><link>http://www.swageroo.com/wordpress/how-to-program-a-gaussian-blur-without-using-3rd-party-libraries/#comment-1237792776</link><description>&lt;p&gt;Many Thanks for sharing this technical information, I can now appreciate what is Gaussian filter.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Moh'd Auwal</dc:creator><pubDate>Mon, 10 Feb 2014 00:21:33 -0000</pubDate></item><item><title>Re: How to program a Gaussian Blur without using 3rd party libraries</title><link>http://www.swageroo.com/wordpress/how-to-program-a-gaussian-blur-without-using-3rd-party-libraries/#comment-1229123458</link><description>&lt;p&gt;Really helpful for an amateur like me, thank you!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">tempname0815</dc:creator><pubDate>Mon, 03 Feb 2014 12:51:14 -0000</pubDate></item><item><title>Re: How to program a Gaussian Blur without using 3rd party libraries</title><link>http://www.swageroo.com/wordpress/how-to-program-a-gaussian-blur-without-using-3rd-party-libraries/#comment-1201837294</link><description>&lt;p&gt;Thank you so much ... simplified ...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Wahaj</dc:creator><pubDate>Wed, 15 Jan 2014 08:56:14 -0000</pubDate></item><item><title>Re: SPOJ Problem 2: Prime Generator &amp;#8211; PRIME1</title><link>http://www.swageroo.com/wordpress/spoj-problem-2-prime-generator-prime1/#comment-1190360350</link><description>&lt;p&gt;programming challenges by steven skienna&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">marlon!</dc:creator><pubDate>Tue, 07 Jan 2014 06:49:45 -0000</pubDate></item><item><title>Re: SPOJ Problem 2: Prime Generator &amp;#8211; PRIME1</title><link>http://www.swageroo.com/wordpress/spoj-problem-2-prime-generator-prime1/#comment-1188250579</link><description>&lt;p&gt;What is the name of the book you are mentioning? I'm really interested to know how have you prepared yourself for coding.Since you are a Facebook employee, you must be no less. I want to ask that do we really need to be somebody as good as Petr  Mitrichev(hope you have heard his name) to get into companies like Google, Facebook, etc. Please reply at my mail .&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">guest007</dc:creator><pubDate>Sun, 05 Jan 2014 15:09:56 -0000</pubDate></item><item><title>Re: SPOJ Problem 2: Prime Generator &amp;#8211; PRIME1</title><link>http://www.swageroo.com/wordpress/spoj-problem-2-prime-generator-prime1/#comment-1182439811</link><description>&lt;p&gt;Because suppose n = 1 and m = 20.&lt;br&gt; Now for  p = 4 your less = 0 so first j  = 0 &amp;lt; 1 so no problem but when j = 0 + 4 = 4 is &amp;gt; 1 so it will mark 4 as prime if you dont put the condition that j != p. So basically it prevents you from marking p itself as prime.&lt;/p&gt;&lt;p&gt;Hope you got it.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Saurabh_P</dc:creator><pubDate>Tue, 31 Dec 2013 11:45:41 -0000</pubDate></item><item><title>Re: SPOJ Problem 2: Prime Generator &amp;#8211; PRIME1</title><link>http://www.swageroo.com/wordpress/spoj-problem-2-prime-generator-prime1/#comment-1181659079</link><description>&lt;p&gt;and accepted in code chef with execution time 11.02 sec ,why so&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">so_what</dc:creator><pubDate>Mon, 30 Dec 2013 16:39:23 -0000</pubDate></item><item><title>Re: SPOJ Problem 2: Prime Generator &amp;#8211; PRIME1</title><link>http://www.swageroo.com/wordpress/spoj-problem-2-prime-generator-prime1/#comment-1181643326</link><description>&lt;p&gt;#YOUR SOLUTION IS WORKING IN SPOJ BUT THIS IS MY SOLUTION  BASED ON YOUR ALGORITHM BUT #NOT ACCEPTED AND GIVES TLE PLEASE LET ME KNOW WHY SO??&lt;br&gt;import time,math,sys,random&lt;/p&gt;&lt;p&gt;def seive(n,m):&lt;/p&gt;&lt;p&gt;    primes=dict()&lt;/p&gt;&lt;p&gt;    for i in xrange(0,m-n+1):&lt;/p&gt;&lt;p&gt;        primes[i]=False&lt;/p&gt;&lt;p&gt;    p=2&lt;/p&gt;&lt;p&gt;    while p*p&amp;lt;=m:&lt;/p&gt;&lt;p&gt;        less=n/p&lt;/p&gt;&lt;p&gt;        less=less*p&lt;/p&gt;&lt;p&gt;        for j in xrange(less,m+1,p):&lt;/p&gt;&lt;p&gt;            if j!=p and j&amp;gt;=n:&lt;/p&gt;&lt;p&gt;                primes[j-n]=True&lt;/p&gt;&lt;p&gt;        p=p+1&lt;/p&gt;&lt;p&gt;    #print primes&lt;/p&gt;&lt;p&gt;    s=''&lt;/p&gt;&lt;p&gt;    for i in primes:&lt;/p&gt;&lt;p&gt;        if primes[i]==False and n+i!=1:&lt;/p&gt;&lt;p&gt;            s=s+str(i+n)+'\n'&lt;/p&gt;&lt;p&gt;    print s&lt;/p&gt;&lt;p&gt;def cal():&lt;/p&gt;&lt;p&gt;    t=int(sys.stdin.readline())&lt;/p&gt;&lt;p&gt;    while t&amp;gt;0:&lt;/p&gt;&lt;p&gt;        t=t-1&lt;/p&gt;&lt;p&gt;        n,m=sys.stdin.readline().split(' ')&lt;/p&gt;&lt;p&gt;        seive(int(n),int(m))&lt;/p&gt;&lt;p&gt;cal()&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">so_what</dc:creator><pubDate>Mon, 30 Dec 2013 16:26:47 -0000</pubDate></item><item><title>Re: How to program a Gaussian Blur without using 3rd party libraries</title><link>http://www.swageroo.com/wordpress/how-to-program-a-gaussian-blur-without-using-3rd-party-libraries/#comment-1181028161</link><description>&lt;p&gt;Great, thank you!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andres</dc:creator><pubDate>Mon, 30 Dec 2013 05:01:16 -0000</pubDate></item><item><title>Re: SPOJ Problem 3442: The Last Digit &amp;#8211; LASTDIG</title><link>http://www.swageroo.com/wordpress/spoj-problem-3442-the-last-digit-lastdig/#comment-1161194885</link><description>&lt;p&gt;First reason is before doing modulo the result may overflow. Second thing, the purpose of these kinds of problems is to think and find a smart solution.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">niran</dc:creator><pubDate>Fri, 13 Dec 2013 04:44:34 -0000</pubDate></item><item><title>Re: Solving problems on SPOJ: Life, the Universe, and Everything</title><link>http://www.swageroo.com/wordpress/solving-spoj-problems-life-the-universe-and-everything/#comment-1097491925</link><description>&lt;p&gt;ur code is not working on spoj&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">harry</dc:creator><pubDate>Sat, 26 Oct 2013 10:51:02 -0000</pubDate></item><item><title>Re: Solving problems on SPOJ: Life, the Universe, and Everything</title><link>http://www.swageroo.com/wordpress/solving-spoj-problems-life-the-universe-and-everything/#comment-1071239245</link><description>&lt;p&gt;how set in php for inputs (atleast for 2 input) and output&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">pamaquant</dc:creator><pubDate>Sat, 05 Oct 2013 03:39:46 -0000</pubDate></item><item><title>Re: How to program a Gaussian Blur without using 3rd party libraries</title><link>http://www.swageroo.com/wordpress/how-to-program-a-gaussian-blur-without-using-3rd-party-libraries/#comment-1066280576</link><description>&lt;p&gt;Thanks, your article was very helpful to me.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ancurio</dc:creator><pubDate>Tue, 01 Oct 2013 14:21:34 -0000</pubDate></item><item><title>Re: Zeckendorf&amp;#8217;s Theorem &amp;#038; Simple Code Implementation</title><link>http://www.swageroo.com/wordpress/zeckendorfs-theorem-simple-code-implementation/#comment-1027412911</link><description>&lt;p&gt;great! I am now understand the Zeckendorf (even though i still confuse with the mathematical thingy in Zeckendorf theorem :p)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Vincent </dc:creator><pubDate>Tue, 03 Sep 2013 02:03:45 -0000</pubDate></item><item><title>Re: AdBlock is trying to spread aggressively with a super-bowl ad</title><link>http://www.swageroo.com/wordpress/adblock-is-trying-spread-more-aggressively-with-a-super-bowl-ad/#comment-1018920384</link><description>&lt;p&gt;Well, I definitely think that an Internet where everybody realizes that they are the people doing the rendering, and thus they are the ones that have the power to decide how things are rendered would be a laudable goal.  However, I definitely agree with you on this one.  Marketing Ad Block as a way to strip away all ads is detrimental to us all.  It needs to be marketed as a way to turn off ads if you happen to choose to.&lt;/p&gt;&lt;p&gt;I also don't want to deal with the interim time when the Internet ad supported pages is desperately trying hold on to ad revenue.  Can you imagine Youtube splicing ads into the video stream itself, or instead of banner ads a web page becomes a single, opaque object rendered server side or inside some proprietary browser extension so that the ads are not so easily extractable.  We are talking about a potentially huge step back in terms of an open web.&lt;/p&gt;&lt;p&gt;Even worse, what if the Internet went the way of television did when people started to ignore or skip commercials?  What if we had heavy product placement on the Internet?  Imagine blog posts whose topic always seem to revolve around GoDaddy...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">smithzv</dc:creator><pubDate>Tue, 27 Aug 2013 03:42:59 -0000</pubDate></item><item><title>Re: Difficult Amazon interview question &amp;#8212; Find all phrases you can build, given a set of letters.</title><link>http://www.swageroo.com/wordpress/difficult-amazon-interview-question-find-all-phrases-you-can-build-given-a-set-of-letters/#comment-972964230</link><description>&lt;p&gt;I got a better offer from facebook&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">rodrodsalazar</dc:creator><pubDate>Mon, 22 Jul 2013 22:25:32 -0000</pubDate></item><item><title>Re: Difficult Amazon interview question &amp;#8212; Find all phrases you can build, given a set of letters.</title><link>http://www.swageroo.com/wordpress/difficult-amazon-interview-question-find-all-phrases-you-can-build-given-a-set-of-letters/#comment-971396028</link><description>&lt;p&gt;And why on earth would you do that? I'm dying to know the reason.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Saurabh</dc:creator><pubDate>Sun, 21 Jul 2013 12:43:22 -0000</pubDate></item><item><title>Re: Difficult Amazon interview question &amp;#8212; Find all phrases you can build, given a set of letters.</title><link>http://www.swageroo.com/wordpress/difficult-amazon-interview-question-find-all-phrases-you-can-build-given-a-set-of-letters/#comment-970765444</link><description>&lt;p&gt;no, I did not take the job offer&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">rodrodsalazar</dc:creator><pubDate>Sat, 20 Jul 2013 17:04:13 -0000</pubDate></item><item><title>Re: HipHop VM on EC2 &amp;#8211; &amp;#8220;could not allocate 1210089471 bytes for translation cache&amp;#8221;</title><link>http://www.swageroo.com/wordpress/hiphop-vm-on-ec2-could-not-allocate-1210089471-bytes-for-translation-cache/#comment-970652212</link><description>&lt;p&gt;Looks like compiling on current micro EC2 Ubuntu 64-bit configuration is stopped by limited memory.(?).&lt;/p&gt;&lt;p&gt;Building CXX object hphp/CMakeFiles/hphp_runtime_static.dir/runtime/vm/bytecode.cpp.o&lt;/p&gt;&lt;p&gt;c++: internal compiler error: Killed (program cc1plus)&lt;/p&gt;&lt;p&gt;Although current version of hhvm seems to already have changes outlined in above post or can change related sizes by config...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">runphpdph</dc:creator><pubDate>Sat, 20 Jul 2013 14:30:54 -0000</pubDate></item><item><title>Re: Difficult Amazon interview question &amp;#8212; Find all phrases you can build, given a set of letters.</title><link>http://www.swageroo.com/wordpress/difficult-amazon-interview-question-find-all-phrases-you-can-build-given-a-set-of-letters/#comment-970634411</link><description>&lt;p&gt;You mean you work at amazon now?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Saurabh</dc:creator><pubDate>Sat, 20 Jul 2013 14:10:23 -0000</pubDate></item><item><title>Re: Little-Known Awesome Algorithms: Fenwick Trees &amp;#8211; Rapidly Find Cumulative Frequency Sums</title><link>http://www.swageroo.com/wordpress/little-known-awesome-algorithms-fenwick-range-trees-rapidly-find-cumulative-frequency-sums/#comment-946277219</link><description>&lt;p&gt;Thanks Rodeo, What Is the correct form to manipulating bits?? I don't know about that, I tried 'value &amp;amp; -value' but that didn't work for c++. Is there any command for do that, efficiently?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Joan Gerard</dc:creator><pubDate>Sat, 29 Jun 2013 10:19:32 -0000</pubDate></item><item><title>Re: Little-Known Awesome Algorithms: Fenwick Trees &amp;#8211; Rapidly Find Cumulative Frequency Sums</title><link>http://www.swageroo.com/wordpress/little-known-awesome-algorithms-fenwick-range-trees-rapidly-find-cumulative-frequency-sums/#comment-945963115</link><description>&lt;p&gt;Google for 'C++ __builtin_ctz', though the built in ctz function is much slower than just manipulating bits yourself.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">rodrodsalazar</dc:creator><pubDate>Fri, 28 Jun 2013 22:08:58 -0000</pubDate></item><item><title>Re: Little-Known Awesome Algorithms: Fenwick Trees &amp;#8211; Rapidly Find Cumulative Frequency Sums</title><link>http://www.swageroo.com/wordpress/little-known-awesome-algorithms-fenwick-range-trees-rapidly-find-cumulative-frequency-sums/#comment-945941216</link><description>&lt;p&gt;I have a cuestion man. What's the library for ctz command? how do you do that in c++??&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Joan Gerard</dc:creator><pubDate>Fri, 28 Jun 2013 21:31:48 -0000</pubDate></item></channel></rss>