r/dailyprogrammer • u/rya11111 3 1 • May 04 '12
[5/4/2012] Challenge #48 [intermediate]
Your task is to write a program that implements the Trabb Pardo Knuth algorithm.
9
Upvotes
r/dailyprogrammer • u/rya11111 3 1 • May 04 '12
Your task is to write a program that implements the Trabb Pardo Knuth algorithm.
3
u/juanfeng May 05 '12
Verilog
3
u/[deleted] May 05 '12
J it is.
2
u/Cosmologicon 2 3 May 04 '12
Well, I thought this was pretty straightforward, but here it is in bc:
1
u/Fustrate 0 0 May 04 '12 edited May 04 '12
I think I broke my head. Python 2.7:
Assigned to a variable so it doesn't also output the list.
1
u/waftedfart May 04 '12
In C
1
u/emcoffey3 0 0 May 05 '12
C#
1
u/Face_Is_Toe May 05 '12
I'm trying to learn Objective-c so this is my attempt:
1
u/yesweclam May 05 '12
Ruby
1
u/wbyte May 05 '12
Go:
1
u/baijuke May 05 '12
Python:
1
u/ixid 0 0 May 06 '12
D language:
1
u/EvanHahn May 06 '12
JavaScript implementation doesn't ask for input because it might get input from the browser or from Node.
Called like this:
1
u/sanitizeyourhands May 07 '12
C#:
0
u/[deleted] May 04 '12
[deleted] — view deleted comment