News for hackers. Stuff that matters.
Re:Python coding interview challenges by recursive on Monday April 03, 2017 @12:04PM (#14023908)
I couldn't resist.

    add = lambda a, b: add(a ^ b, (a & b) << 1) if b else a
Re:Python coding interview challenges by recursive on Monday April 03, 2017 @03:22PM (#14026175)
And if you need to handle negatives:

    def add(a, b):
        while a and b:
            if a ^ b < 0: (a, b) = (a & ~b, b & ~a)
            (a, b) = (a ^ b, (a & b) << 1)
        return a or b