Easy
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
1. A + B Problem 2. Trailing Zeros 6. Merge Two Sorted Arrays 8. Rotate String 9. Fizz Buzz 13. Implement strStr() 14. First Position of Target 22. Flatten List 28. Search a 2D Matrix 30. Insert Interval 35. Reverse Linked List 39. Recover Rotated Sorted Array 41. Maximum Subarray 44. Minimum Subarray 46. Majority Element 50. Product of Array Exclude Itself 53. Reverse Words in a String 55. Compare Strings 56. Two Sum 60. Search Insert Position 64. Merge Sorted Array 66. Binary Tree Preorder Traversal 67. Binary Tree Inorder Traversal 68. Binary Tree Postorder Traversal 69. Binary Tree Level Order Traversal 80. Median 82. Single Number 85. Insert Node in a Binary Search Tree 93. Balanced Binary Tree 96. Partition List 97. Maximum Depth of Binary Tree 100. Remove Duplicates from Sorted Array 101. Remove Duplicates from Sorted Array II 109. Triangle 110. Minimum Path Sum 111. Climbing Stairs 112. Remove Duplicates from Sorted List 114. Unique Paths 115. Unique Paths II 128. Hash Function 133. Longest Word 138. Subarray Sum 141. Sqrt(x) 142. O(1) Check Power of 2 155. Minimum Depth of Binary Tree 156. Merge Intervals 157. Unique Characters 158. Valid Anagram 165. Merge Two Sorted Lists 166. Nth to Last Node in List 167. Add Two Numbers 172. Remove Element 173. Insertion Sort List 174. Remove Nth Node From End of List 175. Invert Binary Tree 177. Convert Sorted Array to Binary Search Tree With Minimal Height 181. Flip Bits 185. Matrix Zigzag Traversal 197. Permutation Index 204. Singleton 209. First Unique Character in a String 210. Null-terminated String 211. String Permutation 212. Space Replacement 213. String Compression 216. Substring Rotation 217. Remove Duplicates from Unsorted List 227. Mock Hanoi Tower by Stacks 236. Swap Bits 237. Missing Integer 238. Monochrome Screen 242. Convert Binary Tree to Linked Lists by Depth 243. Amicable Pair 245. Subtree 246. Binary Tree Path Sum II 254. Drop Eggs 272. Climbing Stairs II 365. Count 1 in Binary 372. Delete Node in a Linked List 373. Partition Array by Odd and Even 375. Clone Binary Tree 376. Binary Tree Path Sum 389. Valid Sudoku 397. Longest Continuous Increasing Subsequence 407. Plus One 408. Add Binary 413. Reverse Integer 415. Valid Palindrome 420. Count and Say 422. Length of Last Word 423. Valid Parentheses 433. Number of Islands 445. Cosine Similarity 451. Swap Nodes in Pairs 453. Flatten Binary Tree to Linked List 457. Classical Binary Search 458. Last Position of Target 459. Closest Number in Sorted Array 462. Total Occurrence of Target 464. Sort Integers II 467. Complete Binary Tree 468. Symmetric Binary Tree 469. Same Tree 470. Tweaked Identical Binary Tree 474. Lowest Common Ancestor II 480. Binary Tree Paths 481. Binary Tree Leaf Sum 482. Binary Tree Level Sum 487. Name Deduplication 488. Happy Number 490. Set of Stacks 491. Palindrome Number 492. Implement Queue by Linked List 493. Implement Queue by Linked List II 494. Implement Stack by Two Queues 495. Implement Stack 496. Toy Factory 497. Shape Factory 499. Word Count (Map Reduce) 500. Inverted Index 514. Paint Fence 517. Ugly Number 519. Consistent Hashing 521. Remove Duplicate Numbers in Array 524. Left Pad 537. N-Gram (Map Reduce) 539. Move Zeroes 543. Kth Largest in N Arrays 546. Implement Queue by Interface 547. Intersection of Two Arrays 548. Intersection of Two Arrays II 551. Nested List Weight Sum 554. Sort Integers (Map Reduce) 557. Count Characters 560. Friendship Service 569. Add Digits 595. Binary Tree Longest Consecutive Sequence 596. Minimum Subtree 597. Subtree with Maximum Average 599. Insert into a Cyclic Sorted List 604. Window Sum 607. Two Sum III - Data structure design 626. Rectangle Overlap 627. Longest Palindrome 628. Maximum Subtree 637. Valid Word Abbreviation 638. Isomorphic Strings 642. Moving Average from Data Stream 644. Strobogrammatic Number 646. First Position Unique Character 647. Find All Anagrams in a String 655. Add Strings 658. Swap Without Extra Variable (Only C++) 661. Convert BST to Greater Tree 662. Guess Number Higher or Lower 671. Rotate Words 680. Split String 684. Missing String 697. Sum of Square Numbers 702. Concatenated String with Uncommon Characters of Two Strings 720. Rearrange a String With Integers 730. Sum of All Subsets 737. Find Elements in Matrix 745. Palindromic Ranges 749. John's backyard garden 764. Calculate Circumference And Area 765. Valid Triangle 766. Leap Year 767. Reverse Array 768. Yang Hui Triangle 769. Spiral Array 770. Maximum and Minimum 771. Double Factorial 777. Valid Perfect Square 784. The Longest Common Prefix II 786. Linked List Weighted Sum In Reverse Order 792. Kth Prime Number 797. Reach a Number 807. Palindrome Number II 813. Find Anagram Mappings 822. Reverse Order Storage 823. Input Stream 828. Word Pattern 830. String Sort 834. Remove Duplicate Letters 835. Hamming Distance 836. Partition to K Equal Sum Subsets 837. Palindromic Substrings 838. Subarray Sum Equals K 839. Merge Two Sorted Interval Lists 844. Number Pair Statistics 845. Greatest Common Divisor 846. Multi-keyword Sort 856. Sentence Similarity 868. Maximum Average Subarray I 888. Valid Word Square 891. Valid Palindrome II 895. Friend Request 897. Island City 900. Closest Binary Search Tree Value 914. Flip Game 916. Palindrome Permutation 920. Meeting Rooms 932. Friends Within Three Jumps 943. Range Sum Query - Immutable 949. Fibonacci II 951. Rearrange 952. Digital Problem 956. Data Segmentation 957. Radar Detection 958. Palindrome Data Stream 970. Big Business 973. 1-bit and 2-bit Characters 977. Base 7 983. Baseball Game 987. Binary Number with Alternating Bits 988. Arranging Coins 993. Array Partition I 1005. Largest Triangle Area 1006. Subdomain Visit Count 1011. Number of Lines To Write String 1013. Unique Morse Code Words 1017. Similar RGB Color 1028. Rotated Digits 1032. Letter Case Permutation 1033. Minimum Distance Between BST Nodes 1038. Jewels and Stones 1042. Toeplitz Matrix 1046. Prime Number of Set Bits in Binary Representation 1054. Min Cost Climbing Stairs 1056. Find Smallest Letter Greater Than Target 1062. Flood Fill 1068. Find Pivot Index 1071. Longest Word in Dictionary 1078. Degree of an Array 1079. Count Binary Substrings 1080. Max Area of Island 1085. Longest Univalue Path 1086. Repeated String Match 1094. Second Minimum Node In a Binary Tree 1099. Non-decreasing Array 1104. Judge Route Circle 1112. Set Mismatch 1119. Maximum Product of Three Numbers 1126. Merge Two Binary Trees 1137. Construct String from Binary Tree 1138. Can Place Flowers 1143. Minimum Index Sum of Two Lists 1144. Range Addition II 1148. Longest Harmonious Subsequence 1157. Shortest Unsorted Continuous Subarray 1163. Distribute Candies 1165. Subtree of Another Tree 1170. Reshape the Matrix 1172. Binary Tree Tilt 1173. Reverse Words in a String III 1178. Student Attendance Record I 1181. Diameter of Binary Tree 1187. K-diff Pairs in an Array 1188. Minimum Absolute Difference in BST 1192. Longest Uncommon Subsequence I 1193. Detect Capital 1199. Perfect Number 1200. Relative Ranks 1203. Find Mode in Binary Search Tree 1204. Keyboard Row 1206. Next Greater Element I 1209. Construct the Rectangle 1214. License Key Formatting 1216. Largest Palindrome Product 1218. Number Complement 1219. Heaters 1225. Island Perimeter 1227. Repeated Substring Pattern 1228. Poor Pigs 1230. Assign Cookies 1231. Minimum Moves to Equal Array Elements 1236. Find All Numbers Disappeared in an Array 1237. Number of Boomerangs 1243. Number of Segments in a String 1253. Convert a Number to Hexadecimal 1254. Sum of Left Leaves 1256. Nth Digit 1266. Find the Difference 1270. Ransom Note 1282. Reverse Vowels of a String 1285. Power of Four 1294. Power of Three 1300. Nim Game 1305. Integer to English Words 1314. Power of Two 1319. Contains Duplicate II 1320. Contains Duplicate 1324. Count Primes 1332. Number of 1 Bits 1334. Rotate Array 1347. Factorial Trailing Zeroes 1348. Excel Sheet Column Number 1350. Excel Sheet Column Title 1354. Pascal's Triangle II 1360. Symmetric Tree 1368. Same Number 1380. Log Sorting 1385. Lucky Number Eight 1386. Cable Car Ride 1398. K Decimal Addition 1401. Twitch Words 1410. Matrix Water Injection 1415. Residual Product 1417. Weighing Problem 1443. Longest AB Substring 1445. Delete Characters 1455. Valid Array 1459. Judge the last number 1471. Set Operation 1472. Twins Strings 1478. Closest Target Value 1479. Can Reach The Endpoint 1480. Dot Product 1486. Function Runtime 1540. Can Convert 1546. Coin Problem 1559. Take the element and query the sum 1617. Array Maximum Difference