Are vectors better than arrays? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 2

Are vectors better than arrays?

22nd Feb 2019, 9:51 AM
Sandeep - avatar
3 ответов
+ 2
Dont think so cmon. But, if you need vector - use it, if no - use array. For different task different solution
24th Feb 2019, 6:59 AM
Shadowside - avatar
+ 2
If you can't use Array use ArrayList. Forget about Vector.
6th Mar 2019, 10:29 PM
vectors are dynamically sized, which is a major advantage over arrays. it always depends on what you want to do. if you can't use arrays to solve a problem then use vectors.
22nd Feb 2019, 10:36 AM
Bahhaⵣ - avatar