Day 19 of 133
Decision trees + DSA Binary Search
Splits (Gini/entropy), pruning, why trees are high-variance.
DSA · NeetCode Binary Search
- Find Minimum IN Rotated Sorted ArrayDSA · Binary Search
Interview questions to prep
- Why does mid-vs-right comparison work but mid-vs-left can mislead with duplicates?
- How does the algorithm change if duplicates are allowed?
- Search IN Rotated Sorted ArrayDSA · Binary Search
Interview questions to prep
- How do you decide which half is sorted on each step? Walk through with a small example.
- What changes if duplicates are allowed (LC 81)?
ML · Decision trees
Interview questions to prep
- How does a decision tree decide where to split? Compare Gini vs entropy.
- Why are decision trees high-variance, and how does pruning help?
Interview questions to prep
- When does a tree-based model crush a linear model and vice versa?
- Why don't decision trees need feature scaling?
Interview questions to prep
- Compare gain-based feature importance, permutation importance, and SHAP — pros and cons.
- Why can gain-based importance be misleading when features are correlated?
References & further reading