Fastest way to create new array with length N and fill it by repeating a given array

后端 未结 0 604
天涯浪人
天涯浪人 2021-02-07 16:27

I want to allocate a new array with the length N and fill it up by repeating a given array. The interface looks like this:

 T[] repeat(T[] array, int n)         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题