Skip to main content
Commonmark migration
Source Link

#Pyth, 34 33 31 29

Pyth, 34 33 31 29

Basically a translation of xnor's Python answer. I'm still not great with Pyth, so improvement suggestions are welcome.

Defines a function y to return a list of lists of integers.

L?]]1<b2smm++*kdb*k_dy-b1,1_1 

Update: Saved 2 bytes thanks to FryAmTheEggman.

Explanation:

L define a function y with argument b that returns ?*]]1<b2 [[1]] if b < 2 else s sum( m map(lambda d: m map(lambda k: ++*kdb*k_d k*d + [b] + k*-d y-b1 , y(b - 1)) ,1_1) , (1, -1)) 

#Pyth, 34 33 31 29

Basically a translation of xnor's Python answer. I'm still not great with Pyth, so improvement suggestions are welcome.

Defines a function y to return a list of lists of integers.

L?]]1<b2smm++*kdb*k_dy-b1,1_1 

Update: Saved 2 bytes thanks to FryAmTheEggman.

Explanation:

L define a function y with argument b that returns ?*]]1<b2 [[1]] if b < 2 else s sum( m map(lambda d: m map(lambda k: ++*kdb*k_d k*d + [b] + k*-d y-b1 , y(b - 1)) ,1_1) , (1, -1)) 

Pyth, 34 33 31 29

Basically a translation of xnor's Python answer. I'm still not great with Pyth, so improvement suggestions are welcome.

Defines a function y to return a list of lists of integers.

L?]]1<b2smm++*kdb*k_dy-b1,1_1 

Update: Saved 2 bytes thanks to FryAmTheEggman.

Explanation:

L define a function y with argument b that returns ?*]]1<b2 [[1]] if b < 2 else s sum( m map(lambda d: m map(lambda k: ++*kdb*k_d k*d + [b] + k*-d y-b1 , y(b - 1)) ,1_1) , (1, -1)) 
replaced http://codegolf.stackexchange.com/ with https://codegolf.stackexchange.com/
Source Link

#Pyth, 34 33 31 29

Basically a translation of xnorxnor's Python answerPython answer. I'm still not great with Pyth, so improvement suggestions are welcome.

Defines a function y to return a list of lists of integers.

L?]]1<b2smm++*kdb*k_dy-b1,1_1 

Update: Saved 2 bytes thanks to FryAmTheEggmanFryAmTheEggman.

Explanation:

L define a function y with argument b that returns ?*]]1<b2 [[1]] if b < 2 else s sum( m map(lambda d: m map(lambda k: ++*kdb*k_d k*d + [b] + k*-d y-b1 , y(b - 1)) ,1_1) , (1, -1)) 

#Pyth, 34 33 31 29

Basically a translation of xnor's Python answer. I'm still not great with Pyth, so improvement suggestions are welcome.

Defines a function y to return a list of lists of integers.

L?]]1<b2smm++*kdb*k_dy-b1,1_1 

Update: Saved 2 bytes thanks to FryAmTheEggman.

Explanation:

L define a function y with argument b that returns ?*]]1<b2 [[1]] if b < 2 else s sum( m map(lambda d: m map(lambda k: ++*kdb*k_d k*d + [b] + k*-d y-b1 , y(b - 1)) ,1_1) , (1, -1)) 

#Pyth, 34 33 31 29

Basically a translation of xnor's Python answer. I'm still not great with Pyth, so improvement suggestions are welcome.

Defines a function y to return a list of lists of integers.

L?]]1<b2smm++*kdb*k_dy-b1,1_1 

Update: Saved 2 bytes thanks to FryAmTheEggman.

Explanation:

L define a function y with argument b that returns ?*]]1<b2 [[1]] if b < 2 else s sum( m map(lambda d: m map(lambda k: ++*kdb*k_d k*d + [b] + k*-d y-b1 , y(b - 1)) ,1_1) , (1, -1)) 
added 131 characters in body
Source Link
PurkkaKoodari
  • 17.9k
  • 2
  • 37
  • 92

#Pyth, 34 33 3131 29

Basically a translation of xnor's Python answer. I'm still not great with Pyth, so improvement suggestions are welcome.

Defines a function y to return a list of lists of integers.

L?]]1<b2smm++*kd]b*k_dy]]1<b2smm++*kdb*k_dy-b1[1_1)b1,1_1 

Update: Saved 2 bytes thanks to FryAmTheEggman.

Explanation:

L define a function y with argument b that returns ?*]]1<b2 [[1]] if b < 2 else s sum( m map(lambda d: m map(lambda k: ++*kd]b*k_d++*kdb*k_d  k*d + [b] + k*-d   y-b1  , y(b - 1))   [1_1,1_1)  , [1(1, -1]1)) 

#Pyth, 34 33 31

Basically a translation of xnor's Python answer. I'm still not great with Pyth, so improvement suggestions are welcome.

Defines a function y to return a list of lists of integers.

L?]]1<b2smm++*kd]b*k_dy-b1[1_1) 

Explanation:

L define a function y with argument b that returns ?*]]1<b2 [[1]] if b < 2 else s sum( m map(lambda d: m map(lambda k: ++*kd]b*k_d k*d + [b] + k*-d   y-b1 , y(b - 1))   [1_1) , [1, -1]) 

#Pyth, 34 33 31 29

Basically a translation of xnor's Python answer. I'm still not great with Pyth, so improvement suggestions are welcome.

Defines a function y to return a list of lists of integers.

L?]]1<b2smm++*kdb*k_dy-b1,1_1 

Update: Saved 2 bytes thanks to FryAmTheEggman.

Explanation:

L define a function y with argument b that returns ?*]]1<b2 [[1]] if b < 2 else s sum( m map(lambda d: m map(lambda k: ++*kdb*k_d  k*d + [b] + k*-d y-b1  , y(b - 1)) ,1_1)  , (1, -1)) 
explanation, some golding
Source Link
PurkkaKoodari
  • 17.9k
  • 2
  • 37
  • 92
Loading
Source Link
PurkkaKoodari
  • 17.9k
  • 2
  • 37
  • 92
Loading