Algorithmic Patterns: The Ultimate Guide to Sliding Window
The Sliding Window pattern is one of the most vital algorithmic techniques for optimizing array and string problems. Instead of repeatedly processin…
Tech news from the best sources
The Sliding Window pattern is one of the most vital algorithmic techniques for optimizing array and string problems. Instead of repeatedly processin…
Problem You are given an integer array arr. We split arr into some number of chunks (i.e., partitions), and individually sort each chunk. After conc…
Во время обучения чему-либо часто сталкиваешься с тем, что забываешь, что вообще изучал, особенно детали. Мне 18, я решил 822 задачи на LeetCode со…
Hey everyone! 👋 It's been a while since I posted here. Over the past few days, I've been revisiting SQL from the ground up—not just solving problems…
Hi, I may post some DSA / interview questions I find interesting (even if you would be unlikely to see it in an interview) from some of the books I…
Building Automated Developer Pipelines Here is how I automated my LeetCode progress, LinkedIn posting, and ATS resume updates using GitHub Actions a…
they drew a diagram. a diagram. 😒 when they draw a diagram, you know it's over. they got squares and everything. i remember trapping rain water i i…
Building Automated Developer Pipelines Here is how I automated my LeetCode progress, LinkedIn posting, and ATS resume updates using GitHub Actions a…
Disclosure: This post includes affiliate links; I may receive compensation if you purchase products or services from the different links provided in…
Documenting my daily LeetCode journey here! Today's Problem: 1512. Number of Good Pairs My First Approach My initial solution was straightforward: c…
Remove Duplicates From Sorted Array Given an integer array nums sorted in non-decreasing order, remove the duplicates in-place such that each unique…
Link https://leetcode.com/problems/subsets/description/ Problem Given an integer array nums of unique elements, return all possible subsets (the pow…
Valid Parentheses Given a string s containing just the characters ' ( ', ' ) ', ' { ', ' } ', ' [ ' and ' ] ', determine if the input string is vali…
Two Sum Given an array of integers nums and an integer target , return indices of the two numbers such that they add up to target . (You may assume…
Given the root of a binary tree, return the **## Problem Statement Given the root of a binary tree, return the maximum width of the tree. The width…
leetcode.com Problem Statement Given the root of a binary tree, return its vertical order traversal . Rules: Nodes are grouped by their column (Hori…
leetcode.com Problem Statement Given the root of a binary tree, return the nodes visible when the tree is viewed from the right side. Only the last…
leetcode.com Problem Statement Given the root of a binary tree, return the nodes visible when the tree is viewed from the left side. Only the first…
leetcode.com Problem Statement Given the root of a binary tree, return its preorder traversal. Preorder Traversal follows: Root ↓ Left ↓ Right Brute…
Problem Statement Given two version strings: version1 version2 Each version consists of revisions separated by dots ( . ). Compare the two versions.…
leetcode.com Intuition At first glance, it seems like we need to decide where to insert characters to make the string a palindrome. Instead of think…
I avoided backtracking for an embarrassingly long time. I had solved maybe 200 problems and could do graphs, DP, binary search, all of it. But the m…
leetcode.com Problem Statement You are given an m × n grid where: 0 → Empty Cell 1 → Fresh Orange 2 → Rotten Orange Every minute: A rotten orange ro…
leetcode.com Problem Statement Design a stack that supports the following operations in O(1) time: push ( x ) pop () top () getMin () getMin() shoul…
leetcode.com Problem Statement Given an array nums and an integer k , return the maximum element for every sliding window of size k . Brute Force In…
leetcode.com Problem Statement You are given two arrays: nums1 is a subset of nums2 . For every element in nums1 , find the first greater element to…
leetcode.com Problem Statement Implement a Queue using Stack operations only. Support: push () pop () peek () empty () Brute Force Intuition Use one…
leetcode.com Problem Statement Implement a Stack using only Queue operations. Support: push () pop () top () empty () Brute Force Intuition Use two…
In June 1st, 2026 - the first day of summer, I decided to make an incredible challenge: To solve 100 Leetcode problems . This was such an incredible…
Привет, Хабр! Мне 14 лет, и пока мои ровесники ругаются в cs2, а нормальные люди спят по 8 часов, я решил, что мне катастрофически не хватает стресс…