lundi 7 juillet 2014

Find common between two objects arrays


Vote count:

0




On the Sales web site, customers place orders for all kinds of products: business cards, t-shirts, brochures, and so on. Suppose we r Represent a product as a string containing the product's name, like "business card" or "t-shirt". Likewise, we represent a customer order as an array of products. Using your favorite programming language, write me a function that accepts two orders as arguments and outputs the products that they have in common.



asked 42 secs ago






Aucun commentaire:

Enregistrer un commentaire