Skip to content
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

Fix the variable name in matrix multiplication problem #281

Open
jyj407 opened this issue Aug 16, 2020 · 0 comments
Open

Fix the variable name in matrix multiplication problem #281

jyj407 opened this issue Aug 16, 2020 · 0 comments

Comments

@jyj407
Copy link

jyj407 commented Aug 16, 2020

I know I am being picky. But to be honest, I really don't like people use l for varaible name meaning length, It is very easy to be misread as 1 especially for new starters. I have came accross this several times, I can tell the difference and find the problem quicker than before now. But for others purpose, we'd better fix the naming as either length or the len rather than just l. In general, I found a single char l for naming is very confusing. Thanks!

for(int l=2; l < arr.length; l++){
            for(int i=0; i < arr.length - l; i++){
                int j = i + l;
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