Day 25 of Programming Today, I focused on solving problems related to index finding and subsequences — two important concepts that sharpen problem-solving and string manipulation skills. 💡 What I learned: How to find the index of a specific character (k) in a string Understanding first occurrence vs last occurrence Exploring subsequences and how they differ from substrings Generating all possible subsequences using recursion ✨ Key Concepts: Indexing helps in efficient searching within strings A subsequence maintains order but doesn’t require continuity Recursive thinking makes complex problems easier to break down 🧠 Problems I solved: Find the first and last index of a character in a string Count how many times a character appears Check if one string is a subsequence of another Generate all subsequences of a given string Find the longest subsequence under given conditions #Programming #CodingJourney #ProblemSolving #Java #Learning
Index Finding and Subsequences in Programming
More Relevant Posts
-
My Learning Journey – Arrays in Java Today, I explored one of the most important concepts in programming – Arrays 💻 🔹 What I learned: ✔️ What is an array and why we use it ✔️ How to declare and initialize arrays ✔️ Accessing elements using index ✔️ Traversing arrays using loops ✔️ Basic programs using arrays 💡 Key takeaway: Arrays help us store multiple values in a single variable, making code more efficient and organized. 📌 Example: int[] numbers = {10, 20, 30, 40}; This small concept is the foundation for advanced topics like Data Structures and Algorithms. 🔥 Step by step, improving every day! #Java #Arrays #CodingJourney #Learning #Programming #100DaysOfCode
To view or add a comment, sign in
-
-
Working with Arrays in Java has been a major step in strengthening my programming fundamentals 💻 Arrays are one of the most essential concepts in programming—they help in storing multiple values in a single variable, making data handling more efficient and structured. While practicing, I explored different operations like traversal, searching, sorting, and working with both one-dimensional and two-dimensional arrays. Understanding arrays also improved my problem-solving skills, especially when dealing with real-world scenarios such as matrix operations, finding patterns, and optimizing logic. Concepts like index handling, memory allocation, and nested loops became much clearer through consistent practice. This journey is helping me build a strong foundation for advanced topics like data structures and algorithms 🚀 Consistency + Practice = Improvement #Java #Arrays #Programming #Coding #DeveloperJourney #ProblemSolving #StudentLife #Learning #TechSkills #Consistency
To view or add a comment, sign in
-
🚀 Understanding Inheritance in Object-Oriented Programming (OOP) As part of my learning journey in programming, I explored one of the core concepts of OOP — Inheritance. Inheritance allows a class to acquire properties and behaviors from another class, promoting code reusability, scalability, and better structure in software development. 📌 In this visual, I’ve covered: • Introduction to Inheritance • Single Inheritance • Multilevel Inheritance • Hierarchical Inheritance • Multiple Inheritance • Hybrid Inheritance Each type demonstrates how classes can be related and extended in different ways, making programs more efficient and modular. 💡 This concept is widely used in languages like Java, Python, and C++ and is essential for writing clean and maintainable code. #TapAcademy #OOP #Java #Programming #SoftwareDevelopment #LearningJourney #Coding #ComputerScience
To view or add a comment, sign in
-
-
🎥 Learning Java in Action! In this video, I’m demonstrating a simple program using a while loop. 💡 What the code does: It keeps asking the user to enter their age until a valid (non-negative) input is given. Through this, I’m learning: How while loops work in real scenarios Input validation using loops Building interactive programs step by step This is one of my early examples while exploring loops in Java (also learning for loops alongside). Small progress every day 🚀 #Java #Coding #Programming #LearningJourney #WhileLoop #ForLoop
To view or add a comment, sign in
-
Day 50 Designing Data-Intensive Applications by Martin Kleppmann Chapter 4 Encoding and Evaluation Thrift and protocol buffer rely on code generation: after a schema is defined, you can generate code that implements this schema in programming language. Useful in statistical typed language such as Java, C#, C++, because it allows efficient in -memory structures to be used for decoded data, and it allows type checking and autocompletion in IDEs when writing programs that access data structures. In dynamically typed programming languages such as JavaScript, Ruby or Python, there is no compile type checker. Avro provides optional code generation for statistically programmed languages. but it can be used just as well without any code generation.
To view or add a comment, sign in
-
-
🚀 Day 76 — LeetCode Practice 🚀 Today’s problem: Count the Number of Consistent Strings 💡 What I learned today: • Used a boolean array to efficiently track allowed characters • Practiced character indexing (c - 'a') technique • Improved understanding of string traversal using nested loops • Learned how to optimize lookup operations to O(1) 🧠 Key Idea: Store all allowed characters in a boolean array. Then, for each word, check if every character exists in the allowed set. If yes → count it as a consistent string ✅ ⚡ Approach Highlights: • Preprocessing allowed characters • Iterating through each word • Breaking early for invalid characters (optimization) • Counting only valid strings 💻 Language Used: Java Consistency is the key 🔑 — improving step by step every day! #Day76 #LeetCode #Java #CodingJourney #ProblemSolving #100DaysOfCode #Programming #Learning
To view or add a comment, sign in
-
-
Over the past semester I focused on building a strong foundation in Object-Oriented Programming with Java by consistently practicing and organizing my work in a structured way. I organized my practice into a structured repository covering core concepts such as classes, inheritance, polymorphism, abstraction, and object relationships, along with hands on assignments, problem sets, and small GUI-based implementations. Maintaining this structure helped reinforce clarity in thinking, improve code organization, and develop better problem solving habits. Repository: https://lnkd.in/d9reDSjK #Java #OOP #SoftwareEngineering #ComputerScience #Programming
To view or add a comment, sign in
-
-
Sum of the Array in Java | Easy Logic + Coding 💡 Strong fundamentals are the key to mastering programming. This example shows how to find the sum of array elements using simple logic: • Start with an array of numbers • Initialize a sum variable to 0 • Traverse the array using a loop • Add each element to the sum • Print the final result Practicing these basic problems helps build strong logical thinking and coding confidence. 📊 Example Input : [1, 2, 3, 4] Output : 10 🎥 I’ve also created a short video explaining this concept with code: YouTube link : https://lnkd.in/g9SJ3hvJ #Java #Programming #ProblemSolving #Coding #SoftwareDevelopment #Learning #CSE #Developers #LogicBuilding #Arrays
To view or add a comment, sign in
-
-
If anyone is interested in developing their skills in Object-Oriented Programming (OOP), a quick thought based on my experience that might be helpful. 💬 Here are some tips for developing this skill: Think in real-world objectsInstead of just writing code, imagine how real-world things behave and translate that into classes and objects. 📈 Improvement doesn’t happen overnight — but with consistency, you’ll see real progress!
To view or add a comment, sign in
-
Day 17 - 21 Days of Problem Solving. Today, I explored the importance of Recursion in programming languages. In short, recursion is a technique where a function calls itself. 🤔 There are two major components that play a role here: 👉 Base Case: This tells the recursive function when to stop. If it isn't written, the call stack will fill up. 👉 Recursive Step: This is where you write the logic. I know recursion is used in many real-world projects, such as: 👉 Nested Comments 👉 Folder Structures ...and many more. I will now provide regular updates on what I am learning. #Programming #CodingChallenge #Recursion #DSA #ProblemSolving #TechLearning #WebDevelopment #SoftwareEngineering #CodeNewbie #21DaysOfCode
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
Important topic. Clean way to explain it