From 98419fb4e82ed52cb68ed009cd5e561e85c64bda Mon Sep 17 00:00:00 2001 From: Xevion Date: Wed, 13 Nov 2019 20:48:03 -0600 Subject: [PATCH] question 30 test 01 swap variable and pass by reference --- uil/uil-practice-armstrong/test-1/EXPLANATIOn.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/uil/uil-practice-armstrong/test-1/EXPLANATIOn.md b/uil/uil-practice-armstrong/test-1/EXPLANATIOn.md index 9cf0d67..9033fe9 100644 --- a/uil/uil-practice-armstrong/test-1/EXPLANATIOn.md +++ b/uil/uil-practice-armstrong/test-1/EXPLANATIOn.md @@ -517,6 +517,10 @@ Be sure to read up on how Queues work, specifically the ordering, this can be ve ## Question 30 +This is pretty simple referencing stuff, but it gets very complicated on tests, so I recommend looking up stuff on "Pass by Value" and "Pass by reference" in Java, it's a whole topic of debate in conjunction with immutability, mutability, wrappers, primitives, objects, and more. + +Since everything here is a primitive, we can assume "pass by reference". Thus, simple math reveals that in the matrix, sub-array 1 and 2 swap via a temporary swap variable. + ## Question 31 ## Question 32