Title Creating an array that Contains the Numbers of Times Each Element of One Array Appears in Another Array
Catalog Type SLCItem
Persistent ID https://acos.cs.vt.edu/html/acos-pcex/acos-pcex-examples/arrays_j_search_array__68bdb308f6cc3d7a9cc0967f?index=2
Platform Name PCEX
Features
Description Construct a program that has a function that receives two arrays and creates an array that contains the number of times each element in the 2nd array appears in the 1st array. For example, if the 1st array is {1, 2, 3, 3, 4, 4, 5, 6} and the 2nd array is {3, 4, 5, 6, 7}, then the array that contains the number of times each element in the 2nd array appears in the 1st array is {2, 2, 1, 1, 0}.\nAssume that all elements in the 2nd array are unique.
Keywords
Author Mohammad Hassany
Institution University of Pittsburgh
Iframe URL https://acos.cs.vt.edu/html/acos-pcex/acos-pcex-examples/arrays_j_search_array__68bdb308f6cc3d7a9cc0967f?index=2
Protocol SPLICE
Protocol URL
License MIT
Programming Language JAVA
Natural Language en

Preview

SPLICE Output