Afrikaans
Akan
Albanian
Amharic
Arabic
Armenian
Azerbaijani
Basque
Belarusian
Bemba
Bengali
Bihari
Bosnian
Breton
Bulgarian
Cambodian
Catalan
Cebuano
Cherokee
Chichewa
Chinese (Simplified)
Chinese (Traditional)
Corsican
Croatian
Czech
Danish
Dutch
English
Esperanto
Estonian
Ewe
Faroese
Filipino
Finnish
French
Frisian
Ga
Galician
Georgian
German
Greek
Guarani
Gujarati
Haitian Creole
Hausa
Hawaiian
Hebrew
Hindi
Hmong
Icelandic
Igbo
Indonesian
Interlingua
Irish
Italian
Japanese
Javanese
Kannada
Kazakh
Kinyarwanda
Kirundi
Kongo
Korean
Krio (Sierra Leone)
Kurdish
Kurdish (Soranรฎ)
Kyrgyz
Laothian
Latin
Latvian
Lingala
Lithuanian
Lozi
Luganda
Luo
Luxembourgish
Macedonian
Malagasy
Malay
Malayalam
Maltese
Maori
Marathi
Mauritian Creole
Moldavian
Mongolian
Myanmar (Burmese)
Montenegrin
Nepali
Nigerian Pidgin
Northern Sotho
Norwegian
Norwegian (Nynorsk)
Occitan
Oriya
Oromo
Pashto
Persian
Polish
Portuguese (Brazil)
Portuguese (Portugal)
Punjabi
Quechua
Romanian
Romansh
Runyakitara
Russian
Samoan
Scots Gaelic
Serbian
Serbo-Croatian
Sesotho
Setswana
Seychellois Creole
Shona
Sindhi
Sinhalese
Slovak
Slovenian
Somali
Spanish
Spanish (Latin American)
Sundanese
Swahili
Swedish
Tajik
Tamil
Tatar
Telugu
Thai
Tigrinya
Tonga
Tshiluba
Tumbuka
Turkish
Turkmen
Twi
Uighur
Ukrainian
Urdu
Uzbek
Vietnamese
Welsh
Wolof
Xhosa
Yiddish
Yoruba
Zulu
Hi, ladies and gentlemen, and welcome to another video in our amazing programming course.
And in this exercise, what I would like to ask you to do is simply to create two programs okay.
They should not be very complicated, but still they are kind of nice to practice.
So these two programs are going to consist of two parts.
The first program is going that you are going to develop is a program that all he does is simply eat
prince, all the unique elements in an array to the screen.
So for any given array that you will get, OK, let's say you created just some program with, let's
say, 10 values.
So your task is to iterate over all of the elements of this array and ask yourself if this element is
unique or not.
If it is unique, printed, if it's not unique, then do not print it.
So for example, let's say you have something like that.
Okay, so let's say you've got an array of values five seven three four five six eight nine, I don't
know eight and then goes like three.
So you ask yourself a simple question is this five a year?
And in any place here?
Else?
Yes, it is.
So we do not brain dead since it's not unique.
But on the other hand, seven is a value that appears only here.
So that's a unique value.
That's why we will print it and so on and so forth.
So for any given array, you will need to print all of the unique elements.
The second part for this exercise may be done in two different programs.
Or maybe it can also be done in just one program.
Well, that depends.
OK, well, we'll see what we will do in the solution.
You can do it in both of them in just one exercise and one program.
You can do it in two different programs.
I'm probably I will combine the solution to be in just one program.
So then the second part is to count the total number of unique elements in an array.
So first of all, we printed out all of the elements.
But meanwhile, we also created some counter to count the number of unique elements in the array.
OK, so that's what we are going to do and basically, that's what you are going to do.
So my recommendation is before moving forward trying to solve this exercise in your realm, try to think
about what should be used here, what loops, what conditions and what everything else should be used
here.
So, yeah, so there this way, you will be able to solve it on your own.
And once you've tried and you see some success or maybe you something didn't happen to be so successful,
you can always move on to the next video, which is not mandatory, but it's here to assist you and
let you see if you are doing quite well.
So good luck and I'll see you in the solutions video by.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.