Skip to content

❓此项目记录leetcode的算法题题解,使用javascript语言。

Notifications You must be signed in to change notification settings

w3csky/leetcode-answer

 
 

Repository files navigation

leetcode-answer

此项目记录leetcode的算法题题解,使用javascript语言。

已做的题目:

No. Title Solution Difficulty
1 Two Sum JavaScript Easy
9 Palindrome Number JavaScript Easy
13 Roman to Integer JavaScript Easy
20 Valid Parentheses JavaScript Easy
21 Merge Two Sorted Lists JavaScript Easy
26 Remove Duplicates from Sorted Array JavaScript Easy
27 Remove Element JavaScript Easy
35 Search Insert Position JavaScript Easy
53 Maximum Subarray JavaScript Easy
66 Plus One JavaScript Easy
67 Add Binary                                 JavaScript   Easy  
83 Remove Duplicates from Sorted List JavaScript Easy
100 Same Tree JavaScript Easy
101 Symmetric Tree JavaScript Easy
104 Maximum Depth of Binary Tree JavaScript Easy
107 Binary Tree Level Order Traversal II JavaScript Easy
108 Convert Sorted Array to Binary Search Tree JavaScript Easy
110 Balanced Binary Tree JavaScript Easy
111 Minimum Depth of Binary Tree JavaScript Easy
112 Path Sum JavaScript Easy
118 Pascal's Triangle JavaScript Easy
119 Pascal's Triangle II JavaScript Easy
121 Best Time to Buy and Sell Stock JavaScript Easy
122 Best Time to Buy and Sell Stock II JavaScript Easy
136 Single Number JavaScript Easy
167 Two Sum II - Input array is sorted JavaScript Easy
169 Majority Element JavaScript Easy
171 Excel Sheet Column Number JavaScript Easy
191 Number of 1 Bits JavaScript Easy
202 Happy Number JavaScript Easy
203 Remove Linked List Elements JavaScript Easy
205 Isomorphic Strings JavaScript Easy
206 Reverse Linked List JavaScript Easy
217 Contains Duplicate JavaScript Easy
226 Invert Binary Tree JavaScript Easy
231 Power of Two JavaScript Easy
234 Palindrome Linked List JavaScript Easy
235 Lowest Common Ancestor of a Binary Search Tree JavaScript Easy
237 Delete Node in a Linked List JavaScript Easy
242 Valid Anagram JavaScript Easy
257 Binary Tree Paths JavaScript Easy
258 Add Digits JavaScript Easy
263 Ugly Number JavaScript Easy
268 Missing Number JavaScript Easy
283 Move Zeroes JavaScript Easy
290 Word Pattern JavaScript Easy
292 Nim Game JavaScript Easy
326 Power of Three JavaScript Easy
342 Power of Four JavaScript Easy
344 Reverse String JavaScript Easy
345 Reverse Vowels of a String JavaScript Easy
347 Path Sum III JavaScript Easy
349 Intersection of Two Arrays JavaScript Easy
350 Intersection of Two Arrays II JavaScript Easy
367 Valid Perfect Square JavaScript Easy
371 Sum of Two Integers JavaScript Easy
383 Ransom Note JavaScript Easy
387 First Unique Character in a String JavaScript Easy
389 Find the Difference JavaScript Easy
401 Binary Watch JavaScript Easy
404 Sum of Left Leaves JavaScript Easy
405 Convert a Number to Hexadecimal JavaScript Easy
409 Longest Palindrome JavaScript Easy
412 Fizz Buzz JavaScript Easy
415 Add Strings JavaScript Easy
434 Number of Segments in a String JavaScript Easy
438 Find All Anagrams in a String JavaScript Easy
441 Arranging Coins JavaScript Easy
448 Find All Numbers Disappeared in an Array JavaScript Easy
453 Minimum Moves to Equal Array Elements JavaScript Easy
455 Assign Cookies JavaScript Easy
459 Repeated Substring Pattern JavaScript Easy
461 Hamming Distance JavaScript Easy
463 Island Perimeter JavaScript Easy
485 Max Consecutive Ones JavaScript Easy
492 Construct the Rectangle JavaScript Easy
495 Next Greater Element I JavaScript Easy
500 Keyboard Row JavaScript Easy
501 Find Mode in Binary Search Tree JavaScript Easy
504 Base 7 JavaScript Easy
506 Relative Ranks JavaScript Easy
507 Perfect Number JavaScript Easy
520 Detect Capital JavaScript Easy
520 Detect Capital JavaScript Easy
521 Longest Uncommon Subsequence I JavaScript Easy
530 Minimum Absolute Difference in BST JavaScript Easy
538 Convert BST to Greater Tree JavaScript Easy
541 Reverse String II JavaScript Easy
543 Diameter of Binary Tree JavaScript Easy
551 Student Attendance Record I JavaScript Easy
561 Array Partition I JavaScript Easy
557 Reverse Words in a String III JavaScript Easy
566 Reshape the Matrix JavaScript Easy
572 Subtree of Another Tree JavaScript Easy
575 Distribute Candies JavaScript Easy
594 Longest Harmonious Subsequence JavaScript Easy
598 Range Addition II JavaScript Easy
599 Minimum Index Sum of Two Lists JavaScript Easy
606 Construct String from Binary Tree JavaScript Easy
617 Merge Two Binary Trees JavaScript Easy
628 Maximum Product of Three Numbers JavaScript Easy
637 Average of Levels in Binary Tree JavaScript Easy
643 Maximum Average Subarray I JavaScript Easy
645 Set Mismatch JavaScript Easy
653 Two Sum IV - Input is a BST JavaScript Easy
657 Judge Route Circle JavaScript Easy
669 Trim a Binary Search Tree JavaScript Easy
671 Second Minimum Node In a Binary Tree JavaScript Easy
728 Self Dividing Numbers JavaScript Easy

About

❓此项目记录leetcode的算法题题解,使用javascript语言。

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published