Simplify implementation pattern - remove heavy performance analysis

- Removed formal PERFORMANCE NOTE section (too academic)
- Integrated performance tips into HINTS when relevant
- Keep focus on practical implementation guidance
- Less intimidating for students while still teaching good practices
- Performance considerations only when they really matter
This commit is contained in:
Vijay Janapa Reddi
2025-09-18 14:01:51 -04:00
parent 34892f3a3b
commit 248faa3cdf

View File

@@ -124,13 +124,8 @@ def method_name(self, params):
HINTS: # <- OUTSIDE solution block!
- Use np.function() for [specific reason why]
- Remember to handle [edge case] because [why it matters]
- Consider memory: [what to think about for efficiency]
- Check shape compatibility to avoid [common error]
PERFORMANCE NOTE: # <- OUTSIDE solution block!
- Time complexity: O(?) - think about [what drives complexity]
- Space complexity: O(?) - consider [what uses memory]
- Bottleneck: [Common performance issue to avoid]
- Performance tip: [only if relevant - e.g., "avoid creating copies"]
"""
### BEGIN SOLUTION
# Complete implementation with comments explaining key decisions