Skip to content

thyageshm/leetcode-solutions

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode Solutions

Introduction

LeetCode is a very good website to sharpen you programming/problem-solving skills. The idea to setup this repo is inspired by Haoel's repo. Java solutions are offered here for references and comparison. And also it is more like a personal practice for myself. Of course, not all solutions are optimal and your suggestions and contributions are welcomed.

Contents

# Title Solution Difficulty
1 Two Sum Java Medium
2 Add Two Numbers Java Medium
3 Longest Substring Without Repeating Characters Java Medium
7 Reverse Integer Java Easy
8 String to Integer (atoi) Java Easy
9 Palindrome Number Java Easy
11 Container With Most Water Java Medium
12 Integer to Roman Java Medium
13 Roman to Integer Java Easy
14 Longest Common Prefix Java Easy
15 3Sum Java Medium
16 3Sum Closest Java Medium
17 Letter Combinations of a Phone Number Java Medium
19 Remove Nth Node From End of List Java Easy
20 Valid Parentheses Java Easy
21 Merge Two Sorted Lists Java Easy
22 Generate Parentheses Java Medium
24 Swap Nodes in Pairs Java Medium
26 Remove Duplicates from Sorted Array Java Easy
27 Remove Element Java Easy
28 Implement strStr() Java Easy
33 Search in Rotated Sorted Array Java Hard
50 Pow(x,n) Java Medium
61 Rotate List Java Medium
66 Plus One Java Easy
67 Add Binary Java Easy
69 Sqrt(x) C++ Medium
70 Climbing Stairs Java Easy
72 Edit Distance Java Hard
73 Set Matrix Zeroes Java Medium
74 Search a 2D Matrix Java Medium
80 Remove Duplicates from Sorted Array II Java Medium
82 Remove Duplicates from Sorted List II C++ Medium
83 Remove Duplicates from Sorted List Java Easy
88 Merge Sorted Array Java Easy
136 Single Number Java Easy
141 Linked List Cycle Java Medium
142 Linked List Cycle II Java Medium
175 Combine Two Tables MySQL Easy
176 Second Highest Salary Java Easy
189 Rotate Array Java Medium
190 Reverse Bits Java Easy
191 Number of 1 Bits Java Easy
202 Happy Number Java Easy
203 Remove Linked List Elements Java Easy
206 Reverse Linked List Java Easy
233 Number of Digit One C++ Medium
237 Delete Node in a Linked List C++ Easy
258 Add Digits C++ Easy
263 Ugly Number Java Easy
274 H-Index Java Medium
275 H-index II Java Medium
283 Move Zeroes C++ Easy
284 Peeking Iterator Java Medium
287 Find the Duplicate Number Java Hard
292 Nim Game C++ Easy

About

Solutions for LeetCode

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 88.1%
  • C++ 11.9%