Search:

Type: Posts; User: jps

Search: Search took 0.07 seconds.

  1. Replies
    9
    Views
    1,766

    Re: Problem ordering nested collections

    Please do not double post your question.
    Threads merged.


    ublic static List<List<Integer>> getSubSequencesAscendentOrder(Iterator<Integer> it)
    {
    // THIS IS THE METHOD TO IMPLEMENT ...
  2. Replies
    9
    Views
    1,766

    Re: Problem ordering nested collections

    public static List<List<Integer>> getSubSequencesAscendentOrder(Iterator<Integer> it)
    {
    // THIS IS THE METHOD TO IMPLEMENT
    }What have you tried here so far?
    What happened...
  3. Replies
    9
    Views
    1,766

    Re: Problem ordering nested collections

    The method signature of method2 shows an Iterator<Integer> as the parameter
    Where will you get an Iterator<Integer>?
    What happens if you sort the array before the first method runs? What is the...
  4. Replies
    9
    Views
    1,766

    Re: Problem ordering nested collections

    Welcome PauloSotto

    If the desired outputs are:
    1) [[10, 20, 30], [12, 13], [8], [1, 2, 3]]
    and:
    2) [[1, 2, 3], [8], [10, 20, 30], [12, 13]]
    ...output 2 looks like output 1 sorted by the first...
Results 1 to 4 of 4