Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Comparing two arrays

by hippo (Bishop)
on Feb 20, 2015 at 23:13 UTC ( [id://1117384]=note: print w/replies, xml ) Need Help??


in reply to Comparing two arrays

There surely is.

  1. Loop over each value in array1
  2. For each of these loop over each value in array2
  3. Inside the two nested loops you can compare every possible pair of values. See if the value from array1 is divisible by the value from array2
  4. ...
  5. Profit!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1117384]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2024-04-19 08:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found