core_templates1/collatz.scala
changeset 470 86a456f8cb92
parent 430 274c865b3878
equal deleted inserted replaced
469:48de09728447 470:86a456f8cb92
     8 
     8 
     9 
     9 
    10 //(1) 
    10 //(1) 
    11 def collatz(n: Long) : Long = ???
    11 def collatz(n: Long) : Long = ???
    12 
    12 
    13 
       
    14 //(2) 
    13 //(2) 
    15 def collatz_max(bnd: Long) : (Long, Long) = ???
    14 def collatz_max(bnd: Long) : (Long, Long) = ???
    16 
    15 
    17 //(3)
    16 //(3)
    18 def is_pow_of_two(n: Long) : Boolean = ???
    17 def is_pow_of_two(n: Long) : Boolean = ???
    19 
    18 
    20 def is_hard(n: Long) : Boolean = ???
    19 def is_hard(n: Long) : Boolean = ???
    21 
    20 
    22 def last_odd(n: Long) : Long = ???
    21 def last_odd(n: Long) : Long = ???
    23 
    22 
       
    23 
    24 }
    24 }
    25 
    25