Common list elements: Difference between revisions

Content added Content deleted
m (→‎{{header|REXX}}: added some wording to the REXX section header.)
m (added whitespace.)
Line 2: Line 2:
Given an integer array '''nums''', find the common list elements.
Given an integer array '''nums''', find the common list elements.



For example:
;Example:
<br> '''nums''' = [2,5,1,3,8,9,4,6], [3,5,6,2,9,8,4], [1,3,7,6,9]
<br> '''output''' = [3,6,9]
'''nums''' = [2,5,1,3,8,9,4,6], [3,5,6,2,9,8,4], [1,3,7,6,9]

'''output''' = [3,6,9]
<br><br>
<br><br>