|
|
# Tips til Semesteroppgave 1
|
|
|
|
|
|
## General Pro tips
|
|
|
|
|
|
* In A3 'Bedre gulrøtter', we want you to write down what would be required to get Carrot to do something at each turn, but you do not need to implement this in the code (this would make the rest of the assignment more difficult).
|
|
|
* In assignments where there are multiple steps, you do not hand in partial solutions: just handing in the final code is enough. If you do go for crazy experiments in part C, you do need to save and submit part B first.
|
|
|
* In B3, instead of inserting items in sorted order as suggested in the text, you can also insert at the end and sort the whole list afterwards by using [java.util.Collections.sort(list)](https://docs.oracle.com/javase/7/docs/api/java/util/Collections.html#sort(java.util.List)), but then you would need to reverse the order afterwards.
|
|
|
|
|
|
## Testing
|
|
|
|
|
|
En del vanlige feil lar seg best avsløre med testing.
|
... | ... | |