@above : correction...
while(MaxH is not empty)
{
if (Top(MaxH) < currentStrInd) // *4(index of 9) < 2 * ->move
to else if condition
pop(Top(MaxH)) ;
else if (A[Top(MaxH)] - A[Top(MinH)] <= K) --> *9-1 <= 8* TRUE
.....break this loop.
break;
}
--
You received this message because you are subscribed to the Google Groups
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/algogeeks?hl=en.