LeetCode Progress: 3 Problems Solved

Day 115 🚀 | LeetCode Progress Solved 3 problems today 💪 📌 Problem 1: First Bad Version (#278) 👉 Binary search approach ✅ 👉 Efficiently finds the first bad version in O(log n) 👉 Key trick: mid = left + (right - left)/2 to avoid overflow 📌 Problem 2: Set Matrix Zeroes (#73) 👉 Mark rows & columns using boolean arrays 👉 Two-phase approach ensures in-place zeroing 👉 Time: O(m*n), Space: O(m+n) 📌 Problem 3: Reshape the Matrix (#566) 👉 Map original matrix elements to new r x c matrix 👉 Row-wise filling with careful index tracking 👉 Handles invalid reshape by returning original matrix Consistency builds mastery. Every problem solved = step closer to expertise 🚀 #Day115 #LeetCode #DSA #Java #ProblemSolving #CodingJourney #GeekStreak

To view or add a comment, sign in

Explore content categories