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

Regarding code for Pattern 31 #1247

Open
aishwarypandey30 opened this issue Jan 13, 2024 · 0 comments
Open

Regarding code for Pattern 31 #1247

aishwarypandey30 opened this issue Jan 13, 2024 · 0 comments

Comments

@aishwarypandey30
Copy link

https://github.com/kunal-kushwaha/DSA-Bootcamp-Java/blob/325361dd2e9ab2d50bc7d2eeefada97d3d9db0d0/lectures/13-patterns/code/src/com/kunal/Main.java#L8C22-L8C22

Hello,
I am writing this to let u know that the code for pattern 31 is slightly wrong
when you are taking n=2n; the loop is running more times than it should
just change the code n=2
(n-1) the code would be correct.

Please kindly see to it. And let me know If I am wrong.

Thank you

VikasSin18 added a commit to VikasSin18/DSA-Bootcamp-Java that referenced this issue Jan 14, 2024
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