[go: up one dir, main page]

0% found this document useful (0 votes)
21 views2 pages

DSA Linear Techniques LeetCode Problems

The document lists handpicked LeetCode data structures and algorithms (DSA) problems categorized by technique. Techniques include Sliding Window, Two Pointers, Prefix Sum, Hashing, Stack-based Techniques, Queue and Deque, Greedy, Binary Search on Answer, Kadane's Algorithm, and In-place Modification, each with specific problems. This serves as a resource for practicing various algorithmic strategies.

Uploaded by

medarsantosh04
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views2 pages

DSA Linear Techniques LeetCode Problems

The document lists handpicked LeetCode data structures and algorithms (DSA) problems categorized by technique. Techniques include Sliding Window, Two Pointers, Prefix Sum, Hashing, Stack-based Techniques, Queue and Deque, Greedy, Binary Search on Answer, Kadane's Algorithm, and In-place Modification, each with specific problems. This serves as a resource for practicing various algorithmic strategies.

Uploaded by

medarsantosh04
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Handpicked LeetCode DSA Problems by Technique

Sliding Window
1. Maximum Sum Subarray of Size K

2. Longest Substring Without Repeating Characters

3. Minimum Window Substring

4. Longest Substring with K Distinct Characters

Two Pointers
1. Two Sum II - Input array is sorted

2. Remove Duplicates from Sorted Array

3. Valid Palindrome

4. Container With Most Water

Prefix Sum
1. Subarray Sum Equals K

2. Find Pivot Index

3. Range Sum Query - Immutable

4. Contiguous Array (Equal 0s and 1s)

Hashing
1. Top K Frequent Elements

2. Group Anagrams

3. Contains Duplicate

4. Longest Consecutive Sequence

Stack-based Techniques
1. Valid Parentheses

2. Daily Temperatures

3. Largest Rectangle in Histogram

4. Next Greater Element I


Queue and Deque
1. Sliding Window Maximum

2. First Negative Integer in Every Window of Size K

3. Implement Queue using Stacks

4. Design Circular Queue

Greedy
1. Jump Game

2. Gas Station

3. Candy

4. Non-overlapping Intervals

Binary Search on Answer


1. Koko Eating Bananas

2. Capacity To Ship Packages Within D Days

3. Minimum Number of Days to Make m Bouquets

4. Split Array Largest Sum

Kadane's Algorithm
1. Maximum Subarray

2. Maximum Sum Circular Subarray

3. Maximum Product Subarray

In-place Modification
1. Remove Element

2. Sort Colors (Dutch National Flag Problem)

3. Rotate Array

4. Move Zeroes

You might also like