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

Logical error in "copying the rest of second array elements" in the Lecture 20 -> mergeSortedArray.cpp #453

Open
Tamalckb531 opened this issue Jun 18, 2023 · 0 comments

Comments

@Tamalckb531
Copy link

//copy kardo second array k remaining element ko
while(j<m) {
arr2[k++] = arr2[j++];
}

here the correct logic will be
//copy kardo second array k remaining element ko
while(j<m) {
arr3[k++] = arr2[j++];
}

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