🚀 Day 18:– JavaScript + DSA (Java) Today’s learning was focused on strengthening my understanding of Data Structures & Algorithms and revising JavaScript fundamentals. 🔹Java – Merge Sort I explored the Merge Sort algorithm in depth and understood how it works internally: ->Uses the Divide and Conquer technique. ->Recursively divides the array into smaller subarrays. ->Merges the sorted subarrays to form the final sorted array. ->Time Complexity: O(n log n) in best, average, and worst cases. ->Stable Sorting Algorithm ✅ Not an In-Place Algorithm because it requires extra space during merging. Understanding the step-by-step splitting and merging process helped me clearly see why the time complexity becomes O(n log n). 🔹 JavaScript Revision Also spent time revising core JavaScript concepts to keep my fundamentals strong while continuing my programming journey. #100DaysOfCode #Java #JavaScript #DSA #MergeSort #CodingJourney #LearningInPublic
Strengthening DSA and JavaScript Fundamentals with Merge Sort
More Relevant Posts
-
Choosing the right language depends on your domain. Web Development HTML CSS JavaScript TypeScript PHP React Angular Python Java SQL Software Development C C++ Java Python C# Swift Kotlin Rust Go Ruby Machine Learning Python R Julia Java C++ Scala MATLAB JavaScript Lisp Prolog There is no "best language." There is only the right language for your goal. #webdevelopment #softwaredevelopment #machinelearning #html #css #js #php #c #c++ #python #scala #pytorch #go #java #angular #sql #ruby #c# #rust #tensorflow #julia #scikitlearn #keras #r #reactjs #kotlin
To view or add a comment, sign in
-
-
🚀 Day 1 of Java with DSA Journey 📌 Topic: Binary Search (LeetCode 704) 💬 “Today I practiced a very fundamental problem from LeetCode.” Today was all about efficiency and smart problem solving. While Linear Search checks every element one by one, Binary Search drastically reduces the search space by half in each step — making it one of the most powerful techniques in DSA. ✨ What I Learned: 🔹 Divide & Conquer: Reducing the problem size at every step leads to faster solutions 🔹 Prerequisite: Works only on sorted arrays 🔹 Implementation: Used iterative approach with two pointers (low & high) 🔹 Time Complexity: O(log n) | Space Complexity: O(1) 🔹 Common Mistake: Wrong mid calculation or improper pointer updates causing infinite loops 🔹 Real-World Use: Search engines, databases, efficient lookup systems 🔹 Optimization Insight: Much faster than Linear Search (O(n)) for large datasets 💡 Pro Tip (Java Developers): Always calculate mid like this: mid = low + (high - low) / 2; 👉 Prevents integer overflow and makes your code production-ready. 🧠 Performance Insight: ✔️ Linear Search: If you have 1 million elements, you might check 1 million times. ✔️ Binary Search: For that same 1 million elements, you only need 20 checks max. That’s the power of optimization ⚡ 💡 Insight: Understanding how to reduce problem size is the key to writing efficient algorithms. Even the simplest problems build the strongest foundation. Consistency is the real key 🔑 #DSA #Java #LeetCode #CodingJourney #BinarySearch #ProblemSolving #SoftwareEngineering #Day1
To view or add a comment, sign in
-
-
https://lnkd.in/gajTzFr5 👈 JavaScript "Classes" are a lie. 😮 You use class and extends every day, thinking it’s like Java or Python. But under the hood, it’s all Prototypes. The class keyword is just "syntactic sugar." If you don't understand the engine beneath the sugar, you'll eventually hit a wall with memory leaks, inheritance bugs, or security risks like Prototype Pollution. In this deep-dive, I break down: 🎒 The Backpack Analogy: How objects "borrow" methods. ⚡ Memory Wins: Why prototypes are more efficient than constructors. 🛠️ Real-World Power: How Mongoose and Express.js actually work. 🛑 Common Traps: __proto__ vs prototype (and why it matters). Stop just writing syntax. Start understanding how the language actually thinks. Read the full breakdown here: https://lnkd.in/gajTzFr5 👈 #JavaScript #WebDev #Programming #SoftwareEngineering #CleanCode
To view or add a comment, sign in
-
-
🚀 Project: Mini Search Engine in Java I recently built a Mini Search Engine using Java to deepen my understanding of file handling, data structures, and search algorithms. Instead of simply reading files, the application creates an index that maps each word to the documents in which it appears, a concept used in search engines. How it functions: • Reads multiple .txt documents from a folder • Builds an efficient word-to-document mapping using HashMap • Allows users to search for a keyword and instantly returns matching documents Key Concepts Used ✔ File Handling ✔ Collections Framework (HashMap, List) ✔ String Processing ✔ Object-Oriented Programming ✔ Basic Search Engine Indexing This project helped me understand how search engines organise and retrieve information efficiently, even with simple data structures. GitHub link: https://lnkd.in/grbRTZ4y I’m currently exploring more Java software development projects as I continue improving my programming skills. #Java #Programming #SoftwareDevelopment #JavaProjects #LearningInPublic
To view or add a comment, sign in
-
"async" is one of those concepts that looks similar across languages… until You look under the hood. Lately, I have been exploring how different languages handle async. At first glance, the answer seems simple: - Use async/await, threads, or some concurrency feature. But the deeper I go, the more I realise this: The syntax may look familiar, but the execution model underneath can be completely different. For example: - JavaScript uses an event loop with non-blocking I/O - Python uses asyncio for cooperative asynchronous programming - Java often relies on threads, executors, and reactive models - Go uses goroutines to make concurrency lightweight - C# provides a very mature Task-based async/await model All of them are trying to solve a similar problem: "How do we handle more work efficiently without blocking everything?" But the way they solve it changes a lot: - How does code feel to write - How systems scale - How errors behave - How debugging feels - How much complexity does the developer have to manage That is what makes backend engineering so interesting to me. Two languages can support “async,” but the model underneath can shape performance, scalability, developer experience, and even architecture decisions in very different ways. That is also why learning only syntax is never enough. - Knowing how to write async code is useful. - Knowing how it actually runs is what helps us design better systems. The more I learn, the more I feel this: "Good engineers do not stop at syntax." "They stay curious about the runtime model underneath." #SoftwareEngineering #AsyncProgramming #BackendDevelopment #Programming #SystemDesign #JavaScript #Python #Java #Go #CSharp
To view or add a comment, sign in
-
Fast backend ≠ fastest language Many devs compare backend languages like this: Go > Rust > Java > Node.js > Python But in real production systems, performance differences often come from: Database queries Network latency Poor indexing Blocking operations Not the language. I’ve seen slow Node APIs become 3x faster just by: Adding indexes Fixing N+1 queries Using aggregation pipelines 💡 Optimization beats language switching. Before rewriting your backend… profile it. 💬 Question: Have you ever optimized performance without changing languages? #BackendDev #SystemPerformance #NodeJS #SoftwareEngineering #APIDesign #TechTips
To view or add a comment, sign in
-
-
𝗣𝘆𝘁𝗵𝗼𝗻 𝗩𝗦 𝗝𝗮𝗩𝗔 𝗩𝗦 𝗝𝗮𝗩𝗔𝗦𝗰𝗿𝗶𝗽𝘁: 𝗪𝗵𝗮𝘁'𝘀 𝗧𝗵𝗲 𝗗𝗶𝗳𝗳𝗲𝗿𝗲𝗻𝗰𝗲 You want to learn programming. Python, Java, and JavaScript are popular choices. But what are they used for? Python is a simple language. It has clean syntax and is easy to learn. Key features include: - Easy-to-learn syntax - Dynamically typed - Huge ecosystem of libraries - Interpreted language You can use Python for: - Data Science and Machine Learning - Artificial Intelligence - Automation and scripting - Web development Java is a robust language. It is widely used in enterprise applications. Key features include: - Strongly typed language - Platform independent - Highly secure and scalable - Runs on the Java Virtual Machine You can use Java for: - Enterprise applications - Banking and financial systems - Android app development - Large backend systems JavaScript is used for web development. It creates dynamic and interactive web pages. Key features include: - Runs directly in web browsers - Event-driven and asynchronous - Dynamically typed - Can be used for both frontend and backend You can use JavaScript for: - Frontend web development - Interactive UI elements - Real-time applications - Backend development Source: https://lnkd.in/gA6fJDVj
To view or add a comment, sign in
-
Read a sensor value. Save it to a database. In Python that's 4 lines. Java: 12. C#: 8. Go: 6. Each looks completely different. Each needs a developer who knows that specific stack. Developer leaves? New one prefers something else. Rewrite. The logic never changed. But the implementation is tied to whoever wrote it. That's what visual development actually solves. Not "easier." Independent. #SoftwareArchitecture #NoCode #Manufacturing
To view or add a comment, sign in
-
-
Day 189 of 200 Days of Code Challenge. #CCBP #NxtWave #React_Hooks #useEffect #Python #ReactJS #HTML #CSS #Rivison_Javascript #Python #SQL #NodeJS #ExpressJS #Components #MongoDB In JavaScript, objects can inherit directly from other objects through the prototype chain. Instead of classical classes, JS leverages prototypes to share properties and methods. 👉 This means: Every object has a hidden [[Prototype]] reference. Methods defined on a prototype are accessible to all instances. It’s a powerful way to reuse code and keep memory efficient
To view or add a comment, sign in
-
-
🚀 Day 52 of My DSA Journey Today, I solved Reverse Words in a String (LeetCode 151) 💻 This problem tested my understanding of string manipulation, trimming, and efficient traversal. 🔹 Problem Statement: Given a string s, reverse the order of words while removing extra spaces. 🔹 Key Learnings: ✅ Handling leading, trailing, and multiple spaces ✅ Using split() with regex (\\s+) ✅ Efficient use of StringBuilder for better performance ✅ Traversing array in reverse order 🔹 Approach: Trim the string to remove extra spaces Split words using regex Traverse from end to start Append words with single space 🔹 Example: Input: " hello world " Output: "world hello" Another Example: Input: "the sky is blue" Output: "blue is sky the" 🔹 Code Insight (Java): Used StringBuilder to efficiently build the reversed string without extra space issues. Consistency is the key 🔑 — showing up every day and improving step by step. #Day52 #DSA #Java #LeetCode #CodingJourney #100DaysOfCode #Programming #PlacementPreparation 🚀 If you want, I can also create a more viral version (with hooks + storytelling) to get more reach 🔥Here’s a clean and engaging LinkedIn post for your Day 52 of DSA Journey with an example: 🚀 Day 52 of My DSA Journey Today, I solved Reverse Words in a String (LeetCode 151) 💻 This problem tested my understanding of string manipulation, trimming, and efficient traversal. 🔹 Problem Statement: Given a string s, reverse the order of words while removing extra spaces. 🔹 Key Learnings: ✅ Handling leading, trailing, and multiple spaces ✅ Using split() with regex (\\s+) ✅ Efficient use of StringBuilder for better performance ✅ Traversing array in reverse order 🔹 Approach: Trim the string to remove extra spaces Split words using regex Traverse from end to start Append words with single space 🔹 Example: Input: " hello world " Output: "world hello" Another Example: Input: "the sky is blue" Output: "blue is sky the" 🔹 Code Insight (Java): Used StringBuilder to efficiently build the reversed string without extra space issues. Consistency is the key 🔑 — showing up every day and improving step by step. #Day52 #DSA #Java #LeetCode #CodingJourney #100DaysOfCode #Programming #PlacementPreparation 🚀
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