swift Kolakoski数列

//: Playground - noun: a place where people can play

import UIKit


var n = 30;//求Kolakoski数列第n项的值
var set1 = [2,1,3,1];
var arr = Array();

func add1(element:Int,times:Int){
    for _ in 0..

你可能感兴趣的:(swift Kolakoski数列)