Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

👑 LeetCode of algorithms with java solution(updating).

NotificationsYou must be signed in to change notification settings

Ananya88/awesome-java-leetcode

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hey I am Ananya ,converting the written text in the repo to English so that it could be read by people all ovr the world without barrier of language preventing them to do so.

I am now an Android Developer, and I used to be an ACMer in college. I always think that data structures and algorithms must be mastered and used well as a programmer. In order to prevent data structures and algorithms from fading out of my memory, so I plan to revisit LeetCode's Algorithm. The language of choice is Java. The question bank will be improved a little bit. It will be sorted by easy, medium, and difficult, and sorted by question number under the corresponding difficulty. The source code is in the src directory, and the related problems are all in the note In the catalog, those who want to learn data structures and algorithms or plan to use LeetCode welcome star.

Now I have the opportunity to interview Facebook, and attach the interview question number of Facebook on LeetCode. I hope it can help those who want to join Facebook in the future :-)

1,10,13,15,17,20,23,25,26,28,33,38,43,44,49,50,56,57,67,68,69,71,75,7678,79,80,85,88,90,91,98,102,117,121,125,127,128,133,139,146,157,158,161168,173,200,206,208,209,210,211,215,218,221,234,235,236,238,252,253,257261,265,269,273,274,275,277,278,282,283,285,286,297,301,311,314,325,334341,377,380,398,404,410,461,477,494,523,525,534,535,543,554

If you want to know more company LeetCode interview questions, you can refer toCompanies.md.

Attached to the town house poem:

There is a stereotype of imperial examination, and now there is LeetCode.Stereotypes set the format and take the literary heart, LeetCode sets the title and repeats the answer to recite.Beautifully named: "practice makes perfect."Why is today not as good as old?No, no,The imperial examination is a national candidate, LeetCode is a Google screener, and everyone takes what they need.

Easy

#TitleTag
1Two SumArray, Hash Table
7Reverse IntegerMath
9Palindrome NumberMath
13Roman to IntegerMath, String
14Longest Common PrefixString
16.11跳水板(Diving Board LCCI)递归、记忆化
20Valid ParenthesesStack, String
21Merge Two Sorted ListsLinked List
26Remove Duplicates from Sorted ArrayArray, Two Pointers
27Remove ElementArray, Two Pointers
28Implement strStr()Two Pointers, String
35Search Insert PositionString
38Count and SayString
53Maximum SubarrayArray, Divide and Conquer, Dynamic Programming
58Length of Last WordString
66Plus OneArray, Math
67Add BinaryMath, String
69Sqrt(x)Binary Search, Math
70Climbing StairsDynamic Programming
83Remove Duplicates from Sorted ListLinked List
88Merge Sorted ArrayArray, Two Pointers
100Same TreeTree, Depth-first Search
101Symmetric TreeTree, Depth-first Search, Breadth-first Search
104Maximum Depth of Binary TreeTree, Depth-first Search
107[Binary Tree Level Order Traversal II][107]Tree, Breadth-first Search
108Convert Sorted Array to Binary Search TreeTree, Depth-first Search
110Balanced Binary TreeTree, Depth-first Search
111Minimum Depth of Binary TreeTree, Depth-first Search, Breadth-first Search
112Path SumTree, Depth-first Search
118Pascal's TriangleArray
119Pascal's Triangle IIArray
121Best Time to Buy and Sell StockArray, Dynamic Programmin
122Best Time to Buy and Sell Stock IIArray, Greedy
543Diameter of Binary TreeTree

Medium

#TitleTag
2Add Two NumbersLinked List, Math
3Longest Substring Without Repeating CharactersHash Table, Two Pointers, String
5Longest Palindromic SubstringString, Dynamic Programming
6ZigZag ConversionString
8String to Integer (atoi)Math, String
11Container With Most WaterArray, Two Pointers
12Integer to RomanMath, String
153SumArray, Two Pointers
153Sum ClosestArray, Two Pointers
17Letter Combinations of a Phone NumberString, Backtracking
184SumArray, Hash Table, Two Pointers
19Remove Nth Node From End of ListLinked List, Two Pointers
22Generate ParenthesesString, Backtracking
24Swap Nodes in PairsLinked List
29Divide Two IntegersMath, Binary Search
33Search in Rotated Sorted ArrayArrays, Binary Search
43Multiply StringsMath, String
49Group AnagramsHash Table, String
50Pow(x, n)Math, Binary Search
56Merge IntervalsArray, Sort
63不同路径 II(Unique Paths II)数组、动态规划
209长度最小的子数组(Minimum Size Subarray Sum)数组、双指针、二分查找
215数组中的第K个最大元素(Kth Largest Element in an Array)堆、分治算法
554Brick WallHash Table
1014最佳观光组合(Best Sightseeing Pair)数组

Hard

#TitleTag
4Median of Two Sorted ArraysArray, Binary Search, Divide and Conquer
10Regular Expression MatchingString, Dynamic Programming, Backtracking
23Merge k Sorted ListsLinked List, Divide and Conquer, Heap
25Reverse Nodes in k-GroupLinked List
30Substring with Concatenation of All WordsHash Table, Two Pointers, String
44Wildcard MatchingString, Dynamic Programming, Backtracking, Greedy
57Insert IntervalArray, Sort
68Text JustificationString
1028从先序遍历还原二叉树(Recover a Tree From Preorder Traversal)树、深度优先搜索

Make a small ad

Welcome to join my knowledge planet "基你太美", I will share [AucFrame](https://blankj.com/2019 /07/22/auc-frame/) Frame, Dachang Mianjing,AndroidUtilCode More detailed instructions... All the knowledge I know, you can go through Pay to enter my planet "基你太美" to experience it. After joining, you will give priority to watching the best parts of the planet. If you feel that the content of the planet is not for you Earnings, you can apply for a refund and leave the planet by yourself, and there is no need to add my friends; **If you have determined to stay on my planet, you can scan the following QR code (note: based on you are too beautiful + your planet nickname) Add my personal WeChat, so that I can pull you into the group later (PS: the earlier you enter, the cheaper the price). **

![My QR code]我的二维码

About

👑 LeetCode of algorithms with java solution(updating).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java100.0%

[8]ページ先頭

©2009-2025 Movatter.jp