We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CodinGame/Dwarfs standing on the shoulders of giants.txt
Line 36 in 0434041
perhaps adding this after the [i+1;n] loop might solve the issue like this :
for (int j = i+1; j < n; j++) { if(tmp[0] == nombre[j][1]){ compteur[i]++; tmp[0] = nombre[j][0]; }else if(tmp[1] == nombre[j][0]){ compteur[i]++; tmp[1] = nombre[j][1]; } } for (int k = i-1; k > 0; k--) { if(tmp[0] == nombre[k][1]){ compteur[i]++; tmp[0] = nombre[k][0]; }else if(tmp[1] == nombre[k][0]){ compteur[i]++; tmp[1] = nombre[k][1]; } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
CodinGame/Dwarfs standing on the shoulders of giants.txt
Line 36 in 0434041
perhaps adding this after the [i+1;n] loop might solve the issue like this :
for (int j = i+1; j < n; j++) { if(tmp[0] == nombre[j][1]){ compteur[i]++; tmp[0] = nombre[j][0]; }else if(tmp[1] == nombre[j][0]){ compteur[i]++; tmp[1] = nombre[j][1]; } } for (int k = i-1; k > 0; k--) { if(tmp[0] == nombre[k][1]){ compteur[i]++; tmp[0] = nombre[k][0]; }else if(tmp[1] == nombre[k][0]){ compteur[i]++; tmp[1] = nombre[k][1]; } }
The text was updated successfully, but these errors were encountered: