Skip to main content

New answers tagged

0 votes

Faro shuffle an array

J-uby, 45 bytes Takes curried arguments like F[n][array]. :**&(:zip|:flatten)%[:take,:drop]%(:+@|~:/&2) Try it online!
Jordan's user avatar
  • 12k
0 votes

Faro shuffle an array

Tcl, 136 bytes proc P n\ L {time {lmap a [lrange $L 0 [set h [expr [llength $L]/2]]-1] b [lrange $L $h e] {lappend K $a $b} set L $K unset K} $n set L} Try it ...
sergiol's user avatar
  • 4,224
1 vote

Number of string permutations that are palindromes

Japt, 7 bytes á â èêS Try it ...
Shaggy's user avatar
  • 45k
0 votes

Number of string permutations that are palindromes

Vyxal 3, 5 bytes ⑴/⇄⧖∑ Vyxal It Online! ...
Themoonisacheese's user avatar

Top 50 recent answers are included