Advertisement
Guest User

Question

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