https://www.youtube.com/watch?v=GBuHSRDGZBY
This video from CS Dojo shows some real steps he took to solve problems. It was really helpful to see how these could strategies could be applied to a real problem.
Here are the steps:
Tip #1: Come up with a brute-force solution - 1:23
Tip #2: Think of a simpler version of the problem - 2:34
Tip #3: Think with simpler examples -> try noticing a pattern - 5:54
Tip #4: Use some visualization - 10:10
Tip #5: Test your solution on a few examples - 15:09
#3 and #4 were almost the same, he used pretty much the same matrix for both. The matrix he made turned out to be the visualization. But, there was a bit more sorting done so it *was* actually a bit better, even though the concept was essentially the same.
Anyway, CS Dojo really nailed this one.
No comments:
Post a Comment