Skip to content

hamedkiani/LeetCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

You can find my solutions for the most 50 common LeetCode problems, which I used to practice a while ago.

I believe that's a cool idea to share my experience and such materials here for those who are practicing coding interview.

Hope you find it useful :)

list of problems:



# LeetCode ID Title Level URL
0 160 Intersection of Two Linked Lists Easy https://leetcode.com/problems/intersection-of-two-linked-lists/
1 350 Intersection of Two Arrays II Easy https://leetcode.com/problems/intersection-of-two-arrays-ii/
2 141 Linked List Cycle Easy https://leetcode.com/problems/linked-list-cycle/
3 217 Contains Duplicate Easy https://leetcode.com/problems/contains-duplicate/
4 387 First Unique Character in a String Easy https://leetcode.com/problems/first-unique-character-in-a-string/
5 121 Best Time to Buy and Sell Stock Easy https://leetcode.com/problems/best-time-to-buy-and-sell-stock/
6 235 Lowest Common Ancestor of a Binary Search Tree Easy https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/
7 237 Delete Node in a Linked List Easy https://leetcode.com/problems/delete-node-in-a-linked-list/
8 20 Valid Parentheses Easy https://leetcode.com/problems/valid-parentheses/
9 283 Move Zeroes Easy https://leetcode.com/problems/move-zeroes/
10 70 Climbing Stairs Easy https://leetcode.com/problems/climbing-stairs/
11 268 Missing Number Easy https://leetcode.com/problems/missing-number/
12 122 Best Time to Buy and Sell Stock II Easy https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/
13 108 Convert a Sorted Array to a BST Easy https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/
14 191 Number of 1 Bits Easy https://leetcode.com/problems/number-of-1-bits/
15 169 Majority Element Easy https://leetcode.com/problems/majority-element/
16 101 Symmetric Tree Easy https://leetcode.com/problems/symmetric-tree/
17 412 Fizz Buzz Easy https://leetcode.com/problems/fizz-buzz/
18 189 Rotate Array Easy https://leetcode.com/problems/rotate-array/
19 543 Diameter of Binary Tree Easy https://leetcode.com/problems/diameter-of-binary-tree/
20 242 Valid Anagram Easy https://leetcode.com/problems/valid-anagram/
21 234 Palindrome Linked List Easy https://leetcode.com/problems/palindrome-linked-list/
22 145 Binary tree Postorder Traversal Hard https://leetcode.com/problems/binary-tree-postorder-traversal/
23 79 Word search Medium https://leetcode.com/problems/word-search/
24 102 Binary Tree Level Order Traversal Medium https://leetcode.com/problems/binary-tree-level-order-traversal/
25 287 Find the Duplicate Number Medium https://leetcode.com/problems/find-the-duplicate-number/
26 215 Kth Largest Element in an Array Medium https://leetcode.com/problems/kth-largest-element-in-an-array/
27 179 Largest Number Medium https://leetcode.com/problems/largest-number/
28 378 Kth Smallest Element in a Sorted Matrix Medium https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/
29 200 Number of Islands Medium https://leetcode.com/problems/number-of-islands/
30 11 Container With Most Water Medium https://leetcode.com/problems/container-with-most-water/
31 236 Lowest Common Ancestor of a Binary Tree Medium https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/
32 240 Search a 2D Matrix II Medium https://leetcode.com/problems/search-a-2d-matrix-ii/
33 347 Top K Frequent Elements Medium https://leetcode.com/problems/top-k-frequent-elements/
34 230 Kth Smallest Element in a BST Medium https://leetcode.com/problems/kth-smallest-element-in-a-bst/
35 2 Add Two Numbers Medium https://leetcode.com/problems/add-two-numbers/
36 48 Rotate Image Medium https://leetcode.com/problems/rotate-image/
37 152 Maximum Product Subarray Medium https://leetcode.com/problems/maximum-product-subarray/
38 454 4Sum II Medium https://leetcode.com/problems/4sum-ii/
39 56 Merge Intervals Medium https://leetcode.com/problems/merge-intervals/
40 73 Set matrix zero Medium https://leetcode.com/problems/set-matrix-zeroes/
41 238 Product of Array Except Self Medium https://leetcode.com/problems/product-of-array-except-self/
42 94 Binary Tree Inorder Traversal Medium https://leetcode.com/problems/binary-tree-inorder-traversal/
43 49 Group Anagrams Medium https://leetcode.com/problems/group-anagrams/
44 144 Binary Tree Preorder Traversal Medium https://leetcode.com/problems/binary-tree-preorder-traversal/
45 22 Generate Parentheses Medium https://leetcode.com/problems/generate-parentheses/
46 150 Evaluate Reverse Polish Notation Medium https://leetcode.com/problems/evaluate-reverse-polish-notation/
47 62 Unique Paths Medium https://leetcode.com/problems/unique-paths/
48 322 Coin Change Medium https://leetcode.com/problems/coin-change/
49 15 3Sum Medium https://leetcode.com/problems/3sum/