Comment detail

LL Golf Hole 6 - 10進数を2進数に基数変換する (Nested Flatten)

出力フォーマットにこだわらなければintToBts()だけで変換可能です。

1
d2b <- function(n) paste(as.integer(rev(intToBits(n:n))), collapse="")

Index

Feed

Other

Link

Pathtraq

loading...