Which one is more efficient : List or int[]

后端 未结 6 1130
伪装坚强ぢ
伪装坚强ぢ 2020-12-09 08:30

Can someone tell me which one is more efficient between List and int[]. Because I am working on a project and as you might know efficien

6条回答
  •  有刺的猬
    2020-12-09 09:03

    List uses an array internally, so using an array (correctly) would always be more (or atleast as) efficient.

提交回复
热议问题