News for hackers. Stuff that matters.
Re:Spaced Repetition by JHonaker on Saturday May 04, 2019 @02:05PM (#19828106)
I’ve been using spaced repetition to do algorithm puzzles. I find them really fun, and I’ll be looking for a job in a little less than a year. So, I thought I’d get a jumpstart on preparing.

I don’t use them to memorize the answers, but more as a cue to do the problem. I add 1-5 new cards a day. The cards aren’t facts, but actual problems. It’s been really effective so far. I can pretty easily recognize what the pieces I need to apply on novel problems much more quickly.

Re:Spaced Repetition by mrfusion on Saturday May 04, 2019 @02:34PM (#19828296)
Can you share an example card? I can’t picture what you’re doing.
Re:Spaced Repetition by c13u on Saturday May 04, 2019 @04:09PM (#19828996)
Other examples of cards that I made and found useful during my job-hunting process: https://cards.c13u.com/browse[0]

[0] Disclaimer, I made cards.c13u.com for a class project

Re:Spaced Repetition by actsof on Saturday May 04, 2019 @07:52PM (#19830161)
You copied the link incorrectly, it throws a 404. https://cards.c13u.com/browse works instead.
Re:Spaced Repetition by antman on Saturday May 04, 2019 @04:44PM (#19829266)
Probably you need to be logged in to see this
Re:Spaced Repetition by JHonaker on Saturday May 04, 2019 @02:52PM (#19828431)
Yea, I just use the types of problems that you’d see on Leetcode or any of the other code practice sites.

The one that I did this morning was:

If given the root of a binary tree, calculate the number of unival subtrees contained in the tree.

The back is usually either blank, or has a space and time complexity that I should get if I did it correctly.

It’s important to make sure you solve it at least once, and understand the solution well before you make a card of it.

Re:Spaced Repetition by degamer106 on Saturday May 04, 2019 @02:51PM (#19828415)
Are you using the ANKI method like what was suggested in the article?

Also, what kind of problems are you putting into the cards? Are there any "must-know" interview questions that we should all study and memorize?

Please share an example card.

Re:Spaced Repetition by JHonaker on Saturday May 04, 2019 @03:02PM (#19828495)
I read the article a long time ago, so I don’t remember what you mean by the ANKI method. Anki is a program that assists you by automatically serving you cards. The article is quite long, but very good.

I’ve given 3 examples in some other replies, but I’d say that it’s most beneficial to keep some common stuff in the front of your mind. Like various operations on graphs and trees, how exactly to formulate dynamic programming subproblems, etc. For that I’d say it’s better to have a lot of different problems in the deck for those types of those things, rather than memorizing definitions of DP and linked lists.

Re:Spaced Repetition by learned on Saturday May 04, 2019 @02:22PM (#19828217)
Very cool! What format/content does a typical card contain for this category of algorithm cards you use?
Re:Spaced Repetition by JHonaker on Saturday May 04, 2019 @02:56PM (#19828455)
It’s usually just a problem and sometimes a simple example I can write as a test case for correctness.

Some cards I’ve put in lately are:

Calculate the level of a binary tree with the minimal sum of its elements.

Reconstruct a binary tree given an inorder and preorder list of the nodes.

The backs are usually blank or space and time complexities that I should be able to achieve.

Re:Spaced Repetition by otras on Saturday May 04, 2019 @02:42PM (#19828365)
I did this exact method for my last round of algorithm interviewing and found it very helpful.

I also did this for various college courses I’ve taken, and I’ve found that to be tremendous for practicing and recognizing patterns.