LeetCode 5: Longest Palindromic Substring – JavaScript Solution📌 Introduction In this post, we'll solve LeetCode 5: Longest Palindromic Substring.We'll cover the expand around centers approach and analyze the time and space complexities.Code examples will be in JavaScript, with step-by-step explanations. 👉 Ori...Sep 5, 2025 · 2 min readcode-with-shanks.hashnode.dev
LeetCode 11. Container With Most Water – JavaScript Solution📌 Introduction In this post, we’ll solve LeetCode 11. Container With Most Water. We’ll cover the brute force approach, the optimized solution, and analyze the time and space complexities. Code examples will be in JavaScript, with step-by-step explan...Sep 5, 2025 · 4 min readcode-with-shanks.hashnode.dev
LeetCode 169: Majority Element – JavaScript Solution📌 Introduction In this post, we’ll solve LeetCode 169: Majority Element. We’ll cover a straightforward brute-force approach, an optimized solution using the Boyer-Moore Voting Algorithm, and analyze the time and space complexities for each. Code exa...Aug 22, 2025 · 3 min readcode-with-shanks.hashnode.dev
LeetCode 283. Move Zeroes | Two Pointers Solution in JavaScript📌 Introduction In this post, we’ll solve LeetCode 283. Move Zeroes. We’ll cover a two-pointer approach, and analyze the time and space complexities. Code examples will be in JavaScript, with step-by-step explanations. 👉 Original problem link: LeetC...Aug 18, 2025 · 2 min readcode-with-shanks.hashnode.dev
LeetCode 383. Ransom Note | Hash Map Solution in JavaScript📌 Introduction In this post, we’ll solve LeetCode 383. Ransom Note. We’ll cover a frequency map approach, and analyze the time and space complexities. Code examples will be in JavaScript, with step-by-step explanations. 👉 Original problem link: Lee...Aug 18, 2025 · 2 min readcode-with-shanks.hashnode.dev