Git Product home page Git Product logo

leetcode-java's Introduction

LeetCode

Run leet to generate the file for solution automatically.

leet problem_number problem_link language difficulty

For example:

leet 75 https://leetcode.com/problems/sort-colors/ java m

Then the file will be generated (e.g., 75-Sort-Colors.java). And the prompt will ask you whether you want to 1) append the entry to the table, 2) open the file to solve the problem, 3) and commit your work.

A short demo is below

demo

Problems and Solutions

No. Problem Title Difficulty Solution
1 Two Sum Easy java
2 Add Two Numbers Medium java
3 Longest Substring Without Repeating Characters Medium java
4 Median Of Two Sorted Arrays Hard java
5 Longest Palindromic Substring Medium java
6 Zigzag Conversion Medium java
7 Reverse Integer Easy java
8 String To Integer Atoi Medium java
9 Palindrome Number Easy java
10 Regular Expression Matching Hard java
11 Container With Most Water Medium java
12 Integer To Roman Medium java
13 Roman To Integer Easy java
14 Longest Common Prefix Easy java
15 3sum Medium java
16 3sum Closest Medium java
17 Letter Combinations Of A Phone Number Medium java
18 4sum Medium java
19 Remove Nth Node From End Of List Medium java
20 Valid Parentheses Easy java
21 Merge Two Sorted Lists Easy java
22 Generate Parentheses Medium java
23 Merge K Sorted Lists Hard java
24 Swap Nodes In Pairs Medium java
25 Reverse Nodes In K Group Hard java
26 Remove Duplicates From Sorted Array Easy java
27 Remove Element Easy java
28 Implement Strstr Easy java
29 Divide Two Integers Medium java
30 Substring With Concatenation Of All Words Hard java
31 Next Permutation Medium java
32 Longest Valid Parentheses Hard java
33 Search In Rotated Sorted Array Medium java
34 Find First And Last Position Of Element In Sorted Array Medium java
35 Search Insert Position Easy java
36 Valid Sudoku Medium java
37 Sudoku Solver Hard java
38 Count And Say Medium java
39 Combination Sum Medium java
40 Combination Sum Ii Medium java
41 First Missing Positive Hard java
42 Trapping Rain Water Hard java
43 Multiply Strings Medium java
44 Wildcard Matching Hard java
45 Jump Game Ii Medium java
46 Permutations Medium java
47 Permutations Ii Medium java
48 Rotate Image Medium java
49 Group Anagrams Medium java
50 Powx N Medium java
51 N Queens Hard java
52 N Queens Ii Hard java
53 Maximum Subarray Easy java
54 Spiral Matrix Medium java
55 Jump Game Medium java
56 Merge Intervals Medium java
57 Insert Interval Medium java
58 Length Of Last Word Easy java
59 Spiral Matrix Ii Medium java
60 Permutation Sequence Hard java
61 Rotate List Medium java
62 Unique Paths Medium java
63 Unique Paths Ii Medium java
64 Minimum Path Sum Medium java
65 Valid Number Hard java
66 Plus One Easy java
67 Add Binary Easy java
68 Text Justification Hard java
69 Sqrtx Easy java
70 Climbing Stairs Easy java
71 Simplify Path Medium java
72 Edit Distance Hard java
73 Set Matrix Zeroes Medium java
74 Search A 2d Matrix Medium java
75 Sort Colors Medium java
76 Minimum Window Substring Hard java
77 Combinations Medium java
78 Subsets Medium java
79 Word Search Medium java
80 Remove Duplicates From Sorted Array Ii Medium java
81 Search In Rotated Sorted Array Ii Medium java
82 Remove Duplicates From Sorted List Ii Medium java
83 Remove Duplicates From Sorted List Easy java
84 Largest Rectangle In Histogram Hard java
85 Maximal Rectangle Hard java
86 Partition List Medium java

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.