Please do not double post your question.
Threads merged.
ublic static List<List<Integer>> getSubSequencesAscendentOrder(Iterator<Integer> it)
{
// THIS IS THE METHOD TO IMPLEMENT ...
Type: Posts; User: jps
Please do not double post your question.
Threads merged.
ublic static List<List<Integer>> getSubSequencesAscendentOrder(Iterator<Integer> it)
{
// THIS IS THE METHOD TO IMPLEMENT ...
public static List<List<Integer>> getSubSequencesAscendentOrder(Iterator<Integer> it)
{
// THIS IS THE METHOD TO IMPLEMENT
}What have you tried here so far?
What happened...
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...
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...