Interview Algorithms: Difference between revisions
Line 140: | Line 140: | ||
parents[b_root] = a_root # Attach b_root to a_root | parents[b_root] = a_root # Attach b_root to a_root | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==Dynamic Programming== | |||
DP is mostly used for Google interviews. Meta for example will not ask DP problems. You should study DP after everything else or if you've secured a Google interview. | |||
==Misc Tricks== | ==Misc Tricks== |