Draw everything: my whiteboard habit for trees and graphs
I bought a cheap whiteboard and it was the best purchase of the semester. Before writing any tree or graph code, I draw the structure, then walk through the operation step by step with a marker. Why it helps: bugs in pointer-heavy code are almost always "I upd…