Check If All String Characters Are Unique | C Programming Example

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Such a wholesome video, covering many topics. Thank you Professor! ❤

tbeng
Автор

I think it's not necessary to calculate the length in this case. An iterator can be stopped like this:
for (i = 0; string[i] != 0; i++)
or
for (i = 0; string[i] != '\0'; i++)

upd.
if we have two iterators, then the leading one stops:
for (j = 0; string[j] != 0; j++)
and basic:
for (i = 0; string[i+1] != 0; i++)

TUZZ
Автор

I think this is a 2 by 2 comparison right?
Thank you for the Content sir, still trying to understand the algorithm though

ipadeolabamidele
Автор

Thanks, but I'll need a moment to get everything ( pointer...😅)

logos_