neetcode 75 Flashcards

(75 cards)

1
Q

Two Sum

A

Find two numbers that add up to a specific target.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Valid Anagram

A

Determine if two strings are anagrams of each other.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Group Anagrams

A

Group a list of strings into anagrams.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Top K Frequent Elements

A

Find the k most frequent elements in an array.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Product of Array Except Self

A

Calculate the product of an array except self.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Valid Sudoku

A

Determine if a Sudoku is valid.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Encode and Decode Strings

A

Encode and decode strings for transmission.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Longest Consecutive Sequence

A

Find the length of the longest consecutive elements sequence.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Valid Palindrome

A

Check if a string is a palindrome.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Three Sum

A

Find all unique triplets in an array that sum to zero.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Container With Most Water

A

Find the maximum area of water that can be contained.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Trapping Rain Water

A

Calculate how much water can be trapped after raining.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Best Time to Buy and Sell Stock

A

Find the best time to buy and sell stock for maximum profit.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Longest Substring Without Repeating Characters

A

Find the length of the longest substring without repeating characters.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Longest Repeating Character Replacement

A

Find the length of the longest substring after replacement.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Minimum Window Substring

A

Find the minimum window substring containing all characters.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Sliding Window Maximum

A

Find the maximum value in each sliding window.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Valid Parentheses

A

Check if parentheses are valid.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

Min Stack

A

Design a stack that supports push, pop, top, and retrieving the minimum element.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

Evaluate Reverse Polish Notation

A

Evaluate an expression in Reverse Polish Notation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

Generate Parentheses

A

Generate all combinations of well-formed parentheses.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

Daily Temperatures

A

Find how many days until a warmer temperature.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

Car Fleet

A

Calculate the number of car fleets that will arrive at the destination.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

Largest Rectangle in Histogram

A

Find the area of the largest rectangle in a histogram.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Binary Search
Perform binary search on a sorted array.
26
Search a 2D Matrix
Search for a target value in a 2D matrix.
27
Koko Eating Bananas
Determine the minimum eating speed for Koko.
28
Find Minimum in Rotated Sorted Array
Find the minimum element in a rotated sorted array.
29
Search in Rotated Sorted Array
Search for a target in a rotated sorted array.
30
Time Based Key-Value Store
Implement a time-based key-value store.
31
Median of Two Sorted Arrays
Find the median of two sorted arrays.
32
Reverse Linked List
Reverse a singly linked list.
33
Merge Two Sorted Lists
Merge two sorted linked lists into one sorted list.
34
Reorder List
Reorder a linked list in a specific pattern.
35
Remove Nth Node From End of List
Remove the nth node from the end of a linked list.
36
Copy List with Random Pointer
Create a deep copy of a linked list with random pointers.
37
Add Two Numbers
Add two numbers represented by linked lists.
38
Linked List Cycle
Determine if a linked list has a cycle.
39
Find the Duplicate Number
Find the duplicate number in an array.
40
LRU Cache
Design a Least Recently Used (LRU) cache.
41
Merge K Sorted Lists
Merge k sorted linked lists into one sorted list.
42
Reverse Nodes in K Group
Reverse nodes in k-group in a linked list.
43
Invert Binary Tree
Invert a binary tree.
44
Maximum Depth of Binary Tree
Find the maximum depth of a binary tree.
45
Diameter of Binary Tree
Calculate the diameter of a binary tree.
46
Balanced Binary Tree
Check if a binary tree is balanced.
47
Same Tree
Check if two binary trees are the same.
48
Subtree of Another Tree
Check if one tree is a subtree of another.
49
Lowest Common Ancestor of a BST
Find the lowest common ancestor in a binary search tree.
50
Binary Tree Level Order Traversal
Perform level order traversal of a binary tree.
51
Binary Tree Right Side View
Get the right side view of a binary tree.
52
Count Good Nodes in Binary Tree
Count the number of good nodes in a binary tree.
53
Validate Binary Search Tree
Check if a binary tree is a valid binary search tree.
54
Kth Smallest Element in a BST
Find the kth smallest element in a binary search tree.
55
Construct Binary Tree from Preorder and Inorder Traversal
Construct a binary tree from preorder and inorder traversal.
56
Binary Tree Maximum Path Sum
Find the maximum path sum in a binary tree.
57
Serialize and Deserialize Binary Tree
Serialize and deserialize a binary tree.
58
Implement Trie (Prefix Tree)
Implement a trie data structure.
59
Design Add and Search Words Data Structure
Design a data structure to add and search words.
60
Word Search II
Find all words in a board using a trie.
61
Kth Largest Element in a Stream
Find the kth largest element in a stream of numbers.
62
Last Stone Weight
Calculate the weight of the last stone after smashing.
63
K Closest Points to Origin
Find the k closest points to the origin.
64
Kth Largest Element in an Array
Find the kth largest element in an array.
65
Task Scheduler
Schedule tasks with a given cooldown.
66
Design Twitter
Design a Twitter-like system.
67
Find Median from Data Stream
Find the median from a data stream.
68
Subsets
Generate all subsets of a set.
69
Combination Sum
Find all combinations that sum to a target.
70
Permutations
Generate all permutations of a set.
71
Subsets II (Duplicates)
Generate all subsets including duplicates.
72
Combination Sum II
Find all unique combinations that sum to a target.
73
Word Search
Search for a word in a 2D board.
74
Palindrome Partitioning
Partition a string into palindromic substrings.
75
Letter Combinations of a Phone Number
Generate all letter combinations from a phone number.