🚀 Learning Java the Right Way Today, I practiced a fundamental and important String problem — 👉 Check if a String is Palindrome A Palindrome is a word that reads the same forward and backward. Examples: • "madam" ✅ • "racecar" ✅ • "java" ❌ 🔹 What I practiced: ✔ String traversal using loop ✔ Character comparison logic ✔ Conditional statements ✔ Clean and readable code 📌 Approach: Reverse the string using a loop Compare original string with reversed string If equal → Palindrome This simple problem strengthens: • Logical thinking • String manipulation skills • Interview preparation basics Small concepts practiced daily build strong programming confidence 💪 #java #javafullstack #javadeveloper #corejava #codingjourney #coding
Check if a String is Palindrome in Java
More Relevant Posts
-
Built a Java program to classify user input 💻 Used Scanner for taking input from user. Extracted character using charAt(0). Checked if input is alphabet, digit, or special character. Handled both uppercase and lowercase cases. Applied if-else logic effectively. Improved understanding of Java fundamentals. Practiced clean and structured coding. Strengthening logic building step by step 🚀 Consistency leads to better problem-solving skills 🔥 #Java #JavaProgramming #CodingJourney #LearnToCode #StudentDeveloper #ProgrammingBasics #LogicBuilding #TechSkills #VSCode #100DaysOfCode
To view or add a comment, sign in
-
-
Problem Solved Today 💡 Today I solved a basic problem on Arrays, and it taught me something important. 📌 Problem: Find the largest element in an array 📌 Approach: Used a simple loop to compare elements 📌 Language: C / Java 👉 What I learned: Instead of jumping to complex solutions, sometimes simple logic works best. Coding is not about writing big code, it’s about clear thinking. Small steps every day = big improvement over time 🚀 #CodingJourney #ProblemSolving #Java #CProgramming #DataStructures #LearnToCode #FutureEngineer
To view or add a comment, sign in
-
Entry-level Algorithm Challenge: Array Manipulation in Java. Today I tackled a foundational exercise: reading a list of numbers and filtering out only the negative values. It was a great opportunity to reinforce some core Java concepts: 1. Flow control with do-while loop: Ensuring valid input within a specific range. 2. Simplified iteration with for-each loop: Improving code readability. 3. Handling flags (boolean signals): Providing clear, user-friendly feedback. Check out the logic below! 👇 #Java #Algorithms #SoftwareDevelopment #Coding
To view or add a comment, sign in
-
-
Java hidden feature 🔥 I want to tell you a feature that not many people know about, you can use labels to control nested loops. For example, if you are using 2 loops, you can jump to the first one, it is very logical. For this, you give a name to the loops, you can give it any name you want, I gave outer, then you put : and then put loop. Which other languages have such a feature, if there is one in other programming, please share it. #Java #SpringBoot #BackendDevelopment #JavaDeveloper #SoftwareEngineer #Coding #Loop
To view or add a comment, sign in
-
-
100 Days of Coding Challenge – Day 17 📌 Problem: String Compression 💻 Language: Java 🧠 Concept Used: Two Pointers + In-place Array Manipulation 🔍 Platform: LeetCode Today’s challenge was to compress a character array in-place by replacing consecutive repeating characters with the character followed by its count. Example: Input: ["a","a","b","b","c","c","c"] Output: ["a","2","b","2","c","3"] Approach: ✔ Use two pointers — one for reading characters and one for writing compressed output ✔ Count consecutive repeating characters ✔ Write the character once and append the count if it is greater than 1 ✔ Modify the array directly without creating extra space Time Complexity: O(n) Space Complexity: O(1) 🔗 Problem Link: https://lnkd.in/eeeWBA4X 🔗 Code: https://lnkd.in/enj4Qcy9 #100DaysOfCode #Day17 #Java #DSA #LeetCode #Strings #TwoPointers #ProblemSolving #CodingJourney
To view or add a comment, sign in
-
-
🚀 Turning Logic into Creativity with Java! I recently worked on an interesting Java pattern programming project where I created alphabet letters using the "*" symbol. Using loops and conditional statements in Java, I connected multiple "*" characters to form different alphabet patterns. This exercise helped me strengthen my logical thinking, pattern design, and control structure concepts in Java. Pattern programming is a great way to improve problem-solving skills and understand how programming logic works step by step. Excited to keep learning and building more creative programs! 💻✨ G.R NARENDRA REDDY Global Quest Technologies #Java #PatternProgramming #CodingPractice #ProblemSolving #LearningJourney
To view or add a comment, sign in
-
100 Days of Coding Challenge – Day 18 📌 Problem: Is Subsequence 💻 Language: Java 🧠 Concept Used: Two Pointer Technique 🔍 Platform: LeetCode Today’s challenge was to determine whether a string s is a subsequence of another string t. A subsequence means the characters appear in the same order, but not necessarily consecutively. Approach: ✔ Use two pointers to traverse both strings ✔ If characters match, move both pointers ✔ Otherwise, move the pointer of the second string ✔ If all characters of s are matched, it is a valid subsequence ✔ Time Complexity: O(n) ✔ Space Complexity: O(1) This problem reinforced how powerful the two-pointer technique can be for efficient string traversal. 🔗 Problem Link: https://lnkd.in/g_43jvhm 🔗 Code: https://lnkd.in/gG_7d2BC #100DaysOfCode #Day18 #Java #DSA #LeetCode #TwoPointers #Strings #ProblemSolving #CodingJourney
To view or add a comment, sign in
-
-
While solving a DSA problem on LeetCode, I noticed the solution used StringBuilder instead of a normal String in Java. At first I thought — why not just use String? 🤔 While exploring this, I learned that every time we modify a String, Java creates a new object in memory. The old objects become unused, which are called garbage values and later cleaned by the garbage collector. A small doubt while solving one question helped me understand how memory actually works in Java 💡 #Java #DSA #LearningInPublic #Programming #LeetCode
To view or add a comment, sign in
-
🚀 DSA in Java – Day 76 ✅ Today I solved the “Check if Binary String Has at Most One Segment of Ones” problem on LeetCode. 💡 Problem Idea: Given a binary string, we need to check whether there is at most one continuous segment of '1's in the string. 🧠 Approach: Traverse the string using a loop. Count how many segments of '1' appear. If the count becomes greater than 1, return false. Otherwise return true. ⚡ Key Concepts Practiced: String traversal While loop Character comparison Logical conditions Consistency in solving problems every day is helping me strengthen my problem-solving and logical thinking skills in Java. #DSA #Java #LeetCode #ProblemSolving #CodingJourney #WomenInTech #100DaysOfCode
To view or add a comment, sign in
-
-
Turning my handwritten Java notes into clean and readable visuals using .. ✨ Sometimes the best way to learn a concept is to simplify it visually. So I converted my rough handwritten notes into enhanced, easy-to-read pages. 📌 Topics covered in these notes: • Java basics • Data types • Type casting • Identifiers • Some beginner MCQs Swipe through the carousel to see the notes 📖 💡 Challenge: On the last slide there is a small MCQ question. Try to solve it and drop your answer in the comments 👇 Let’s see who gets it right! #Java #Programming #Coding #ComputerScience #LearningInPublic #TechNotes
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