🚀 Day 20 / 180 – DSA with Java 🚀 📘 Topic Covered: Dynamic Programming (Fibonacci Pattern) 🧩 Problem Solved: Climbing Stairs Problem: Given n steps, where you can climb either 1 or 2 steps at a time, determine the total number of distinct ways to reach the top. Approach: Identified this as a Fibonacci-pattern problem. Used an iterative dynamic programming approach by storing only the last two computed values, reducing space complexity while maintaining O(n) time efficiency. Key Learning: ✔️ Recognizing DP patterns in simple problems ✔️ Optimizing space from O(n) to O(1) ✔️ Avoiding recursion for better performance If you’re also preparing for DSA, let’s connect and learn together 🤝 #DSA #Java #180DaysOfCode #LearningInPublic #DynamicProgramming #ProblemSolving #Consistency
Java DSA Day 20: Climbing Stairs with Dynamic Programming
More Relevant Posts
-
💻 Day 10 – Understanding Abstraction in Java Today I explored one of the core pillars of Object-Oriented Programming: Abstraction. Abstraction is about hiding implementation details and showing only the essential features of an object. What I learned today: • How to create an abstract class • Difference between abstract methods and normal methods • How child classes implement abstract methods • How interfaces work in Java • Real-world understanding of “what to do” vs “how to do” Key takeaway: Encapsulation hides data Abstraction hides implementation Using abstract classes and interfaces makes code: ✔ More scalable ✔ More structured ✔ Easier to maintain Every day I’m understanding how OOP concepts make real-world applications more organized and powerful 💡 #Java #OOP #Abstraction #LearningInPublic #ComputerScience #Day10 #CodingJourney
To view or add a comment, sign in
-
-
💻 Practicing Binary to Decimal Conversion using Java Today I worked on converting a binary number into its decimal equivalent using logic and iteration. 🔍 Key Learnings: Understanding how binary digits map to powers of 2 Strengthening loop and mathematical logic Improving problem-solving skills step by step Instead of just memorizing, I focused on understanding the logic deeply and practicing with different inputs. 📌 Example: Binary: 1010 → Decimal: 10 Consistency + Practice = Progress 🚀 #Java #DSA #CodingJourney #Programming #100DaysOfCode #LearnToCode #ProblemSolving #DeveloperJourney #CodingPractice #TechSkills
To view or add a comment, sign in
-
-
📚 New article just published on SYUTHD! 🔖 Java 25 Performance Guide: Leveraging Value Objects to Reduce Heap Overhead by 60% 🏷️ Category: Java Programming 📖 Full article → https://lnkd.in/gct9G9rH 👉 Follow our page for more tech tutorials: https://lnkd.in/gsJDptPM 💬 Telegram: https://t.me/nisethtechno 👍 Facebook: https://lnkd.in/gsKv3Dyn #JavaProgramming #Tech #Tutorial #Programming #TechBlog #2026
To view or add a comment, sign in
-
🚀 Day 40 – Abstraction in Java Today I learned the fourth pillar of Object-Oriented Programming: Abstraction. 🔹 Abstraction means hiding implementation details and showing only essential features to the user. 📌 Key Topics Covered: • Abstract Class • Abstract Method • Rules of Abstraction • Concrete vs Abstract Methods • Why abstract classes cannot be instantiated • How abstraction works with inheritance 💡 Important Points: ✔ Abstract methods do not have a body ✔ A class containing an abstract method must be declared as abstract ✔ Child classes must override abstract methods ✔ Abstraction improves code flexibility, readability, and maintainability 🧠 Real-world understanding: Examples like ATM machines, remote controls, and mobile apps show how users interact with features without knowing the internal implementation. Practiced Java programs using abstract classes and methods to better understand how abstraction works in real applications. Special thanks to Sharath R sir for the clear explanation and real-world examples that made the concept easy to understand. 📍 Learning and growing every day at Tap Academy. #Java #Abstraction #OOP #CoreJava #JavaDeveloper #Programming #LearningJourney #TapAcademy #Coding
To view or add a comment, sign in
-
-
🚀 DSA Learning Journey | Day 8 | Java Solved “Longest Substring Without Repeating Characters.” 💡 Key Idea: Used Sliding Window + HashSet to maintain a window of unique characters and expand/shrink it dynamically. ⚙ Implementation • Language: Java • Time Complexity: O(n) • Space Complexity: O(n) 📚 Learning how the sliding window technique helps optimize substring problems efficiently. #Java #DSA #LeetCode #ProblemSolving #SlidingWindow #JavaDeveloper
To view or add a comment, sign in
-
-
🚀 Day 32 / 180 – DSA with Java 🚀 📘 Topic Covered: Strings & Sliding Window Technique 🧩 Problem Solved: Longest Substring Without Repeating Characters Problem: Given a string, find the length of the longest substring without repeating characters. Approach: Used a sliding window technique with two pointers and a hash array to track the last occurrence of characters. Whenever a repeating character appeared within the current window, adjusted the left pointer to maintain a substring with unique characters. Key Learning: ✔️ Applying sliding window for substring problems ✔️ Using hashing for constant-time character tracking ✔️ Optimizing from brute-force to O(n) time complexity If you’re also preparing for DSA, let’s connect and learn together 🤝 #DSA #Java #180DaysOfCode #LearningInPublic #Strings #ProblemSolving #Consistency
To view or add a comment, sign in
-
-
Day -10 🚀 Arrays in Java – Building Strong Programming Foundations Arrays are one of the most fundamental concepts in Java programming. Understanding them clearly helps in writing efficient and structured code. 🔹 Stores multiple values of the same data type 🔹 Index starts from 0 🔹 Easy access using array[index] 🔹 Update values anytime 🔹 Find size using array.length Arrays are widely used in loops, sorting, searching, and data processing. Mastering arrays makes learning Data Structures & Algorithms much easier. Step by step, improving my Java fundamentals and strengthening my problem-solving skills. 💡 #Java #Arrays #Programming #CodingLife #DataStructures #ComputerScience #LearningJourney
To view or add a comment, sign in
-
-
🚀 DSA Learning Journey | Day 9 | Java Solved “125. Valid Palindrome.” 💡 Key Idea: Used Two Pointers while ignoring non-alphanumeric characters and comparing characters in a case-insensitive way. ⚙ Implementation • Language: Java • Time Complexity: O(n) • Space Complexity: O(1) 📚 Learning how two-pointer technique simplifies string validation problems. #Java #DSA #LeetCode #ProblemSolving #TwoPointers #JavaDeveloper
To view or add a comment, sign in
-
-
🚀 Day 34 / 180 – DSA with Java 🚀 📘 Topic Covered: Arrays & Basic Construction 🧩 Problem Solved: Concatenation of Array Problem: Given an integer array nums, create a new array that contains the elements of nums twice in sequence. Approach: Created a new array with double the size of the original array and filled the first half with the original elements, then copied the same elements again into the second half. Key Learning: ✔️ Practicing array construction and indexing ✔️ Understanding how to manipulate array sizes ✔️ Writing clean logic for simple transformation problems If you’re also preparing for DSA, let’s connect and learn together 🤝 #DSA #Java #180DaysOfCode #LearningInPublic #Arrays #ProblemSolving #Consistency
To view or add a comment, sign in
-
-
🚀 Day 27 / 180 – DSA with Java 🚀 📘 Topic Covered: Strings & Reverse Traversal 🧩 Problem Solved: Length of Last Word Problem: Given a string containing words separated by spaces, find the length of the last word. Approach: Started traversing the string from the end, skipped trailing spaces first, and then counted characters until encountering another space or reaching the beginning of the string. Key Learning: ✔️ Efficient reverse traversal in strings ✔️ Handling edge cases like trailing spaces ✔️ Writing simple yet optimized string logic If you’re also preparing for DSA, let’s connect and learn together 🤝 #DSA #Java #180DaysOfCode #LearningInPublic #Strings #ProblemSolving #Consistency
To view or add a comment, sign in
-
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development