@ Arun By, "arr[i].val" I meant the value stored in i-th position and not the valid/invalid bit. So I'm not making any assumption related to storing of valid numbers in contiguous positions.
Guess I should have written "arr[i].value" as "val" is common to both "value" as well as "valid". --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/algogeeks -~----------~----~----~----~------~----~------~--~---