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

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -