Backend Developer Journey Day 40: LeetCode Breakthrough and Hibernate Fix

🚨 My code was fine… my configuration was the problem. Day 40 of my Backend Developer Journey — and today felt like a real developer day 🧠 LeetCode Breakthrough Solved a problem using mathematical optimization (Rotation Function) 💡 What clicked: → Reuse previous computation → Avoid recalculating entire function → Derive relation between rotations ⚡ The Real Trick 👉 Instead of O(n²), use: F(k) = F(k-1) + sum - n × last_element 🔍 Key Insight 👉 Precompute total sum 👉 Build answer iteratively 👉 Turn brute force into O(n) 🔗 My Submission: https://lnkd.in/gRWYfwKj ☕ Spring Boot Learning 🐛 Hibernate Tables Not Creating — Debugging Story Everything looked correct… but: ❌ Tables were NOT getting created 🔍 Root Causes 👉 ddl-auto not set properly 👉 Old compiled files interfering 👉 Maven build not clean ✅ Fix ✔ Set in application.yml: spring: jpa: hibernate: ddl-auto: create ✔ Cleaned previous compiled files ✔ Reinstalled dependencies ✔ Rebuilt project 🔥 Result 👉 Tables created successfully 👉 JPA repositories detected 👉 Backend working as expected 🧠 The Shift 👉 Backend issues are often hidden in config 👉 Debugging > Coding (some days 😅) 👉 Real learning happens when things break 🔗 GitHub Repo: https://lnkd.in/gwHmAZaK 📈 Day 40 Progress: ✅ Learned rotation function optimization ✅ Fixed real Hibernate issue ✅ Improved debugging mindset 💬 What’s the most frustrating config bug you’ve faced? 👇 #100DaysOfCode #BackendDevelopment #SpringBoot #Java #LeetCode #Debugging #CodingJourney

  • text

To view or add a comment, sign in

Explore content categories