You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I have tried your code, and I´ve noticed that he was missing some specific codes.
To test I have changed the minimum character to "a" and maximum to "z", and we can notice that is not generating a hash for a and starting at "b" when the value is "az", next one should be "aa" but is again "ab". If I move the increment guess after the comparison of the hash, the problem is on the "Z".
The text was updated successfully, but these errors were encountered:
Noticed the same thing. Becomes even more apparent when min is '0' and max is '1'. I think the problem is in the increment function and can be fixed by replacing guess[x+1] = min_char_value;
with something like
for(int m = x+1;m<guess.length;m++) {
guess[m] = min_char_value;
}
Hello,
I have tried your code, and I´ve noticed that he was missing some specific codes.
To test I have changed the minimum character to "a" and maximum to "z", and we can notice that is not generating a hash for a and starting at "b" when the value is "az", next one should be "aa" but is again "ab". If I move the increment guess after the comparison of the hash, the problem is on the "Z".
The text was updated successfully, but these errors were encountered: