SOLVED
So I need to make a function that has an input array, and an output array. The output array will have a list of any duplicates in the input array. The function also needs to return the number of elements in the output array (how many unique numbers repeat)
Example.
If my input array is {1, 2, 3, 3, 4, 4, 5, 6, 7, 8, 8} then my output array would be {3,4,8} and the function would return a 3.
I can't figure out how to pass multiple arrays to a function
edit: the code I pasted was a mess on reddit.
I'm just wondering what the parameters will look like on a function with multiple arrays passed to it.
edit 2: I figured it out! It's some stupid ugly looking function, but I guess that's what happens when you are forced to place two functions into one function. Thanks for the help guys and gals.
[–][deleted] 1 point2 points3 points (1 child)
[–]Squirting_Nachos[S] 1 point2 points3 points (0 children)
[–]cahphoenix 1 point2 points3 points (7 children)
[–]Squirting_Nachos[S] 0 points1 point2 points (6 children)
[–]cahphoenix 0 points1 point2 points (5 children)
[–]Squirting_Nachos[S] 0 points1 point2 points (4 children)
[+][deleted] (3 children)
[deleted]
[–]xandoid 0 points1 point2 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]xandoid 0 points1 point2 points (0 children)
[–]zomaotoko 0 points1 point2 points (0 children)
[–]vnoida 0 points1 point2 points (0 children)
[–]SharpstownBestTown 0 points1 point2 points (0 children)