Selasa

Array Unik


Not really long post on my favorite blog. Miss all of you equally. This time I will share about the unique array. What I mean by an array of unique? I mean that is an array that is displayed is the number that has no similarity of numbers in the input data. Sorry if my language covered. Hehehe ...
Immediately, at its core. As an illustration,
for example we will enter 4 data arrays of 1,3,3,5. Then the numbers will be displayed at only 1 and 5. It is called with an array of unique.
Have now towards the crime scene. We will make the function sebegai follows:


Here I use the variable C to help detect an array of unique. At each examination found no similar array data then the value of c will be increased by one. So we get that if the value of C == 0 then the data is a unique data. After that it will be directly printed.
You all can develop a program with better. This is just for reference only. For programs running that are ready can more clearly let you download memalui link below:
C + + program
 Java Program
A few old friends, hopefully be able to let go of the miss. Hopefully useful!

Tidak ada komentar:

Posting Komentar