Browsing Tag
leetcode
33 posts
👹 Longest Binary Subsequence K – LeetCode 2311 (C++ | JavaScript | Python )
👋 Hey, binary sleuths! 🕵️♂️💡 Today, we dive into a clever bit manipulation puzzle — LeetCode 2311: Longest…
[📝LeetCode #27] Remove Element
🎀 The Problem Given an integer array nums and an integer val, remove all occurrences of val in…
🔁 1128. Number of Equivalent Domino Pairs – Explained with Code in C++, JavaScript, and Python
If you’ve ever played with dominoes, you know that the order of the numbers doesn’t matter—[1,2] is the…
Leetcode – 290. Word Pattern
Javascript Code /** * @param {string} pattern * @param {string} s * @return {boolean} */ var wordPattern =…
[Algorithm] 151. Reverse Words in a String
Description Given an input string s, reverse the order of the words. A word is defined as a…
LeetCode Challenge: 383. Ransom Note – JavaScript Solution 🚀
Top Interview 150 The Ransom Note problem is a simple string manipulation challenge that tests your ability to…
515. Find Largest Value in Each Tree Row
515. Find Largest Value in Each Tree Row Difficulty: Medium Topics: Tree, Depth-First Search, Breadth-First Search, Binary Tree…
LeetCode Challenge: Best Time to Buy and Sell Stock II – JavaScript Solution 🚀
Top Interview 150 This problem is a classic extension of the stock profit challenge. You can make multiple…
LeetCode Problem#03
Kodning vazifasi: LengthOfLongestSubstring metodi berilgan matn ichida takrorlanmaydigan belgilardan iborat eng uzun substringning uzunligini hisoblab beradi. Va eng…
719. Find K-th Smallest Pair Distance
719. Find K-th Smallest Pair Distance Difficulty: Hard Topics: Array, Two Pointers, Binary Search, Sorting The distance of…