|
Find if a given set B is a subset of another larger set A, such
that all elements are of B appear together in A (may not be in same order).
That is if B is such a subset of A then output should be the location in A
where the first element matches from B. Else print "Not a Subset".
For example-
a. A={1,5,100,6,2,9,0,4,10} B={2,6,100,9} output= 3 (i.e. third position from left) b. A=same as above
B={5,6,2,0} output= "Not a subset" ========================
The whole joy of going to Heaven depends upon the miseries and sorrows of those who are sent to Hell �... ___________ ,�� o`�, /__/ _/\_ ____/\ ```)�(��� | | | | | | | || |l����| �,.-��� �,.-�~�~�-.,� `��-. :�� �~�~�-..,� To unsubscribe : [EMAIL PROTECTED]
Yahoo! Groups Links
|
- Re: [c-prog] Q Junkie
- Re: [c-prog] Q chandan talukdar
