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 Sponsor
ADVERTISEMENT
click here
Web Bug from http://us.adserver.yahoo.com/l?M=315388.5526708.6599542.3001176/D=groups/S=:HM/A=2372354/rand=848207851


Yahoo! Groups Links

Reply via email to