Skip to content
Snippets Groups Projects
Commit 8464bacb authored by Thomas Lapp's avatar Thomas Lapp
Browse files

bugs

parent 074432ae
Branches
No related merge requests found
......@@ -5,10 +5,7 @@ public class MainLinkedListStdAddCentre {
LinkedListStd<Integer> linkedList = new LinkedListStd<Integer>();
int nbOperation = Integer.parseInt(args[0]);
for (int i = 0; i < nbOperation; i++) {
linkedList.ajout(0, i);
}
for (int i = 0; i < nbOperation; i++) {
linkedList.acces((nbOperation/2)%2==0?nbOperation/2:(int)(nbOperation/2-0.5));
linkedList.ajout(0, i/2%2==0?i/2:(int)(i/2+0.5));
}
}
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment