#Day95 of #100DaysOfCode Extended the previous number-to-words program to handle multiple digits. The program takes a number as input and prints each digit in its word form. Focused on improving logic by combining loops, string conversion, and conditional handling. #Java #MiniProject #100DaysOfCode
Java Number to Words Program Improved
More Relevant Posts
-
🚀 Day 21 of #128DaysOfCode 🔍 Key Learnings: Efficient searching in O(log n) Using low & high to narrow the range Finding correct position even if target is absent 🧠 Approach: Compare mid with target → move left/right → return index or insert position Consistency is key 🔥 #DSA #Java #CodingJourney #PlacementPreparation
To view or add a comment, sign in
-
-
Can you predict the output? 🤔 int x = 5; System.out.println(x++ + ++x); Drop your answer below 👇 I’ll share the explanation in a few hours ⏳ #Java #CodingChallenge #DSA
To view or add a comment, sign in
-
Day 95/200 – LeetCode Challenge. Problem: Remove Duplicates from Sorted List II (Java) Today’s focus was eliminating all duplicate values from a sorted linked list while keeping only distinct nodes. Implemented an efficient two-pointer approach with a dummy node to handle edge cases cleanly. Linked lists require careful pointer management. Dummy nodes simplify boundary conditions. One-pass solution ensures optimal performance. Continuing the 200-day journey, one problem at a time. #LeetCode #Java #CodingChallenge #200DaysOfCode #ProblemSolving
To view or add a comment, sign in
-
-
🚀 𝐃𝐚𝐲 94/100 ✅ 𝐏𝐫𝐨𝐛𝐥𝐞𝐦: 𝐑𝐞𝐩𝐞𝐚𝐭𝐞𝐝 𝐒𝐮𝐛𝐬𝐭𝐫𝐢𝐧𝐠 𝐏𝐚𝐭𝐭𝐞𝐫𝐧 Today’s problem was about checking whether a string can be formed by repeating one of its substrings multiple times. 💡 𝐊𝐞𝐲 𝐋𝐞𝐚𝐫𝐧𝐢𝐧𝐠𝐬: Try all possible substring lengths up to n/2 Only consider lengths that divide the string completely Build and compare repeated string with original Time Complexity: O(n²) in worst case 𝐀𝐩𝐩𝐫𝐨𝐚𝐜𝐡: Iterate over possible substring sizes If length divides string → repeat substring Compare with original string If match found → return true #Day94 #100DaysOfCode #LeetCode #Java #DSA #CodingJourney #ProblemSolving
To view or add a comment, sign in
-
-
Day 69 - Remove Linked List Elements Working with linked lists to efficiently remove all nodes with a specific value using a dummy node approach. Time Complexity: O(n) Space Complexity: O(1) #Day69 #LeetCode #Java #LinkedList #DSA #ProblemSolving #CodingJourney
To view or add a comment, sign in
-
-
If two responsibilities always change together, separating them may create more problems than it solves Read more 👉 https://lttr.ai/Aoe3X #SoftwareDesign #java #SOLIDPrinciples #SingleResponsibilityPrinciple
To view or add a comment, sign in
-
-
#Day85 of #100DaysOfCode Focused on practicing array-based problems with an emphasis on logic and efficiency. Worked on: * Moving zeros to the end of an array * Checking if an array is a palindrome * Calculating the sum of even elements #Java #Arrays #100DaysOfCode
To view or add a comment, sign in
-
-
Day 75 – Linked List Cycle Detection Solved a problem to detect whether a linked list contains a cycle using an efficient two-pointer approach. Key Learnings: Applied Floyd’s Cycle Detection Algorithm Understood how different pointer speeds help detect loops Achieved optimal solution with O(1) space and O(n) time complexity #DSA #Java #LinkedList #TwoPointers #ProblemSolving #CodingPractice
To view or add a comment, sign in
-
-
🚀 Day 58/180 | #180DaysOfCode 📍 LeetCode | 💻 Java Solved: 278. First Bad Version Used binary search on answer space to efficiently find the first bad version while minimizing API calls. ⏱️ Time Complexity: O(log n) 📦 Space Complexity: O(1) Strengthening understanding of binary search optimization and decision-based problems. 💪 Consistency continues 🚀 #DSA #LeetCode #Java #CodingJourney #Consistency
To view or add a comment, sign in
-
-
Did you know that List.of() and Set.of() create immutable collections in Java? What does that mean? You cannot add, remove, or modify elements after creation. Key Points: ❌ No modification allowed ❌ No null values allowed ✅ Safer (no accidental changes) ✅ Cleaner than Arrays.asList() When should you use it? - Constants - Read-only data - Defensive programming (protect your APIs) Common mistake: Treating it like a normal list → runtime exception #java #interview #immutable #certification
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