hixiaoxi / Leetcode-2

Leetcode algorithm solutions together with self-made teaching videos

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Leetcode

Leetcode algorithm solutions. The solutions here does not necessarily represent the best solutions out there. It only serves as a personal project. Here only lists part of the leetcode solutions, for more leetcode algorithm solutions please visite algorithm folder.

In addition, I have made some teaching videos about solving these problems. It will show you how to approach the problem, analyze the problem and eventually solve the problem step by step.

Youtube Channel

Bilibili Channel

# Title Solution Difficulty
237 Delete Node in a Linked List Java Easy
160 Intersection of Two Linked Lists Java Easy
328 Odd Even Linked List Java Easy
292 Nim Game Java Easy
344 Reverse String Java Easy
136 Single Number Java Easy
104 Maximum Depth of Binary Tree Java Easy
258 Add Digit Java Easy
389 Find the Difference Java Easy
226 Invert Binary Tree Java Easy
283 Move Zeros Java Easy
404 Sum of Left Leaves Java Easy
409 Longest Palindrom Java Easy
383 Ransom Note Java Easy
371 Sum of Two Integer Java Easy
349 Intersection of Two Arrays Java Easy
100 Same Tree Java Easy
171 Excel Sheet Column Number Java Easy
168 Excel Sheet Column Title Java Easy
242 Valid Anagram Java Easy
387 First Unique Character in a String Java Easy
169 Majority Element Java Easy
401 Binary Watch Java Easy
217 Contains Duplicate Java Easy
219 Contains Duplicate II Java Easy
349 Intersection of Arrays Java Easy
350 Intersection of Arrays II Java Easy
415 Add Strings Java Easy
13 Roman to Integer Java Easy
206 Reverse Linked List Java Easy
405 Convert a Number to Hexadecimal Java Easy
231 Power of Two Java Easy
326 Power of Three Java Easy
342 Power of Four Java Easy
202 Happy Number Java Easy
83 Remove Duplicates from Sorted List Java Easy
26 Remove Duplicates From Sorted Array Java Easy
191 Number of 1 Bits Java Easy
121 Best Time to Buy and Sell Stock Java Easy
122 Best Time to Buy and Sell Stock II Java Easy
70 Climbing Stairs Java Easy
263 Ugly Number Java Easy
21 Merge Two Sorted Lists Java Easy
88 Merge Sorted Array Java Easy
235 Lowest Common Ancestor in a Binary Search Tree Java Easy
345 Reverse Vowels of a String Java Easy
24 Swap Nodes in Pairs Java Easy
198 House Robber Java Easy
107 Binary Tree Level Order Traversal II Java Easy
412 Fizz Buzz Java Easy
141 Linked List Cycle Java Easy
101 Symmetric Tree Java Easy
27 Remove Element Java Easy
66 Plus One Java Easy
118 Pascal Triangle Java Easy
119 Pascal Triangle II Java Easy
102 Binary Tree Level Order Traversal Java Easy
110 Balanced Binary Tree Java Easy
232 Implement Queue Using Stack Java Easy
172 Factorial Trailing Zeroes Java Easy
9 Palindrom Integer Java Easy
257 Binary Tree Paths Java Easy
36 Valid Sudoku Java Easy
374 Guess Number Higher or Lower Java Easy
112 Path Sum Java Easy
299 Bulls and Cows Java Easy
205 Isomorphic String Java Easy
38 Count and Say Java Easy
19 Remove Nth Node From End of List Java Easy
223 Rectangle Area Java Easy
290 Word Pattern Java Easy
20 Valid Parentheses Java Easy
225 Implement Stack Using Queue Java Easy
234 Palindrom Linked List Java Easy
58 Length of Last word Java Easy
203 Remove Linked List Element Java Easy
400 Nth Digit Java Easy
14 Longest Common Prefix Java Easy
67 Add Binary Java Easy
438 Find All Anagrams in A String Java Easy
190 Reverse Bits Java Easy
396 Rotate Function Java Easy
1 Two Sum Java Easy
28 Implement strStr() Java Easy
414 Third Maximum Number Java Easy
303 Range Sum Query Java Easy
204 Count Primes Java Easy
6 Zig Zag Conversion Java Easy
155 Min Stack Java Easy
125 Valid Palindrome Java Easy
278 First Bad Version Java Easy
7 Reverse Integer Java Easy
189 Rotate Arrat Java Easy
165 Compare Version Number Java Easy
8 String to Integer(atoi) Java Easy
419 Battleship in a Board Java Medium
338 Counting Bits Java Medium
413 Arithmetic Slices Java Medium
406 Queue Construction By Height Java Medium
260 Single Number III Java Medium
167 Two Sum II (Input Array is Sorted Java Medium
238 Product of Array Except Itself Java Medium
382 Linked list Random Node Java Medium
347 Top K Frequent Elements Java Medium
357 Count Numbers with Unique Digits Java Medium
384 Shuttle an Array Java Medium
268 Missing Number Java Medium
54 Spiral Matrix Java Medium
153 Find Minimum in Rotated Soeted Array Java Medium
154 Find Minimum in Rotated Soeted ArrayII Java Hard

About

Leetcode algorithm solutions together with self-made teaching videos


Languages

Language:Java 100.0%