Update 1.cpp

output

Begin...
A: 2 4 5 5 8 9

Testing Partition...
RPartioning...
IPartioning...

RPartition 1 Returned Q: 0

IPartition 1 Returned Q: 0
RPartioning...
IPartioning...

RPartition 2 Returned Q: 1

IPartition 2 Returned Q: 1
RPartioning...
IPartioning...

RPartition 3 Returned Q: 1

IPartition 3 Returned Q: 1
RPartioning...
IPartioning...

RPartition 4 Returned Q: 2

IPartition 4 Returned Q: 2
RPartioning...
IPartioning...

RPartition 5 Returned Q: 4

IPartition 5 Returned Q: 4
RPartioning...
IPartioning...

RPartition 6 Returned Q: 4

IPartition 6 Returned Q: 4
RPartioning...
IPartioning...

RPartition 7 Returned Q: 4

IPartition 7 Returned Q: 4
RPartioning...
IPartioning...

RPartition 8 Returned Q: 5

IPartition 8 Returned Q: 5
RPartioning...
IPartioning...

RPartition 9 Returned Q: 6

IPartition 9 Returned Q: 6
RPartioning...
IPartioning...

RPartition 10 Returned Q: 6

IPartition 10 Returned Q: 6
End...
Begin...
A: 1 1 5 5 7 7 9

Testing Partition...
RPartioning...
IPartioning...

RPartition 1 Returned Q: 2

IPartition 1 Returned Q: 1
RPartioning...
IPartioning...

RPartition 2 Returned Q: 2

IPartition 2 Returned Q: 2
RPartioning...
IPartioning...

RPartition 3 Returned Q: 2

IPartition 3 Returned Q: 2
RPartioning...
IPartioning...

RPartition 4 Returned Q: 2

IPartition 4 Returned Q: 2
RPartioning...
IPartioning...

RPartition 5 Returned Q: 4

IPartition 5 Returned Q: 4
RPartioning...
IPartioning...

RPartition 6 Returned Q: 4

IPartition 6 Returned Q: 4
RPartioning...
IPartioning...

RPartition 7 Returned Q: 6

IPartition 7 Returned Q: 6
RPartioning...
IPartioning...

RPartition 8 Returned Q: 6

IPartition 8 Returned Q: 6
RPartioning...
IPartioning...

RPartition 9 Returned Q: 7

IPartition 9 Returned Q: 7
RPartioning...
IPartioning...

RPartition 10 Returned Q: 7

IPartition 10 Returned Q: 7
End...