Day 83 of #100DaysOfCode Today I learned the Two Pointers technique, an important pattern for solving array problems efficiently. Covered: • Pair sum problems • Array reversal • Removing duplicates • Optimizing time complexity This technique helps reduce time complexity #DSA #CodingInterview #JavaScript #LearningInPublic
Two Pointers Technique for Efficient Array Problems
More Relevant Posts
-
Day 1/30 Write a function createCounter. It should accept an initial integer init. It should return an object with three functions. The three functions are: increment() increases the current value by 1 and then returns it. decrement() reduces the current value by 1 and then returns it. reset() sets the current value to init and then returns it. #30DaysOfCode #JavaScript #LeetCode #WebDevelopment #ProgrammingChallenge #CodingLife
To view or add a comment, sign in
-
-
Day 93 / 365 👨💻 Focused on refining basics through practice. 🧩 Revisited component structure and props 🔁 Tracked state changes during interactions ⚙️ Cleaned up small parts of the code 🧠 Focused on making logic easier to follow #365DaysOfCode #React #JavaScript
To view or add a comment, sign in
-
Day 82 of #100DaysOfCode Today I learned Hashing and Frequency Maps, a powerful concept in DSA. Covered: • Counting elements efficiently • Solving problems using key-value pairs • Optimizing time complexity #DSA #JavaScript #CodingInterview #LearningInPublic
To view or add a comment, sign in
-
Day 91/100 🚀 Learned about npm — what it is, how it works, and the role of the package.json file in managing projects. #100DaysOfCode #JavaScript #WebDev
To view or add a comment, sign in
-
Day 1 — Reverse a String (JavaScript) Problem Write a function that reverses a given string. Example Input: "hello" Output: "olleh" Approach Start from the last character of the string and iterate backwards. Keep adding each character to a new string until the loop finishes. Code function reverseString(str){ let reversed = "" for(let i = str.length - 1; i >= 0; i--){ reversed += str[i] } return reversed } console.log(reverseString("hello")) What I Learned Basic string traversal and how iteration works from the end of a string. #javascript #frontenddeveloper #codingpractice #dsa
To view or add a comment, sign in
-
-
🚀 Day 17/30 – slice() vs splice() in JavaScript These two methods look similar but behave very differently 👇 🔹 slice() Returns a new array Does NOT modify original array Used to extract elements 🔹 splice() Modifies the original array Can add/remove elements Used for updating the array 💡 In simple terms: 👉 slice = copy 👉 splice = change learn with w3schools.com #Day17 #FrontendDeveloper #JavaScript #InterviewPreparation #WebDevelopment #30DaysChallenge JavaScript Mastery
To view or add a comment, sign in
-
-
0ms Delay... but what about the extra arguments? 🧐 Most developers know setTimeout(callback, delay), but did you know you can pass arguments directly into the callback? #JavaScript #WebDevelopment #CodingQuiz #SoftwareEngineering #FrontendTips
To view or add a comment, sign in
-
Already know how queues work? Made a visual to understand FIFO, Big O trade-offs, and when to use queues in JavaScript — all in one diagram. #JavaScript #DataStructures #Algorithms #SoftwareEngineering
To view or add a comment, sign in
-
-
🚀 Day 15/30 – Event Bubbling in JavaScript When an event occurs on an element, it doesn’t just stop there — it bubbles up through its parent elements all the way to the root. 👉 Simply put: Event starts from the target element → moves up to parent → ancestor → document 💡 Example: Clicking a button inside a div will trigger: Button’s event Then the parent div’s event Learn with JavaScript Mastery #Day14 #FrontendDeveloper #JavaScript #InterviewPreparation #WebDevelopment #30DaysChallenge w3schools.com
To view or add a comment, sign in
-
-
JavaScript Promise chaining vs async/await: Promise chains: → Harder to read → Error handling complex → Callback-ish Async/await: → Reads like sync code → try/catch works naturally → Easier debugging The choice is obvious. #JavaScript #AsyncJS #CleanCode
To view or add a comment, sign in
Explore related topics
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