Browsing Tag
leetcode
30 posts
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…
840. Magic Squares In Grid
840. Magic Squares In Grid Medium Topics: Array, Hash Table, Math, Matrix A 3 x 3 magic square…
2486. Append Characters to String to Make Subsequence
2486. Append Characters to String to Make Subsequence Medium You are given two strings s and t consisting…
17. Letter Combinations of a Phone Number
17. Letter Combinations of a Phone Number Medium Given a string containing digits from 2-9 inclusive, return all…