Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Solving LeetCode's Top Interview Questions in Java [2026]
Rating: 4.3 out of 5(453 ratings)
60,880 students

Solving LeetCode's Top Interview Questions in Java [2026]

Expand your knowledge of problem solving and impress your coding interviewers.
Created byMathew Younan
Last updated 4/2026
English

What you'll learn

  • Familiarity working with Arrays, Strings, Trees, Linked Lists and many other data structures
  • Exposure to the most common questions asked in interviews
  • Be able to critically analyze a problem and work towards an efficient solution
  • Learn numerous tricks which can be applied to the future questions you encounter
  • Gain the confidence and skills to ace your coding interviews
  • Consider time and space complexity when designing algorithms

Course content

11 sections69 lectures15h 8m total length
  • (Easy) LeetCode 26: Remove Duplicates From Sorted Array8:30

    Remove duplicates from a sorted array in place by tracking the last unique index and a forward pointer, overwriting duplicates and returning the length with O(n) time and O(1) space.

  • (Medium) LeetCode 122: Best Time To Buy and Sell Stock II8:47

    Buy on days when the next day's price rises and sell the next day to maximize profit with multiple transactions, iterating through prices once for O(n) time and O(1) space.

  • (Medium) LeetCode 189: Rotate Array11:08

    Rotate the array to the right by k steps in place using a three-step reverse: reverse entire array, then first k, then last n-k, achieving O(n) time and O(1) space.

  • (Easy) LeetCode 217: Contains Duplicate5:36

    Learn how to solve LeetCode 217: contains duplicate in Java by using a hash set to detect repeats during a single pass, achieving O(n) time and O(n) space.

  • Understanding Binary Representation10:17

    Master binary representation by learning base two, digits, and place values from ones to powers of two, and convert between binary and decimal.

  • (Easy) LeetCode 136: Single Number11:50

    Learn how to use xor to find the unique element in an array where all others appear twice, achieving linear time and constant space.

  • (Easy) LeetCode 350: Intersection of Two Arrays II22:14

    Resolve intersection of two arrays by building a frequency hash table from nums1 and scanning nums2 to collect common elements, decrementing frequencies to respect counts.

  • (Easy) LeetCode 66: Plus One13:42

    Increment a large integer from a digits array by one, handling trailing nines and all-nines with a new array of length plus one.

  • (Easy) LeetCode 283: Move Zeroes10:49

    Move zeros to the end in place with a two-pointer approach that preserves non-zero order, swapping as needed for an O(n) time, O(1) space solution.

  • (Easy) LeetCode 1: Two Sum8:25

    Solve the two sum problem by iterating once, using a hash table to store seen numbers and return indices whose sum equals the target.

  • (Medium) LeetCode 36. Valid Sudoku16:57

    Demonstrates validating a 9x9 sudoku by ensuring rows, columns, and 3x3 boxes contain digits 1–9 using a hash set, with periods as empties, and O(n^2) time.

  • (Medium) LeetCode 48: Rotate Image16:27

    rotate an n by n matrix 90 degrees clockwise in place by transposing the matrix and reversing each row, using constant space and O(n^2) time.

  • (Medium) LeetCode 15: 3Sum22:11

    Sort the array and apply a two-pointer approach to find unique triplets that sum to zero, advancing pointers to skip duplicates.

  • (Medium) LeetCode 73: Set Matrix Zeroes21:16

    Demonstrate solving LeetCode 73 set matrix zeros in Java, moving from a copy-based approach to two-array tracking and an in-place O(1) solution using the first row and column as indicators.

  • (Medium) LeetCode 49: Group Anagrams17:20

    Group anagrams from a string array by sorting each word's letters and using a hash map to collect words by their sorted form. Return the lists of anagram groups.

Requirements

  • Basic understanding of data structures and algorithms
  • Fundamental understanding of Java syntax

Description

Welcome!

Hello everyone, and welcome to the course that will help you prepare for your coding interviews!


Specifically, we will be breaking down the problems of LeetCode's Top Interview Questions playlist. This playlist includes problems that are very commonly asked by interviewers from large tech companies such as Apple, Meta, Google, Uber, and many more! We will learn how to approach problems of all kinds, such as those consisting of Arrays, Strings, Linked Lists, Trees, Dynamic Programming, Design, Math, and general knowledge, while also learning useful concepts and tricks which will help when facing more difficult problems.


What is LeetCode?

Simply put, LeetCode is a large repository filled with interview questions asked by the top tech companies around the world (Google, Facebook, Amazon, and many more).

The main problem as a new user on LeetCode is that there are ENDLESS amounts of questions that you can find on there so you may not know which questions are the most common/beneficial to go over. This course's purpose is to provide a solution to this issue, as I go over the Top Inteview Questions recommended by LeetCode. If you are looking to ace your upcoming coding interview or even just to strengthen your problem solving skills, then look no further as you have found the one-stop-shop to become a problem solving machine.

Course Overview

For each problem in the playlist, I have a video dedicated to explaining the thought process in detail which will lead us to the most efficient solution, paired with a visual to aid in explaining the algorithm. After we understand the approach for the most efficient solution, I will translate the visual into Java code, breaking down every line as I code it. After the entire solution is implemented, we will analyze the time and space complexity of the solution.

Who this course is for:

  • Developers looking to solidify their problem solving skills and ace their coding interviews