Advertisement
RazorBlade57

Untitled

Nov 22nd, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. Removing duplicates from an array. use hw #8 to help. method sends new array of proper size that only has original numbers. Send original array to method, receive new array.
  2.  
  3. set any duplicates in array to 0
  4. count the amount of numbers that are not 0
  5. make a new array of that size
  6. fill new array with numbers that are not 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement