Skip to content

Unnecessary Loop #551

New issue

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

Closed
ashwek opened this issue Oct 29, 2018 · 0 comments
Closed

Unnecessary Loop #551

ashwek opened this issue Oct 29, 2018 · 0 comments

Comments

@ashwek
Copy link
Member

ashwek commented Oct 29, 2018

Matrix=[[0 for x in range(N)] for x in range(N)]
Sol=[[0 for x in range(N)] for x in range(N)]
for i in range(1,N):
Matrix[i][i]=0

Line 12 creates a NxN Matrix that contains 0. So there is no need for Line 14-15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant