I would like to thank everyone that contributed. You guys have been a huge help.
Type: Posts; User: kratz
I would like to thank everyone that contributed. You guys have been a huge help.
Thanks for everyone's help. Based on everyone's responses, I have some semi-working code.
//Pass in 2 arrays of same size
//1 filled with random numbers other with zeros
int copies,...
I am not allowed to sort the first array
Thanks for the help but that's not quite what I need.
The thing is we aren't using STL containers or linked lists because we haven't gotten to them yet. Basically the algorithm has to use just a...
Lucky and everyone else.
Thanks for replying. I'm sorry if I was unclear. The new array can have at most n duplicates of each item. For example:
Array 1 (cannot be sorted)
19 16 17 18 17...
Hey all this is my first post on cprogramming.com as I am fairly new at C++.
I am taking a programming class and we were given an assignment that I am having trouble with.
1. The object of the...