News for hackers. Stuff that matters.
Re:Calculate n + 1 without using + or - or * or / by icebraining on Saturday July 02, 2011 @11:41PM (#2723017)
I have the proper Enterprise version:

    def increment(a):
        import urllib2
        url = "http://www.html2xml.nl/Services/Calculator/Version1/Calculator.asmx/Add?a=%d&b=1" % a       
        result = urllib2.urlopen(url).read() 
        from xml.dom.minidom import parseString
        result = parseString(result)
        return int(result.getElementsByTagName('int')[0].childNodes[0].data)
Re:Calculate n + 1 without using + or - or * or / by namank on Sunday July 03, 2011 @11:02AM (#2723792)
I'm pretty sure that's not a valid solution. Its the same as using Math.sum(). While it evaluates your resourcefulness, the point of the question, I think, is to figure out your knowledge and creative thinking