🎓How I Study AIHISA
📖Read
📄Papers📰Blogs🎬Courses
💡Learn
🛤️Paths📚Topics💡Concepts🎴Shorts
🎯Practice
📝Daily Log🎯Prompts🧠Review
SearchSettings
Daily Log | How I Study AI | How I Study AI

Daily Log

Daily records of problem solving and learning notes.

Problem LogsLearning Logs
2026-03-09·leetcode·medium·O(4^n / sqrt(n))

Generate Parentheses: Backtracking, DP Intuition, and Pitfalls

Generate all valid parentheses for n using Catalan DP and backtracking. Explains correctness, memoization, C++ code, complexity, and pitfalls.

dpbacktrackingstringdynamic-programmingbacktrackingcatalan-numbers
Read Log
2026-03-09·leetcode·medium·O(m * n)

Multi-Source BFS Solution to Rotting Oranges

Rotting Oranges ↗

Solve Rotting Oranges using multi-source BFS: enqueue all rotten cells, track minutes with a time matrix, and compute the minimal rotting time.

bfsgrapharraybreadth-first-searchmatrixbfs
Read Log
2026-03-09·leetcode·medium·O(n)

House Robber: Optimal Non-Adjacent Sum via DP

House Robber ↗

Solve House Robber via dynamic programming: a choose-or-skip recurrence in O(n) time with O(1) space. Includes C++ code, proofs, pitfalls, and variants.

dparraydynamic-programmingbottom-up-dpspace-optimization
Read Log
2026-03-09·leetcode·medium·O(n log n)

Merging Overlapping Ranges Efficiently: Merge Intervals

Merge Intervals ↗

Learn how to merge overlapping intervals efficiently with a sort-and-scan approach in O(n log n), handling touching endpoints, plus C++ code and pitfalls.

greedysortingarraysortingintervalsgreedy
Read Log
2026-03-08·leetcode·medium·O(1)

Designing an O(1) LRU Cache with Doubly Linked List

LRU Cache ↗

Build an O(1) LRU cache using a hash map and doubly linked list with sentinels. Includes clean C++ code, invariants, pitfalls, and alternatives.

data-structuredoubly-linked-listhash-maphash-tablelinked-listdesigndoubly-linked-list
Read Log