Arrays
79 videos • 49,968 views • by Nikhil Lohia
Algorithms involving array manipulation. Check out more array based algorithms here: https://studyalgorithms.com/category/...
1
Single non-repeating element in an array (LeetCode 136) | Full solution with Examples
Nikhil Lohia
Download
2
Maximum Sub-Array Sum (LeetCode 53) | Kadane's Algorithm | Study Algorithms
Nikhil Lohia
Download
3
HackerRank - Left Rotation | Full Solution and Examples | Study Algorithms
Nikhil Lohia
Download
4
HackerRank - Equal Stacks | Full Solution with Examples and Visuals
Nikhil Lohia
Download
5
HackerRank - Missing Numbers | Full solution with examples and visuals
Nikhil Lohia
Download
6
HackerRank - Pairs | Full solution with examples and visuals
Nikhil Lohia
Download
7
HackerRank - Between Two Sets | Full Solution with Examples and Visuals | Study Algorithms
Nikhil Lohia
Download
8
Array Data Structure explained with Visuals | Why Arrays? | Study Algorithms
Nikhil Lohia
Download
9
Two Sum (LeetCode #1) | 3 Solutions with animations | Study Algorithms
Nikhil Lohia
Download
10
Search in a Rotated Sorted Array (LeetCode 33) | Full solution with examples | Study Algorithms
Nikhil Lohia
Download
11
Find all Duplicates in an Array (LeetCode 442) | Full solution with no Extra Space
Nikhil Lohia
Download
12
HackerRank - Birthday Cake Candles | Full Solution with Examples and Visuals | Study Algorithms
Nikhil Lohia
Download
13
HackerRank - Equal | Full Solution with Simplified Examples and Visuals | Study Algorithms
Nikhil Lohia
Download
14
HackerRank - Minimum Loss | Full solution with visuals and examples | Study Algorithms
Nikhil Lohia
Download
15
Stock Span Problem (Leetcode 901) | Online Stock Span | Simplified w/ animations | Study Algorithms
Nikhil Lohia
Download
16
Container With Maximum Water (LeetCode 11) | Full Solution with Visuals | Study Algorithms
Nikhil Lohia
Download
17
Rotate Image (Leetcode 48) | Full solution with examples visuals and animation | Study Algorithms
Nikhil Lohia
Download
18
First and Last Position of Element Sorted Array (LeetCode 34) | Full Solution | Study Algorithms
Nikhil Lohia
Download
19
Find the duplicate number (LeetCode 287) | Full solution with different methods | Study Algorithms
Nikhil Lohia
Download
20
Number of Good Pairs (LeetCode 1512) | Full solution with visuals and examples | Study Algorithms
Nikhil Lohia
Download
21
Numbers Smaller than current Number (LeetCode 1365) | Full solution with examples | Study Algorithms
Nikhil Lohia
Download
22
Search Insert Position (LeetCode 35) | Full solution with examples animations | Study Algorithms
Nikhil Lohia
Download
23
Climbing Stairs (LeetCode 70) | Full solution with animations | Dynamic Easy | Study Algorithms
Nikhil Lohia
Download
24
Move Zeroes (LeetCode 283) | Full Solution explained with examples | Study Algorithms
Nikhil Lohia
Download
25
Find the disappearing numbers (LeetCode 448) | Full solution with examples | Study Algorithms
Nikhil Lohia
Download
26
Subsets (LeetCode 78) | Full solution with backtracking examples | Interview | Study Algorithms
Nikhil Lohia
Download
27
Permutations (LeetCode 46) | Full solution with backtracking examples | Interview | Study Algorithms
Nikhil Lohia
Download
28
Subsets 2 (LeetCode 90) | Full solution with backtracking examples | Interview | Study Algorithms
Nikhil Lohia
Download
29
Permutations 2 (LeetCode 47) | Full solution with backtracking examples | Study Algorithms
Nikhil Lohia
Download
30
Next Greater Element 1 (LeetCode 496) | Full solution with examples and animation | Study Algorithms
Nikhil Lohia
Download
31
Daily Temperatures (LeetCode 739) | Full solution with animations and examples | Study Algorithms
Nikhil Lohia
Download
32
Top K Frequent Elements (LeetCode 347) | Full solution with examples | Interview | Study Algorithms
Nikhil Lohia
Download
33
Contains Duplicate (LeetCode 217) | Full solution with HashSet explanation | Study Algorithms
Nikhil Lohia
Download
34
Squares of Sorted Array (LeetCode 977) | Full Solution with examples & animation | Study Algorithms
Nikhil Lohia
Download
35
Product of Array Except Self (LeetCode 238) | Full solution with visuals | Study Algorithms
Nikhil Lohia
Download
36
Longest Consecutive Sequence (LeetCode 128) | Full solution quick and easy explanation | Interviews
Nikhil Lohia
Download
37
House Robber (LeetCode 198) | Full solution with diagrams | Easy explanation | Study Algorithms
Nikhil Lohia
Download
38
House Robber 2 (LeetCode 213) | Full solution with easy explanation | Diagrams | Study Algorithms
Nikhil Lohia
Download
39
Count Servers that Communicate (LeetCode 1267) | Full solution with visuals | Study Algorithms
Nikhil Lohia
Download
40
Set Matrix Zeroes (LeetCode 73) | Full solution 3 different ways with diagrams and visuals
Nikhil Lohia
Download
41
Best Time To Buy & Sell Stock 1 (LeetCode 121) | Full solution with visuals and animation
Nikhil Lohia
Download
42
Majority Element (LeetCode 169) | Full solution with 4 different methods | Interview Essential
Nikhil Lohia
Download
43
Missing Number (LeetCode 268) | Full solution with visuals and diagrams | Study Algorithms
Nikhil Lohia
Download
44
Spiral Matrix (LeetCode 54) | Full Solution with Visualizations | Study Algorithms
Nikhil Lohia
Download
45
Sort Colors (LeetCode 75) | Dutch National Flag Problem | Full Solution with Visuals and Animations
Nikhil Lohia
Download
46
3 Sum (LeetCode 15) | Full solution with examples and visuals | Interview Essential
Nikhil Lohia
Download
47
Three Sum Closest (LeetCode 16) | Full Solution with visual explanation | Interview Essential
Nikhil Lohia
Download
48
Merge Intervals (LeetCode 56) | Full Solution with diagrams and visuals | Interview Essential
Nikhil Lohia
Download
49
Search a 2D matrix (LeetCode 74) | Full solution with visual examples and proof
Nikhil Lohia
Download
50
Maximum Product Sub-array (LeetCode 152) | Full Solution with animations and proof | Simplified
Nikhil Lohia
Download
51
Shuffle String (LeetCode 1528) | Full solution with diagrams | Easy Explanation
Nikhil Lohia
Download
52
Maximum Average Subarray (LeetCode 643) | Sliding Window Algorithm | Full solution with animations
Nikhil Lohia
Download
53
Jump Game (LeetCode 55) | Full solution with animations and visuals | Greedy Algorithms
Nikhil Lohia
Download
54
Fruits in Basket (LeetCode 904) | Solution with diagrams and animations | Simplified explanation
Nikhil Lohia
Download
55
Maximum Vowels in a Substring (LeetCode 1456) | Full solution with animations | Sliding Window
Nikhil Lohia
Download
56
Jump Game 2 (LeetCode 45) | Minimum jumps to reach end of array | Explanation with Animations
Nikhil Lohia
Download
57
Maximum Length of Repeated Subarray (LeetCode 718) | Longest Common Substring | Simplified
Nikhil Lohia
Download
58
Jump Game 3 (LeetCode 1306) | Simplified solution with diagrams | Level Order Traversal | BFS
Nikhil Lohia
Download
59
Longest Increasing Subsequence (LeetCode 300) | Detailed solution with animations and diagrams
Nikhil Lohia
Download
60
Boats to Save People (LeetCode 881) | Full Solution with diagrams and visuals | Greedy
Nikhil Lohia
Download
61
Decode Ways (LeetCode 91) | Full Solution with visuals | Recursion to Dynamic Programming
Nikhil Lohia
Download
62
Kth Missing Positive Number (LeetCode 1539) | Full Solution with intuition, animations and visuals
Nikhil Lohia
Download
63
Koko Eating Bananas (LeetCode 875) | Full solution with beautiful diagrams and visualizations
Nikhil Lohia
Download
64
Max Consecutive Ones (LeetCode 485) | Full Solution w/ Kadane's Algorithm | Visuals and Animations
Nikhil Lohia
Download
65
Max Consecutive Ones (LeetCode 1004) | Full Solution w/ animations
Nikhil Lohia
Download
66
Minimum Size Subarray Sum (LeetCode 209) | Full solution with animations | Variable Sliding Window
Nikhil Lohia
Download
67
Maximum Product After K Increments (LeetCode 2233) | Full solution with mathematical proof | Greedy
Nikhil Lohia
Download
68
Sum of Unique Elements (LeetCode 1748) | Full solution with a frequency array
Nikhil Lohia
Download
69
Matrix Diagonal Sum (LeetCode 1572) | Full solution with visuals | 2 possible scenarios
Nikhil Lohia
Download
70
Capacity to Ship Packages Within D Days (LeetCode 1011) | Full Solution with visuals and animations
Nikhil Lohia
Download
71
Last Stone Weight (LeetCode 1046) | Full Solution with 3 different methods | Priority Queue
Nikhil Lohia
Download
72
Min Cost Climbing Stairs (LeetCode 746) | Full solution with thought process and animations
Nikhil Lohia
Download
73
Find minimum in rotated sorted array (LeetCode 153) | Full solution with visuals | Divide & Conquer
Nikhil Lohia
Download
74
Find Pivot Index (LeetCode 724) | Full solution with constant space | Very important
Nikhil Lohia
Download
75
Minimum Increments to make array unique (LeetCode 945) | Sorting
Nikhil Lohia
Download
76
Left and RIght sum differences (LeetCode 2574) | Constant space solution
Nikhil Lohia
Download
77
Unique Paths (LeetCode 62) | Full Dynamic Programming method with Memoization
Nikhil Lohia
Download
78
Non-overlapping Intervals (LeetCode 435) | Visualizing with different scenarios | Greedy
Nikhil Lohia
Download
79
Insert Interval (LeetCode 57) } Full solution with different scenarios
Nikhil Lohia
Download