Skip to content

Conversation

@Pazuzu66
Copy link

@Pazuzu66 Pazuzu66 commented Oct 4, 2022

He Realizado los unit Test de dynamic array list


size = (int) (size * .40) + size;
int temp[] = new int[size];
for (int i = 0; i < arr.length; i++) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excelente trabajo, puede checar si tambien Arrays.copyOf te reduce las lineas de codigo en este metodo


size = newSize;
int temp[] = new int[size];
for (int i = 0; i < arr.length; i++) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Igual, checa si Arrays.copyOf podria funcionarte aqui

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants