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

Ch 10 / Q 1 - Sorted Merge / Input demo array is not sorted #17

Open
moudrick opened this issue Jan 30, 2020 · 0 comments
Open

Ch 10 / Q 1 - Sorted Merge / Input demo array is not sorted #17

moudrick opened this issue Jan 30, 2020 · 0 comments

Comments

@moudrick
Copy link

There is a flaw in demo example for Question 1 Sorted Merge of Chapter 10 Sorting and Searching. The demo array that is supposed to be sorted as a pre-condition is not actually sorted. This leads to the fact that the demo result is not sorted as well.

See CtCI-6th-Edition-CSharp/Ch 10. Sorting and Searching/Q10_01_Sorted_Merge.cs

Line 42: int[] b = new int[] { 1, 4, 7, 6, 7, 7 };

See main issue at the link

moudrick added a commit to moudrick/CtCI-6th-Edition-CSharp that referenced this issue Jan 30, 2020
Issue (careercup#17 - Ch 10 / Q 1 - Sorted Merge / Input demo array is not sorted)[careercup#17]
Main issue in CtCI-6th-Edition - (#191 - (Java && C#)/ Ch 10 / Q 1 - Sorted Merge / Input demo array is not sorted)[careercup/CtCI-6th-Edition#191]
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