Live data from Hacker News

Show HN: Data Structures and Algorithms in JavaScript

github.com

21–30 of 41 posts

Re: Show HN: Data Structures and Algorithms in JavaScript

#21

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.

I 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."

Re: Show HN: Data Structures and Algorithms in JavaScript

#22

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!

Not to discourage this rally cry (go for it!) I found that Exericsm was a pretty good place to practice stuff: https://exercism.io/

Re: Show HN: Data Structures and Algorithms in JavaScript

#23

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.

Fyi 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.

Re: Show HN: Data Structures and Algorithms in JavaScript

#24

Earlier quoted context omitted.

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.

just 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."

This should be resolved! Could you try again?

Re: Show HN: Data Structures and Algorithms in JavaScript

#25
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!

Different ways to determine / order Least Recently Used so I guess it could be classified as an algorithm.

Re: Show HN: Data Structures and Algorithms in JavaScript

#26

Earlier quoted context omitted.

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.

Fyi 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.

Good 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 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.

Re: Show HN: Data Structures and Algorithms in JavaScript

#27

Earlier quoted context omitted.

Doesn'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.

Looking 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 , or at the bottom of any lesson like https://algodaily.com/lessons/how-to-get-better-at-coding-in...

Hmm, the subscribe button changes color, but doesn't seem to do anything. My email address ends in '.tv' if that matters.

Re: Show HN: Data Structures and Algorithms in JavaScript

#28
post #25
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!

Different ways to determine / order Least Recently Used so I guess it could be classified as an algorithm.

Recently 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/ObjectsAndD...

Post reply on HN