Skip to main content

20 posts tagged with "learning-journey"

View All Tags

Cracking Longest Common Subsequence: A Journey from Confusion to Clarity

· 8 min read
Mahmut Salman
Software Developer

I thought I had DP figured out. I'd solved house robber with that sweet max(rob_this_house + dp[i-2], skip_this_house) logic. I'd reversed linked lists by imagining "the rest is already solved." But when I faced Longest Common Subsequence, all my mental models fell apart.

No decision tree. No "imagine the rest" logic. No clever way to use previous answers. Just... confusion.

Here's how I finally cracked it.

Fast-Forward Merge vs Rebase: Which One Should You Use? 🤔

· 14 min read
Mahmut Salman
Software Developer

The Confusion 😕

Frontend Dev: "I just finished working on my frontend branch and want to merge it into main. Someone told me to use rebase, but when I ran git rebase main, it said 'Current branch frontend is up to date.' What does that mean? Should I use merge instead?"

Git Mentor: "Ah, this is one of the most confusing topics in Git! Let me show you the difference between fast-forward merge and rebase, and when to use each one. Your 'up to date' message actually tells us something important!"