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

Chapter 12: no CArray.js file #8

Open
404pnf opened this issue Jan 27, 2015 · 2 comments
Open

Chapter 12: no CArray.js file #8

404pnf opened this issue Jan 27, 2015 · 2 comments

Comments

@404pnf
Copy link

404pnf commented Jan 27, 2015

Either make a copy of Chap12-1.js and rename it to CArray.js or make a symbolic link. Or else codes won't run,

$ grep 'load("CArray.js")' *
Chap12-10.js:load("CArray.js")
Chap12-11.js:load("CArray.js")
Chap12-12.js:load("CArray.js");
@404pnf
Copy link
Author

404pnf commented Jan 27, 2015

Can't run Chap12-[10, 11, 12, 14].js unless

  1. copy Chap12-1.js to CArray.js
  2. copy code in Chap12-[10, 11, 12, 14].js to CArray.js and add
   this.shellsort1 = shellsort1;
   //this.shellsort = shellsort;
   this.mergeSort = mergeSort;
   this.mergeArrays = mergeArrays;

Is this expected?

I see the problem. The js file strictly mirrors what in the book. So those methods are not added to CArray.js. But one has to do all the above to make those codes run properly.

@karent
Copy link
Contributor

karent commented Jan 27, 2015

I've contacted to author to address your questions about the code examples. Hopefully we'll have an answer to your query shortly.

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

2 participants