@Sunny: I think you are taking the case that the numbers in the b array are stored from 0 to m-1 which might not be the case, the numbers may well be distributed in the entire array from 0 to 2m-1 with spaces between them, in that case we need to shift the array elements of b to the end and then start comparing. Please correct me if I am wrong.
-- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To view this discussion on the web visit https://groups.google.com/d/msg/algogeeks/-/wwDFXBoeAWoJ. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.