c - Using one array print frequency of elements in array? -


Write an algorithm that is given an array of numbers, prints all the specific values ​​of A, each after its Number of events

For example, if A = & lt; 28, 1, 0, 1, 0, 3, 4, 0, 0, 3 & gt; , the algorithm is isolated from the following five lines (here is the semicolon 28 1; 2 2; 0 4; 3 2; 4 1 .

algorithm < Code> A can modify the contents of the , but no other memory can be used. Each specific value should be printed once. The values ​​can be printed in any order. < / P>



Comments

Popular posts from this blog

c# - passing input text from view to contoller with FacebookContext using Facebook app -

ios - Does Core Data autoupdate a many to many relationship on saving -

Calling a C++ function from C# by passing a string with variable size to it -