Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //#CLIENTSIDE
- function onCreated() {
- temp.list_1 = {7, 21, 5, 16, 14, 7};
- temp.list_2 = {8, 6, 7, 2, 4, 23, 18};
- for (temp.i = list_1.size() - 1; i >= 0; i--) {
- for (temp.j = 1; j <= i; j++) {
- if (list_1[j - 1] > list_1[j]) {
- temp.k = list_1[j - 1];
- temp.l = list_2[j - 1];
- list_1[j - 1] = list_1[j];
- list_2[j - 1] = list_2[j];
- list_1[j] = k;
- list_2[j] = l;
- }
- }
- }
- // What is the value of list_1 and list_2 at this point in execution.
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement