Search results

  1. turntaker

    The Code Marathon.

    Alright I should take a break from this since I have an exam tomorrow and I haven't really studied for it. But I will be back after exams
  2. turntaker

    The Code Marathon.

    yea, but I think thats kinda cheating lol (since C probably doesn't have a method that sorts)
  3. turntaker

    The Code Marathon.

    he probably implies that I may have covered sorting algorithms, which I have.
  4. turntaker

    The Code Marathon.

    use a sorting algorithm
  5. turntaker

    The Code Marathon.

    yeah I haven't done Linked lists yet
  6. turntaker

    The Code Marathon.

    Ah ok, so i just need to sort my array and then find the average of the two middle numbers?
  7. turntaker

    The Code Marathon.

    What is the median
  8. turntaker

    The Code Marathon.

    my array is not sorted
  9. turntaker

    The Code Marathon.

    what does unsorted mean also I don't understand your given question
  10. turntaker

    The Code Marathon.

    Solution to Question 2. (if you meant the average of the two middle integers). import java.util.*; public class App { public static void main(String[] args) { ArrayList<Integer> arrayNums = new ArrayList<>(); //creating ArrayList Random randomInt = new Random(); //creating...
  11. turntaker

    The Code Marathon.

    Java is life, so much easier to read than C. (even though Java is C based) edit: actually nvm they are about the same in terms of reading difficulty lol
  12. turntaker

    The Code Marathon.

    solution to Question 2 hasn't been posted yet
  13. turntaker

    The Code Marathon.

    wait once a problem has been solved, am I allowed to post a solution still, or do I move onto the next problem
  14. turntaker

    The Code Marathon.

    Here is a Java solution for Question 1. (Uses Scanner for input) import java.util.*; public class App { public static void main(String[] args) { Scanner x = new Scanner(System.in); //creating a new scanner object int length = x.nextInt(); //sets...
  15. turntaker

    Which ethnicities/ethnicity is a NO for you?

    That's what I meant [emoji14]
  16. turntaker

    COMP1917 Exam thoughts?

    Copyrighted? Lol Not like I'm gonna make copies and sell them in an alleyway.
  17. turntaker

    COMP1917 Exam thoughts?

    Someone link me to a past exam
  18. turntaker

    The Code Marathon.

    This is a good idea. Thanks.
Top