5 ms·
Show HN: Data Structures and Algorithms in JavaScript
- victorbojica 7y agoVery nice, tidy and educational!
- gargarplex 7y agoCan 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!
- yodon 7y agoAgreed. Sites like HackerRank are great for learning test taking but are not optimized for learning the underlying material. Would like to see modern human language learning techniques applied to small data structures and algorithms exercises.
- misiti3780 7y agoyou mean convert the book into anki flash cards ?
- sciencewolf 7y agoSmall plug-- this is what I tried to do with https://algodaily.com 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.
- Roonerelli 7y agojust tried to sign up but got the following error: "The change you wanted was rejected. Maybe you tried to change something you didn't have access to. If you are the application owner check the logs for more information."
- sciencewolf 7y agoHmm just tried to signup and seems to work on my end. Could you try again? Thanks for taking a look!
- rapfaria 7y agoDoesn't work here as well. Also, do you really need me to signup with a password? These days I'm skeptical of putting passwords out there, and it's just a mailing list.
- sciencewolf 7y agoLooking into it now! And definitely do not need a password. You only need a password if you want an account to save your progress. If you just want to sign up for the mailing list, you can do so on the popover, at the bottom of https://algodaily.com/sample_newsletter https://algodaily.com/sample_newsletter, or at the bottom of any lesson like https://algodaily.com/lessons/how-to-get-better-at-coding-interviews https://algodaily.com/lessons/how-to-get-better-at-coding-in...
- cellularmitosis 7y agoHmm, the subscribe button changes color, but doesn't seem to do anything. My email address ends in '.tv' if that matters.
- k14e 7y agoHey I'm also interested in this app, sounds like a great idea! However I experienced the same issue trying sign up just right now.
- sciencewolf 7y agoThis should be resolved! Could you try again?
- cellularmitosis 7y agoI just tried signing up but I'm getting an error. "The change you wanted was rejected. Maybe you tried to change something you didn't have access to. If you are the application owner check the logs for more information."
- jorblumesea 7y agoFyi if you're going to handle any kind of account signup you should be running in TLS/SSL. I know this is just algo practice but these are best security practices. Also, I don't see how this is any different from leetcode/hackrank etc. You just support less languages. Your first question is a "island" style problem which isn't a CS algo question, it's just a brainteaser like leetcode often gives you.
- sciencewolf 7y agoGood points! 1 - It does have TLS/SSL, just changed the referring link to https and redirecting all http to https 2 - That's a fair assessment, check out https://algodaily.com/challenges/validate-palindrome https://algodaily.com/challenges/validate-palindrome for a sense of how it differs: a) the step-through visualization button helps you know what's going on at each step, b) the trivia style questions help you "piece together" the solution before answering it fully, and c) each walkthrough walks you through the actual solution step by step, in plain English.
- esturk 7y ago"Reverse a string" is actually one of the hardest interview questions to implement.
- panda88888 7y agoLol. This is so true unless the string is limited to fixed length encodings only, ie ASCII.
- admerox 7y agoThat’s a great idea. I’ll look into it.
- marceloabsousa 7y agoI'm interested! I created an issue at https://github.com/marcelosousa/million-dollar-ideas/issues/2 https://github.com/marcelosousa/million-dollar-ideas/issues/... where we could start a discussion.
- codezero 7y agoNot to discourage this rally cry (go for it!) I found that Exericsm was a pretty good place to practice stuff: https://exercism.io/ https://exercism.io/
- brianzelip 7y agoOff topic, but nice use of `<details>` & `<summary>` elements in the README!
- flanbiscuit 7y agoright?! I love using that in Readmes!
- bsiddhant 7y agoThe relationship map is neat. A quick reverse-image search of the logo pointed me to the visualization tool https://kumu.io/ https://kumu.io/
- poyu 7y agoI think one of the point of using Markdown is that you can read it unformatted. Using `<details>` & `<summary>` kinda breaks that mentality don't you think?
- shakna 7y agoThose elements are fairly semantic though, aren't they? Making reading them unformatted still easy?
- x0hm 7y agoHmm, it seems like you made this repo to sell a book.
- sa-mao 7y agoPretty cool!
- m10i 7y agoI 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!
- dev1n 7y agoDifferent ways to determine / order Least Recently Used so I guess it could be classified as an algorithm.
- diegoperini 7y agoRecently there was an interesting post about a similar topic posted here. It was a fun read. I'm not affiliated with the author in any way. Link: https://blog.cleancoder.com/uncle-bob/2019/06/16/ObjectsAndDataStructures.html https://blog.cleancoder.com/uncle-bob/2019/06/16/ObjectsAndD...
- manigandham 7y agoYou can store the items in any kind of data structure. Figuring out the LRU items is the major concern, and that's an algorithm.
- Unbeliever69 7y agoFor comparison. https://github.com/trekhleb/javascript-algorithms/blob/master/README.md https://github.com/trekhleb/javascript-algorithms/blob/maste...
- guessmyname 7y agoOff 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 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.
- revx 7y agoI 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!
- adriansky 7y agoThanks for reading the book and commenting here! Could you please open an issue with the typos https://github.com/amejiarosario/dsa.js-data-structures-algorithms-javascript/issues 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.
- revx 7y agoSorry, 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...
- adriansky 7y agoThe 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-algorithms-javascript/blob/master/book/content/part01/algorithms-analysis.asc 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.
- revx 7y agoI 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.