Search:

Type: Posts; User: Codestudent121

Search: Search took 0.10 seconds.

  1. Re: How do I find the mode in a list when values of similar frequencies mean that there is no mode?

    I have questions on sorting algorithms, traversing 2d arrays to print the sums, moving elements around, and understanding the super keyword/is a-has a relationship/class casting. These areas are...
  2. How do I find the mode in a list when values of similar frequencies mean that there is no mode?

    My logic in this program was to compare values and store the values with the highest frequencies using maxFreq. If I have two of the same highest frequencies, then the computer should display "No...
  3. Re: What is the logic behind sorting an array list in this algorithm?

    Thanks so much for your help! You made me realize that I need the second loop to simultaneously compare 2 values in the array and move them around. Also, how do I do a selection sort on an ArrayList...
  4. Re: What is the logic behind sorting an array list in this algorithm?

    Thanks. I've tried tracing loops, and kinda get it, but I still struggle to get why I need two loops instead of one. Is it possible to do an insertion sort with one loop?
  5. What is the logic behind sorting an array list in this algorithm?

    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 into...
Results 1 to 5 of 5