Comment detail

LL Golf Hole 5 - 最上位の桁を数え上げる (Nested Flatten)
1
2
3
4
5
def max = args[0].toInteger()
(0..max).collect{
    def num = it.toString()
    num[0] + "0" * (num.size()-1)
}.unique().each{ println it }

Index

Feed

Other

Link

Pathtraq

loading...