Live data from Hacker News

Show HN: Data Structures and Algorithms in JavaScript

github.com

31–40 of 41 posts

Re: Show HN: Data Structures and Algorithms in JavaScript

#31
post #13

I find it interesting that you consider an LRU Cache an 'algorithm' rather than a 'Data Structure'. I was just curious if you could explain that? Great stuff though!

You can store the items in any kind of data structure. Figuring out the LRU items is the major concern, and that's an algorithm.

Re: Show HN: Data Structures and Algorithms in JavaScript

#32
Off Topic: GitHub has so many navigation bars nowadays. Just look at the incorrect overflow caused by the overlapping project name and the buttons on the side: https://i.imgur.com/iXCgXYH.png . I don’t need to be an expert in UI/UX to know the GitHub UI is cluttered with an unnecessary amount of buttons. I can predict a redesign in less than a year or so, mark my words.

Re: Show HN: Data Structures and Algorithms in JavaScript

#34
I bought the book, and so far it's a good overview of big-O notation. However, I'm halfway through the first chapter and I've already found a handful of typos. I commend OP for taking the risk and self-publishing but please have someone proofread your work before you start selling it!

Re: Show HN: Data Structures and Algorithms in JavaScript

#35
post #33

Off topic, but nice use of ` ` & ` ` elements in the README!

I think one of the point of using Markdown is that you can read it unformatted. Using ` ` & ` ` kinda breaks that mentality don't you think?

Those elements are fairly semantic though, aren't they? Making reading them unformatted still easy?

Re: Show HN: Data Structures and Algorithms in JavaScript

#36

Can you turn this into an interactive thing like Duolingo where you grind through the exercises? Much needed in the developer community... PS. If anyone else is interested in building this, happy to collab!

Small plug-- this is what I tried to do with https://algodaily.com - going from the easiest algorithms (like "Reverse a String") all the way to Union-Find, while sprinkling implementations of BST, graphs, etc. along the way.

"Reverse a string" is actually one of the hardest interview questions to implement.

Re: Show HN: Data Structures and Algorithms in JavaScript

#37
post #34

I bought the book, and so far it's a good overview of big-O notation. However, I'm halfway through the first chapter and I've already found a handful of typos. I commend OP for taking the risk and self-publishing but please have someone proofread your work before you start selling it!

Thanks for reading the book and commenting here! Could you please open an issue with the typos https://github.com/amejiarosario/dsa.js-data-structures-algo... or create a pull request with fixes? I'll be more than happy to go over them and fix/merge them. I've spent weeks proofreading the material, but apparently, some slipped through the cracks. Thanks again for taking the time.

Re: Show HN: Data Structures and Algorithms in JavaScript

#38
post #34

I bought the book, and so far it's a good overview of big-O notation. However, I'm halfway through the first chapter and I've already found a handful of typos. I commend OP for taking the risk and self-publishing but please have someone proofread your work before you start selling it!

Thanks for reading the book and commenting here! Could you please open an issue with the typos https://github.com/amejiarosario/dsa.js-data-structures-algo... or create a pull request with fixes? I'll be more than happy to go over them and fix/merge them. I've spent weeks proofreading the material, but apparently, some slipped through the cracks. Thanks again for taking the time.

Sorry, but since the book itself isn't open source, I'm not going to do your editing for free. There's plenty of paid editor sites out there. If you give me co-author credit and a slice of sales, though...

Re: Show HN: Data Structures and Algorithms in JavaScript

#39
post #38

Earlier quoted context omitted.

Thanks for reading the book and commenting here! Could you please open an issue with the typos https://github.com/amejiarosario/dsa.js-data-structures-algo... or create a pull request with fixes? I'll be more than happy to go over them and fix/merge them. I've spent weeks proofreading the material, but apparently, some slipped through the cracks. Thanks again for taking the time.

Sorry, but since the book itself isn't open source, I'm not going to do your editing for free. There's plenty of paid editor sites out there. If you give me co-author credit and a slice of sales, though...

The book is open-source! All the book's chapters and exercises are open to anybody to see and edit. E.g. First chapter is here: https://github.com/amejiarosario/dsa.js-data-structures-algo.... The offline formats (PDF, ePub, Mobi) are there for convenience (and to solve the limited support Github has for asciidoc's `include` directives) but all the text/code is open.

Re: Show HN: Data Structures and Algorithms in JavaScript

#40
post #38

Earlier quoted context omitted.

Sorry, but since the book itself isn't open source, I'm not going to do your editing for free. There's plenty of paid editor sites out there. If you give me co-author credit and a slice of sales, though...

The book is open-source! All the book's chapters and exercises are open to anybody to see and edit. E.g. First chapter is here: https://github.com/amejiarosario/dsa.js-data-structures-algo... . The offline formats (PDF, ePub, Mobi) are there for convenience (and to solve the limited support Github has for asciidoc's `include` directives) but all the text/code is open.

I apologize for my snark! You're right, and thank you for releasing this open source :)

To attempt to excuse myself, it's not obvious on mobile that the book is included in the repo.

Cheers, then, I'll open a PR.

Post reply on HN