PinnedGrind-75 LeetCode Solutions: Mastering Algorithms and Data Structures using PythonIf you're stuck with LeetCode problems, then this blog series can offer you some useful strategies and advice to overcome them. Arrays and Hashing Two Sum Contains Duplicate Valid Anagram Group Anagrams Top K Frequent Elements Product of Array ...Mar 13, 2023·1 min read·223
Min Stack - LeetCode ProblemProblem Description Welcome to another fun coding challenge! Today, we'll be tackling the Min Stack problem. Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. push(x) -- Push element x onto stack. pop...Mar 16, 2023·3 min read·117
Valid Parentheses - LeetCode ProblemProblem Description Welcome to another fun coding challenge! Today, we'll be tackling the Valid Parentheses problem. Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. An input strin...Mar 16, 2023·3 min read·113
Minimum Window Substring - LeetCode ProblemProblem Description Given two strings s and t, return the minimum window in s which will contain all the characters in t. If there is no such window in s that covers all characters in t, return the empty string "". Note that if there is such a window...Mar 15, 2023·3 min read·112
Longest Repeating Character Replacement - LeetCode ProblemProblem Description Longest Repeating Character Replacement, Given a string s that consists of only uppercase English letters, you can perform at most k operations on that string. In one operation, you can choose any character of the string and chang...Mar 15, 2023·3 min read·120
Longest Substring Without Repeating Characters - LeetCode ProblemHey there, fellow coders! Today, we will solve an interesting problem called "Longest Substring Without Repeating Characters". The problem requires us to find the length of the longest substring without repeating characters in a given string. Problem...Mar 15, 2023·2 min read·83
Best Time to Buy and Sell Stock - LeetCode ProblemWelcome to another exciting blog post where we will be solving a LeetCode problem "Best Time to Buy and Sell Stock" in Python. This problem is perfect for beginners who want to practice their coding skills and learn about sliding windows technique. P...Mar 15, 2023·2 min read·120