mirror of
https://github.com/Xevion/contest.git
synced 2025-12-10 08:06:49 -06:00
question 26/29 add .java file link
This commit is contained in:
@@ -441,6 +441,10 @@ Matches!
|
|||||||
|
|
||||||
This is a rather long problem, so let's split it up into parts.
|
This is a rather long problem, so let's split it up into parts.
|
||||||
|
|
||||||
|
Also, see the relevant .java file created custom for this question.
|
||||||
|
|
||||||
|
[question26.java](./question26.java)
|
||||||
|
|
||||||
### Class X
|
### Class X
|
||||||
|
|
||||||
Class X is a implementation of the Comparable Interface, and is essentially a method for comparing Strings when sorted. Focus on the `compareTo` method.
|
Class X is a implementation of the Comparable Interface, and is essentially a method for comparing Strings when sorted. Focus on the `compareTo` method.
|
||||||
@@ -515,6 +519,10 @@ q.peek();
|
|||||||
|
|
||||||
Be sure to read up on how Queues work, specifically the ordering, this can be very confusing and it will help to learn this, along with Comparators & Collections in general.
|
Be sure to read up on how Queues work, specifically the ordering, this can be very confusing and it will help to learn this, along with Comparators & Collections in general.
|
||||||
|
|
||||||
|
Take a look at the relevant java file to test it yourself!
|
||||||
|
|
||||||
|
[question29.java](./question29.java)
|
||||||
|
|
||||||
## Question 30
|
## 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.
|
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.
|
||||||
|
|||||||
Reference in New Issue
Block a user