def ancestors
ancestors = []
x = parent
...
Ruby Recurrence loops
by Kartik Agaram,
February 21, 2011 01:06,
3 refactorings
Ruby On Stable sort in ruby
by Kartik Agaram,
December 16, 2009 10:25
Yes, I know what && does, a...
Ruby On Stable sort in ruby
by Kartik Agaram,
December 15, 2009 05:24
Beautiful and educational. ...
Lisp On Lexicographically next perm...
by Kartik Agaram,
October 09, 2007 01:43
Nice!
1. How is the 'on' l...
; 5*O(n)
(defun next-lex (a)
(let* ((r (reverse a))
...
Lisp Lexicographically next perm...
by Kartik Agaram,
October 04, 2007 00:19,
12 refactorings
Given a list of numbers, ge...
Is there a one-liner to rep...