SShanksincode-with-shanks.hashnode.dev·Sep 5, 2025 · 2 min readLeetCode 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...00
SShanksincode-with-shanks.hashnode.dev·Sep 5, 2025 · 4 min readLeetCode 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...00
SShanksincode-with-shanks.hashnode.dev·Aug 22, 2025 · 3 min readLeetCode 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...00
SShanksincode-with-shanks.hashnode.dev·Aug 18, 2025 · 2 min readLeetCode 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...00
SShanksincode-with-shanks.hashnode.dev·Aug 18, 2025 · 2 min readLeetCode 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...00