Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Search results

  1. Codestudent121

    Java CodingBat scoresSpecial Issue: What if the max array element is negative?

    Here's what the solution is, but I'm stuck since the max element could be negative. public int scoresSpecial(int[] a, int[] b) { return highSpecialScore(a) + highSpecialScore(b); } public int highSpecialScore(int[] a){ int max = 0; for (int i = 0; i < a.length; i++){ if (max <...
  2. Codestudent121

    Java The sorting method below feels very arbitrary. I've tried values to understand it but am still Confused. Any help/tips will be appreciated.

    The method below is intended to use an insertion sort. For example: if I had a String ArrayList of elements ("code", "computer", "area", "school"), it should sort the elements by insertion sort. I'm having a hard time understanding the logic, and have watched many videos.
Back
Top Bottom