Altantur/algorithms

how is that?

Closed this issue · 1 comments

https://github.com/Altantur/algorithms/blob/master/basics/problem-41/code_cpp/uniq_digits_solution1.cpp

int digit[3];

for (digit[0] = 1; digit[0] < 10; digit[0]++)
for (digit[1] = 0; digit[1] < 10; digit[1]++)
for (digit[2] = 0; digit[2] < 10; digit[2]++)
if (digit[1] != digit[2] && digit[10 != digit[1] && digit[0] != digit[2])
cout << digit[0] << digit[1] << digit[2] << " ";

Fixed and cleaned in THIS commit, thanks!