Skip to content

This repository is used to share my solutions for LeetCode problems. Solved them using Java, Python, and C languages. The difficulties of these problems range from easy to medium to hard.

License

Notifications You must be signed in to change notification settings

anand-saji/Leetcode-Solution

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Leetcode-Solution

Leetcode problems have been solved and tagged with difficulties of easy, medium, and hard. Languages used are also provided.

image

Problems and Solutions

# Problem Solution Difficulty Tags
1 Two Sum Java Easy Array, Hash Table
2 Add Two Numbers Java Medium LinkedList, Math
7 Reverse Integer Java Medium Math
9 Palindrome Number Java Easy Math
11 Container With Most Water Java Medium Two Pointers
12 Integer to Roman Java Medium String
14 Longest Common Prefix Java Easy String
15 3Sum Python3 Medium Two pointers, Sorting
18 4Sum Python3 Medium Two pointers, Sorting
21 Merge Two Sorted Lists Java Easy LinkedList
22 Generate Parentheses Java Medium Backtracking, String
23 Valid Parentheses Java Easy String, Hash Table
26 Remove Duplicates from Sorted Array Java Easy Array, Two Pointers
28 Find the Index of the First Occurrence in a String Java Medium String, String Matching
48 Rotate Image Java Medium Matrix
54 Spiral Matrix Java Medium Matrix
55 Jump Game Java Medium Array
62 Unique Paths Java Medium Dynamic Programming
64 Minimum Path Sum Java Medium Dynamic Programming
67 Add Binary Java Easy String
70 Climbing Stairs Java Easy Dynamic Programming
71 Simplify Path Java Medium Stack
73 Set Matrix Zeroes Java Medium Matrix
75 Sort Colors C Medium Array, Sort
79 Word Search Java Medium Backtracking, Matrix
83 Remove Duplicates from Sorted List Java Easy LinkedList
88 Merge Sorted Array Java Easy Array
91 Decode Ways Java Medium Dynamic Programming
100 Same Tree Java Easy Binary Tree, Recursion
121 Best Time to Buy and Sell Stock Java Easy Array
122 Best Time to Buy and Sell Stock II Java Medium Array
141 Linked List Cycle Java Easy LinkedList
149 Max Points on a Line Java Hard Matrix, Math
151 Reverse Words in a String Java Medium String
152 Maximum Product Subarray Java Medium Dynamic Programming
168 Excel Sheet Column Title Java Easy String
169 Majority Element Java Easy HashMap
171 Excel Sheet Column Number Java Easy String
202 Happy Number Java Easy Two Pointers, Math
203 Remove Linked List Elements Java Easy LinkedList
206 Reverse Linked List Java Easy LinkedList
215 Kth Largest Element in an Array Java Medium Queue
227 Basic Calculator II Java Medium String
231 Power of Two Java Easy Bit Manipulation
268 Missing Number Java Easy Math
273 Integer to English Words Java Hard String
283 Move Zeroes Java Easy String
287 Find the Duplicate Number Java Medium Array, Sort
290 Word Pattern Java Easy HashMap
322 Coin Change Java Medium Dynamic Programming
338 Counting Bits Java Easy Bit Manipulation
442 Find All Duplicates in an Array Java Medium Array
453 Minimum Moves to Equal Array Elements Java Medium Array
560 Subarray Sum Equals K Java Medium HashMap
593 Valid Square Java Medium Set
628 Maximum Product of Three Numbers Java Easy Math, Sorting
680 Valid Palindrome II Java Easy String
876 Middle of the Linked List Java Easy LinkedList
935 Knight Dialer Python3 Medium Dynamic Programming
974 Subarray Sums Divisible by K Java Medium Array
1290 Convert Binary Number in a Linked List to Integer Java Easy LinkedList
1423 Maximum Points You Can Obtain from Cards Java Medium Sliding Window
1492 The kth Factor of n Java Medium
1519 Number of Nodes in the Sub-Tree With the Same Label Java Medium Depth First Search
2194 Cells in a Range on an Excel Sheet Java Easy String

About

This repository is used to share my solutions for LeetCode problems. Solved them using Java, Python, and C languages. The difficulties of these problems range from easy to medium to hard.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published