Leetcode Practice - 3. Longest Substring Without Repeating Characters The problem is solved using JAVA. Start from first letter Keep adding letters until you see a duplicate When duplicate comes → move start forward Keep track of maximum length #LeetCode #Java #StringHandling #CodingPractice #ProblemSolving #DSA #DeveloperJourney #TechLearning
LeetCode Java Longest Substring Without Repeating Characters
More Relevant Posts
-
🔐 Mastering inheritance starts with mastering access modifiers! Understanding how public, protected, default, and private work across packages and subclasses is key to writing secure, maintainable Java code. #TapAcademy #Java #Inheritance #AccessModifiers #Encapsulation #OOP #ProgrammingTips #CleanCode
To view or add a comment, sign in
-
-
Day 6 - Externalization Vs Serialization in Java !! As we know, the Serializable interface in Java allows us to perform serialization, effectively turning an object into a byte stream for storage or transmission. What is externalization ? 💫 Externalization is a customized serialization mechanism. Unlike the Serializable marker interface, it allows developers to explicitly define the logic for saving and restoring an object's data through marshalling and unmarshalling. #java #backend #coding #developer #learning #springboot
To view or add a comment, sign in
-
-
Leetcode Practice - 12. Integer to Roman The program is solved using JAVA We store values in descending order 👉 Then: Loop through values If number ≥ value → append symbol Subtract value Repeat #LeetCode #Java #StringHandling #CodingPractice #ProblemSolving #DSA #DeveloperJourney #TechLearning
To view or add a comment, sign in
-
-
What is a Method in Java? 🚀 A method is a block of code that does a specific task. It is like an action! Swipe to learn: 🚗 Real-world examples (like a car) 💻 Easy code rules (Syntax) ⚙️ How it works step-by-step ☕ Void vs. Return methods Methods make your code clean and easy to reuse. Let me know what you think below! 👇 #Java #LearnJava #Coding #ProgrammingForBeginners #Developer
To view or add a comment, sign in
-
-
🚀 Exploring Multithreading in Java Created a simple program using Thread + Lambda (Runnable) to print numbers with a delay. 🔹 Learned how threads work 🔹 Used lambda expressions for cleaner code 🔹 Implemented Thread.sleep() for controlled execution Small steps every day towards mastering Java and backend development 💻🔥 #Java #Multithreading #CodingJourney #DeveloperLife #LearningByDoing
To view or add a comment, sign in
-
-
#Day81 of #100DaysOfCode Focused on understanding functions (methods) in Java and how to write reusable code. Covered: - Creating functions with and without return types - Passing parameters and using arguments - Implementing logic using functions Practiced problems like sum calculation, even/odd check, and factorial using functions. #Java #Programming #Functions #100DaysOfCode
To view or add a comment, sign in
-
-
Starting a 100-day Java series, and this is day 1 ☕ Today, we are covering Java variables - from syntax to scope to memory, all in one place. Declaration, data types, the 3 types of variables, casting, the final keyword and the mistakes most beginners make without realising. 10 slides covering everything. The last slide has a full cheat sheet worth saving.🔖 For more such tech content, follow @herbrewcode on Instagram too. #Java #Day1 #100DaysOfCode #LearnToCode #CodingJourney #HerBrewCode
To view or add a comment, sign in
-
Day 92 - LeetCode Journey Solved LeetCode 143: Reorder List in Java ✅ This problem looks tricky at first, but once you break it into steps, it becomes clean and elegant. The idea is simple: 1️⃣ Find the middle of the list (slow-fast pointers) 2️⃣ Reverse the second half 3️⃣ Merge both halves alternately That’s it. Three steps, one solid solution. Key takeaways: • Mastering slow & fast pointer technique • In-place reversal of linked list • Merging two lists efficiently • Breaking complex problems into smaller parts ✅ All test cases passed ⚡ O(n) time and O(1) space Problems like this build real confidence in linked lists 💯 #LeetCode #DSA #Java #LinkedList #ProblemSolving #CodingJourney #InterviewPrep #Consistency #100DaysOfCode
To view or add a comment, sign in
-
-
Multithreading in Java finally clicked for me when I stopped memorizing it… and started visualizing it. 🧠 Here’s the simplest way to understand it: Imagine your application is doing only ONE task at a time. ➡️ Slow ➡️ Blocking ➡️ Poor performance Now introduce multithreading 👇 Multiple tasks run simultaneously: ✔ One thread handles API requests ✔ One processes data ✔ One writes logs Result? Faster and more efficient applications 🚀 But here’s what I learned the hard way: Multithreading is powerful… but dangerous if not handled properly. Common issues I faced: Race conditions Deadlocks Unexpected bugs What helped me: ✔ Proper synchronization ✔ Understanding thread lifecycle ✔ Using ExecutorService instead of manual threads Lesson: Multithreading is not just about speed — it’s about control and correctness. 💬 Have you faced any tricky bugs with multithreading? #Java #Multithreading #BackendDevelopment #SoftwareEngineering #Coding
To view or add a comment, sign in
-
Day 35/100 – Exploring ListIterator in Java 🔁 Today I explored the use of ListIterator in Java while working with ArrayList. Unlike a normal iterator, ListIterator allows traversal in both directions, making it more flexible when working with lists. Key learnings: • Traverse elements using next() • Move backward using previous() • Check elements using hasNext() and hasPrevious() • Useful for bidirectional iteration and modifications Understanding different ways to iterate through data structures helps in writing more efficient and flexible code. Learning something new every day, one step at a time. 🚀 #100DaysOfCode #Java #ArrayList #DataStructures #CodingJourney #LearningInPublic
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