• Stars
    star
    1,451
  • Rank 32,425 (Top 0.7 %)
  • Language
    C++
  • Created over 6 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Play Leetcode with different programming language

LeetCode

# Title c c++ python go js java rust Difficulty
0001 Two Sum c c++ python go js java Easy
0002 Add Two Numbers c c++ python go Medium
0003 Longest Substring Without Repeating Characters c++ python go Medium
0004 Median of Two Sorted Arrays c++ python Hard
0005 Longest Palindromic Substring c++ python go Medium
0006 ZigZag Conversion c++ python go Medium
0007 Reverse Integer c++ python go Easy
0008 String to Integer (atoi) c++ python go Medium
0009 Palindrome Number c++ python go js Easy
0010 Regular Expression Matching c++ python go Hard
0011 Container With Most Water c++ python go Medium
0012 Integer to Roman c++ python go Medium
0013 Roman to Integer c++ python go js java Easy
0014 Longest Common Prefix c++ python go Easy
0015 3Sum c++ python go Medium
0016 3Sum Closest c++ python Medium
0017 Letter Combinations of a Phone Number c++ python Medium
0018 4Sum c++ python Medium
0019 Remove Nth Node From End of List c++ python Medium
0020 Valid Parentheses c++ python go java Easy
0021 Merge Two Sorted Lists c++ python Easy
0022 Generate Parentheses c++ python Medium
0023 Merge k Sorted Lists c++ python Hard
0024 Swap Nodes in Pairs c++ python Medium
0025 Reverse Nodes in k-Group c++ python Hard
0026 Remove Duplicates from Sorted Array c++ python go js Easy
0027 Remove Element c++ python go Easy
0028 Implement strStr() c++ python Easy
0029 Divide Two Integers c++ python Medium
0030 Substring with Concatenation of All Words c++ python Hard
0031 Next Permutation c++ python Medium
0032 Longest Valid Parentheses c++ python Hard
0033 Search in Rotated Sorted Array c++ python go Medium
0034 Find First and Last Position of Element in Sorted Array c++ python Medium
0035 Search Insert Position c++ python go Easy
0036 Valid Sudoku c++ python Medium
0037 Sudoku Solver c++ python Hard
0038 Count and Say c++ python Easy
0039 Combination Sum c++ python Medium
0040 Combination Sum II c++ python Medium
0041 First Missing Positive c++ python Hard
0042 Trapping Rain Water c++ python Hard
0043 Multiply Strings c++ python Medium
0044 Wildcard Matching c++ python Hard
0045 Jump Game II c++ python Hard
0046 Permutations c++ python java Medium
0047 Permutations II c++ python java Medium
0048 Rotate Image c++ python go Medium
0049 Group Anagrams c++ python go Medium
0050 Pow(x, n) c++ python Medium
0051 N-Queens c++ python Hard
0052 N-Queens II c++ python Hard
0053 Maximum Subarray c++ python Easy
0054 Spiral Matrix c++ python Medium
0055 Jump Game c++ python go Medium
0056 Merge Intervals c++ python Medium
0057 Insert Interval c++ Medium
0058 Length of Last Word c++ python js rust Easy
0059 Spiral Matrix II c++ python Hard
0060 Permutation Sequence c++ python Medium
0061 Rotate List c++ python Medium
0062 Unique Paths c++ python Medium
0063 Unique Paths II c++ python Medium
0064 Minimum Path Sum c++ python Medium
0065 Valid Number c++ python Hard
0066 Plus One c++ python rust Easy
0067 Add Binary c++ python Easy
0068 Text Justification c++ python Hard
0069 Sqrt(x) c++ python go Easy
0070 Climbing Stairs c++ python go Easy
0071 Simplify Path c++ python Medium
0072 Edit Distance c++ python Hard
0073 Set Matrix Zeroes c++ python Medium
0074 Search a 2D Matrix c++ python Medium
0075 Sort Colors c++ python go Medium
0076 Minimum Window Substring c++ python Easy
0077 Combinations c++ python Medium
0078 Subsets c++ python Medium
0079 Word Search c++ python Medium
0080 Remove Duplicates from Sorted Array II c++ python Medium
0081 Search in Rotated Sorted Array II c++ python Medium
0082 Remove Duplicates from Sorted List II c++ python Medium
0083 Remove Duplicates from Sorted List c++ python Easy
0084 Largest Rectangle in Histogram c++ python Hard
0085 Maximal Rectangle c++ python Hard
0086 Partition List c++ python Medium
0087 Scramble String c++ python Hard
0088 Merge Sorted Array c++ python Easy
0089 Gray Code c++ python Medium
0090 Subsets II c++ python Medium
0091 Decode Ways c++ python Medium
0092 Reverse Linked List II c++ python Medium
0093 Restore IP Addresses c++ python Medium
0094 Binary Tree Inorder Traversal c++ python Medium
0095 Unique Binary Search Trees II c++ python Medium
0096 Unique Binary Search Trees c++ python Medium
0097 Interleaving String c++ python Medium
0098 Validate Binary Search Tree c++ python Medium
0099 Recover Binary Search Tree c++ python Hard
0100 Same Tree c++ python Easy
0101 Symmetric Tree c++ python Easy
0102 Binary Tree Level Order Traversal c++ python Medium
0103 Binary Tree Zigzag Level Order Traversal c++ python Medium
0104 Maximum Depth of Binary Tree c++ python Easy
0105 Construct Binary Tree from Preorder and Inorder Traversal c++ python Medium
0106 Construct Binary Tree from Inorder and Postorder Traversal c++ python Medium
0107 Binary Tree Level Order Traversal II c++ python Easy
0108 Convert Sorted Array to Binary Search Tree c++ python Easy
0109 Convert Sorted List to Binary Search Tree c++ python Medium
0110 Balanced Binary Tree c++ python Easy
0111 Minimum Depth of Binary Tree c++ python Easy
0112 Path Sum c++ python Easy
0113 Path Sum II c++ python Medium
0114 Flatten Binary Tree to Linked List c++ python Medium
0115 Distinct Subsequences c++ python Hard
0116 Populating Next Right Pointers in Each Node c++ python Medium
0117 Populating Next Right Pointers in Each Node II c++ python Medium
0118 Pascal's Triangle c++ python Easy
0119 Pascal's Triangle II c++ python Easy
0120 Triangle c++ python Medium
0121 Best Time to Buy and Sell Stock c++ python go Easy
0122 Best Time to Buy and Sell Stock II c++ python Easy
0123 Best Time to Buy and Sell Stock III c++ python Hard
0124 Binary Tree Maximum Path Sum c++ python Hard
0125 Valid Palindrome c++ python go Easy
0126 Word Ladder II c++ python Hard
0127 Word Ladder c++ python Medium
0128 Longest Consecutive Sequence c++ python go Hard
0129 Sum Root to Leaf Numbers c++ python Medium
0130 Surrounded Regions c++ python Medium
0131 Palindrome Partitioning c++ python Medium
0132 Palindrome Partitioning II c++ python Hard
0133 Clone Graph c++ python Medium
0134 Gas Station c++ python Medium
0135 Candy c++ python Hard
0136 Single Number c++ python go Easy
0137 Single Number II c++ python go Medium
0138 Copy List with Random Pointer c++ python Medium
0139 Word Break c++ python Medium
0140 Word Break II c++ python Hard
0141 Linked List Cycle c++ python Easy
0142 Linked List Cycle II c++ python Medium
0143 Reorder-List c++ python Medium
0144 Binary Tree Preorder Traversal c++ python Medium
0145 Binary Tree Postorder Traversal c++ python Hard
0146 LRU Cache c++ python Hard
0147 Insertion Sort List c++ python Medium
0148 Sort List c++ python Medium
0149 Max Points on a Line c++ python Hard
0150 Evaluate Reverse Polish Notation c++ python Medium
0151 Reverse Words in a String c++ python Medium
0152 Maximum Product Subarray c++ python go Medium
0153 Find Minimum in Rotated Sorted Array c++ python go Medium
0154 Find Minimum in Rotated Sorted Array II c++ python Hard
0155 Min Stack c++ python Easy
0160 Intersection of Two Linked Lists c++ python Easy
0162 Find Peak Element c++ python go rust Medium
0165 Compare Version Numbers c++ python Medium
0166 Fraction to Recurring Decimal c++ python Medium
0167 Two Sum II - Input array is sorted c++ python Easy
0168 Excel Sheet Column Title c++ python Easy
0169 Majority Element c++ python go rust Easy
0171 Excel Sheet Column Number c++ python Easy
0172 Factorial Trailing Zeroes c++ python Easy
0173 Binary Search Tree Iterator c++ python Medium
0174 Dungeon Game c++ python Hard
0179 Largest Number c++ python Medium
0187 Repeated-DNA-Sequences c++ python Medium
0188 Best Time to Buy and Sell Stock IV c++ python Hard
0189 Rotate Array c++ python Easy
0190 Reverse Bits c++ python go Easy
0191 Number of 1 Bits c++ python go Easy
0198 House Robber c++ python go Easy
0199 Binary Tree Right Side View c++ python Medium
0200 Number of Islands c++ python go js java Medium
0201 Bitwise AND of Numbers Range c++ python Medium
0202 Happy Number c++ python Easy
0203 Remove Linked List Elements c++ python Easy
0204 Count Primes c++ python Easy
0205 Isomorphic Strings c++ python Easy
0206 Reverse Linked List c++ python go Easy
0207 Course Schedule c++ python go js Medium
0208 Implement Trie (Prefix Tree) c++ python Medium
0209 Minimum Size Subarray Sum c++ python Medium
0210 Course Schedule II c++ python go js Medium
0211 Add and Search Word - Data structure design c++ python rust Medium
0212 Word Search II c++ python go js Medium
0213 House Robber II c++ python Medium
0215 Kth Largest Element in an Array c++ python Medium
0216 Combination Sum III c++ python Medium
0217 Contains Duplicate c++ python go Easy
0218 The Skyline Problem c++ python go js Hard
0219 Contains Duplicate II c++ python go Easy
0221 Maximal Square c++ python go js Medium
0222 Count Complete Tree Nodes c++ python Medium
0223 Rectangle Area c++ python Medium
0224 Basic Calculator c++ python go js Hard
0226 Invert Binary Tree c++ python Easy
0228 Summary Ranges c++ python Medium
0229 Majority Element II c++ python rust Medium
0230 Kth Smallest Element in a BST c++ python Medium
0231 Power of Two c++ python go Easy
0234 Palindrome Linked List c++ python Medium
0235 Lowest Common Ancestor of a Binary Search Tree c++ python Easy
0236 Lowest Common Ancestor of a Binary Tree c++ python Medium
0237 Delete Node in a Linked List c++ python Easy
0238 Product of Array Except Self c++ python go Medium
0239 Sliding Window Maximum c++ python Medium
0240 Search a 2D Matrix II c++ python Medium
0241 Different Ways to Add Parentheses c++ python Medium
0242 Valid Anagram c++ python go Easy
0242 Binary Tree Paths c++ python Easy
0253 Meeting Rooms II c++ python Medium
0260 Single Number III c++ python java Medium
0263 Ugly Number c++ python go Easy
0264 Ugly Number II c++ python Medium
0268 Missing Number c++ python go Easy
0274 H-Index c++ python go Medium
0275 H-Index c++ python go Medium
0278 First Bad Version c++ python go Easy
0279 Perfect Squares c++ python Medium
0283 Move Zeroes c++ python Easy
0287 Find the Duplicate Number c++ python Medium
0289 Game of Life c++ python Medium
0290 Word Pattern c++ python Easy
0297 Serialize and Deserialize Binary Tree c++ python js Hard
0300 Longest Increasing Subsequence c++ python rust Medium
0303 Range Sum Query - Immutable c++ python Easy
0307 Range Sum Query - Mutable c++ python go js Medium
0309 Best Time to Buy and Sell Stock with Cooldown c++ python Medium
0310 Insert Delete GetRandom O(1) c++ Medium
0316 Remove Duplicate Letters c++ python Hard
0319 Bulb Switcher c++ python go Medium
0322 Coin-Change c++ python go js java Medium
0325 Maximum Size Subarray Sum Equals k c++ python Medium
0326 Power of Three c++ go rust Easy
0328 Odd Even Linked List c++ python Medium
0331 Verify Preorder Serialization of a Binary Tree c++ python Medium
0337 House Robber III c++ python Medium
0341 Flatten Nested List Iterator c++ python Medium
0343 Integer Break c++ python Medium
0344 Reverse String c++ python go Easy
0345 Reverse Vowels of a String c++ python Easy
0347 Top K Frequent Elements c++ python go Medium
0349 Intersection of Two Arrays c++ python Easy
0350 Intersection of Two Arrays II c++ python Easy
0352 Data Stream as Disjoint Intervals c++ Hard
0354 Russian Doll Envelopes c++ python Hard
0365 Water and Jug Problem c++ python go js java Medium
0371 Sum of Two Integers c++ python rust Medium
0377 Combination Sum IV c++ python Medium
0389 Find the Difference c++ python Easy
0384 Shuffle an Array c++ rust Medium
0392 Is Subsequence c++ python Medium
0401 Binary Watch c++ python Easy
0404 Sum of Left Leaves c++ python Easy
0409 Longest Palindrome c++ python go js java Easy
0416 Partition Equal Subset Sum c++ python go js java Medium
0423 Reconstruct Original Digits from English c++ rust Medium
0424 Longest Repeating Character Replacement c++ python go js Medium
0435 Non-overlapping Intervals c++ python go Medium
0437 Path Sum III c++ python Easy
0438 Find All Anagrams in a String c++ python rust Medium
0445 Add Two Numbers II c++ python Medium
0446 Arithmetic Slices II - Subsequence c++ Hard
0447 Number of Boomerangs c++ python rust Medium
0450 Delete Node in a BST c++ python Medium
0451 Sort Characters By Frequency c++ python Easy
0452 Minimum Number of Arrows to Burst Balloons c++ Medium
0453 Minimum Moves to Equal Array Elements c++ python rust Easy
0454 4Sum II c++ python Medium
0455 Assign Cookies c++ python Easy
0458 Poor Pigs c++ python rust Hard
0459 Repeated Substring Pattern c++ python go js java Easy
0462 Minimum Moves to Equal Array Elements II c++ python Medium
0473 Matchsticks to Square c++ python go js java Medium
0474 Ones and Zeroes c++ python Medium
0486 Predict the Winner c++ python Medium
0492 Construct the Rectangle c++ python go js java rust Easy
0492 Construct the Rectangle c++ python go js java rust Easy
0492 Construct the Rectangle c++ rust Easy
0494 Target Sum c++ python Medium
0496 Next Greater Element I c++ python Easy
0503 Next Greater Element II c++ python Medium
0520 Detect Capital c++ Easy
0524 Longest Word in Dictionary through Deleting c++ rust Medium
0525 Contiguous Array c++ python Medium
0528 Random Pick with Weight c++ python go js java rust Medium
0530 Minimum Absolute Difference in BST c++ python Easy
0543 Diameter of Binary Tree c++ python Easy
0547 Friend Circles c++ python Medium
0559 Maximum Depth of N-ary Tree c++ Easy
0560 Subarray Sum Equals K c++ python Medium
0567 Permutation in String c++ Medium
0583 Delete Operation for Two Strings c++ rust Medium
0587 Erect the Fence c++ Hard
0594 Longest Harmonious Subsequence c++ rust Easy
0605 Can Place Flowers c++ Easy
0637 Average of Levels in Binary Tree c++ python Easy
0638 Shopping Offers c++ rust Medium
0650 2 Keys Keyboard c++ python Medium
0652 Find Duplicate Subtrees c++ python go js Medium
0653 Two Sum IV - Input is a BST c++ python Easy
0654 Maximum Binary Tree c++ python Medium
0678 Valid Parenthesis String c++ rust Medium
0684 Redundant Connection c++ python Medium
0687 Longest Univalue Path c++ python Easy
0695 Max Area of Island c++ python go js java Medium
0697 Degree of an Array c++ Easy
0698 Partition to K Equal Sum Subsets c++ python go js java Medium
0700 Search in a Binary Search Tree c++ rust Easy
0733 Flood Fill c++ python Easy
0739 Daily Temperatures c++ python go Medium
0742 Closest Leaf in a Binary Tree c++ python Medium
0776 Toeplitz Matrix c++ Easy
0783 Minimum Distance Between BST Nodes c++ Easy
0788 Rotated Digits c++ python Easy
0790 Domino and Tromino Tiling c++ Medium
0793 Preimage Size of Factorial Zeroes Function c++ python go js Hard
0795 Number of Subarrays with Bounded Maximum c++ Medium
0813 Largest Sum of Averages c++ Medium
0820 Short Encoding of Words c++ python go js java Medium
0824 Goat Latin c++ python go js java Easy
0825 Friends Of Appropriate Ages c++ python go js java Medium
0826 Most Profit Assigning Work c++ python go js java Medium
0827 Making A Large Island c++ python go js java Hard
0828 Unique Letter String c++ python go js java Hard
0829 Consecutive Numbers Sum c++ python go js java Hard
0832 Flipping an Image c++ python Easy
0834 Sum of Distances in Tree c++ python Hard
0836 Rectangle Overlap c++ python go js java Easy
0844 Backspace String Compare c++ python Easy
0845 Longest Mountain in Array c++ python Medium
0846 Hand of Straights c++ python Medium
0847 Shortest Path Visiting All Nodes c++ python go js Hard
0852 Peak Index in a Mountain Array c++ python Easy
0857 Minimum Cost to Hire K Workers c++ python go js java Hard
0859 Buddy Strings c++ rust Easy
0872 Leaf-Similar Trees c++ python Easy
0873 Length of Longest Fibonacci Subsequence c++ python Medium
0874 Walking Robot Simulation c++ python Easy
0876 Middle of the Linked List c++ python go js java Easy
0878 Nth Magical Number c++ Hard
0891 Sum of Subsequence Widths c++ python go js Hard
0892 Surface Area of 3D Shapes c++ python go js java Easy
0895 Maximum Frequency Stack c++ Hard
0901 Online Stock Span c++ python Medium
0902 Numbers At Most N Given Digit Set c++ python Hard
0904 Fruit Into Baskets c++ Medium
0907 Sum of Subarray Minimums c++ python Medium
0914 X of a Kind in a Deck of Cards c++ python go js java Easy
0917 Reverse Only Letters c++ python Easy
0918 Maximum Sum Circular Subarray c++ python Medium
0919 Complete Binary Tree Inserter c++ python Medium
0920 Number of Music Playlists c++ python Medium
0921 Minimum Add to Make Parentheses Valid c++ python Medium
0922 Sort Array By Parity II c++ python Easy
0923 3Sum With Multiplicity c++ python Medium
0925 Long Pressed Name c++ python Easy
0926 Flip String to Monotone Increasing c++ python Medium
0927 Three Equal Parts c++ python Medium
0929 Unique Email Addresses c++ python Easy
0930 Binary Subarrays With Sum c++ python Medium
0931 Minimum Falling Path Sum c++ python Medium
0932 Beautiful Array c++ python Medium
0933 Number of Recent Calls c++ python Easy
0934 Shortest Bridge c++ python Medium
0935 Knight Dialer c++ python Medium
0936 Stamping The Sequence c++ python go js Hard
0937 Reorder Log Files c++ python Easy
0938 Range Sum of BST c++ python Medium
0939 Minimum Area Rectangle c++ python Medium
0940 Distinct Subsequences II c++ python Hard
0941 Valid Mountain Array c++ python Easy
0942 DI String Match c++ python Easy
0943 Find the Shortest Superstring c++ python Hard
0944 Delete Columns to Make Sorted c++ python Easy
0945 Minimum Increment to Make Array Unique c++ python Medium
0946 Validate Stack Sequences c++ python go js java Medium
0947 Most Stones Removed with Same Row or Column c++ python Medium
0948 Bag of Tokens c++ python Medium
0949 Largest Time for Given Digits c++ python Easy
0950 Reveal Cards In Increasing Order c++ python Medium
0951 Flip Equivalent Binary Trees c++ python Medium
0953 Verifying an Alien Dictionary c++ python Easy
0954 Array of Doubled Pairs c++ python Medium
0955 Delete Columns to Make Sorted II c++ python Medium
0956 Tallest Billboard c++ python Hard
0957 Prison Cells After N Days c++ python Medium
0958 Check Completeness of a Binary Tree c++ python Medium
0959 Regions Cut By Slashes c++ python Medium
0960 Delete Columns to Make Sorted III c++ python Hard
0961 N-Repeated Element in Size 2N Array c++ python Easy
0962 Maximum Width Ramp c++ python Medium
0963 Minimum Area Rectangle II c++ python Medium
0965 Univalued Binary Tree c++ python Easy
0966 Vowel Spellchecker c++ python Medium
0967 Numbers With Same Consecutive Differences c++ python Medium
0969 Pancake Sorting c++ python Medium
0970 Powerful Integers c++ python Easy
0971 Flip Binary Tree To Match Preorder Traversal c++ python Medium
0972 Equal Rational Numbers c++ python Hard
0973 K Closest Points to Origin c++ python Easy
0974 Subarray Sums Divisible by K c++ python Medium
0975 Odd Even Jump c++ python Hard
0976 Largest Perimeter Triangle c++ python Easy
0977 Squares of a Sorted Array c++ python Easy
0978 Longest Turbulent Subarray c++ python Medium
0979 Distribute Coins in Binary Tree c++ python Medium
0980 Unique Paths III c++ python Medium
0981 Time Based Key-Value Store c++ python Medium
0982 Triples with Bitwise AND Equal To Zero c++ python Hard
0983 Minimum Cost For Tickets c++ python Medium
0984 String Without AAA or BBB c++ python Easy
0985 Sum of Even Numbers After Queries c++ python Easy
0986 Interval List Intersections c++ python Medium
0987 Vertical Order Traversal of a Binary Tree c++ python Medium
0988 Smallest String Starting From Leaf c++ python Medium
0989 Add to Array-Form of Integer c++ python Easy
0990 Satisfiability of Equality Equations c++ python Medium
0991 Broken Calculator c++ python Medium
0992 Subarrays with K Different Integers c++ python Hard
0993 Cousins in Binary Tree c++ python Easy
0994 Rotting Oranges c++ python Easy
0995 Minimum Number of K Consecutive Bit Flips c++ python Hard
0996 Number of Squareful Arrays c++ python Hard
0997 Find the Town Judge c++ python Easy
0998 Maximum Binary Tree II c++ python Medium
0999 Available Captures for Rook c++ python Easy
1000 Minimum Cost to Merge Stones c++ java Hard
1001 Grid Illumination c++ python Hard
1002 Find Common Characters c++ python Easy
1003 Check If Word Is Valid After Substitutions c++ python Medium
1004 Max Consecutive Ones III c++ python Medium
1005 Maximize Sum Of Array After K Negations c++ python Easy
1006 Clumsy Factorial c++ python Medium
1007 Minimum Domino Rotations For Equal Row c++ python Medium
1008 Construct Binary Search Tree from Preorder Traversal c++ python Medium
1009 Complement of Base 10 Integer c++ python Easy
1010 Pairs of Songs With Total Durations Divisible by 60 c++ python Easy
1011 Capacity To Ship Packages Within D Days c++ python Medium
1012 Numbers With Repeated Digits c++ python Hard
1013 Partition Array Into Three Parts With Equal Sum c++ python Easy
1014 Best Sightseeing Pair c++ python Medium
1015 Smallest Integer Divisible by K c++ python Medium
1017 Convert to Base -2 c++ python Medium
1018 Binary Prefix Divisible By 5 c++ python Easy
1019 Next Greater Node In Linked List c++ python Medium
1020 Number of Enclaves c++ python Medium
1021 Remove Outermost Parentheses c++ python Easy
1022 Sum of Root To Leaf Binary Numbers c++ python Easy
1023 Camelcase Matching c++ python go js Medium
1024 Video Stitching c++ python go js java Medium
1025 Divisor Game c++ python Easy
1026 Maximum Difference Between Node and Ancestor c++ python Medium
1027 Longest Arithmetic Sequence c++ python go js Medium
1033 Moving Stones Until Consecutive c++ python Easy
1034 Coloring A Border c++ python Medium
1035 Uncrossed Lines c++ python Medium
1037 Valid Boomerang c++ python Medium
1038 Binary Search Tree to Greater Sum Tree c++ python Medium
1039 Minimum Score Triangulation of Polygon c++ python Medium
1041 Robot Bounded In Circle c++ python go Easy
1042 Flower Planting With No Adjacent c++ python go Easy
1043 Partition Array for Maximum Sum c++ python go Medium
1046 Last Stone Weight c++ python go js Easy
1047 Remove All Adjacent Duplicates In String c++ python go js Easy
1048 Longest String Chain c++ python go js Medium
1049 Last Stone Weight II c++ python go js Medium
1051 Height Checker c++ python Easy
1052 Grumpy Bookstore Owner c++ python Medium
1053 Previous Permutation With One Swap c++ python Medium
1054 Distant Barcodes c++ python Medium
1061 Lexicographically Smallest Equivalent String c++ Medium
1064 Fixed Point c++ python Easy
1065 Index Pairs of a String c++ python Easy
1066 Campus Bikes II c++ python Medium
1067 Digit Count in Range c++ python Medium
1071 Greatest Common Divisor of Strings c++ python go js java Easy
1072 Flip Columns For Maximum Number of Equal Rows c++ python go js java Medium
1073 Adding Two Negabinary Numbers c++ python go js java Medium
1074 Number of Submatrices That Sum to Target c++ python go js java Hard
1078 Occurrences After Bigram c++ python Easy
1079 Letter Tile Possibilities c++ python Easy
1080 Insufficient Nodes in Root to Leaf Paths c++ python Medium
1081 Smallest Subsequence of Distinct Characters c++ python Medium
1085 Sum of Digits in the Minimum Number c++ python Easy
1086 High Five c++ python Easy
1087 Brace Expansion c++ python Medium
1089 Duplicate Zeros c++ python Easy
1090 Largest Values From Labels c++ python Medium
1091 Shortest Path in Binary Matrix c++ python go js Medium
1093 Statistics from a Large Sample c++ python go js Medium
1094 Car Pooling c++ python go js Medium
1095 Find in Mountain Array c++ python go js Hard
1096 Brace Expansion II c++ python go Hard
1099 Two Sum Less Than K c++ python go js Easy
1100 Find K-Length Substrings With No Repeated Characters c++ python go js Medium
1101 The Earliest Moment When Everyone Become Friends c++ python go js Easy
1102 Path With Maximum Minimum Value c++ python go Medium
1103 Distribute Candies to People c++ python go Easy
1104 Path In Zigzag Labelled Binary Tree c++ python go Medium
1105 Filling Bookcase Shelves c++ python go Medium
1106 Parsing A Boolean Expression c++ python go Hard
1108 Defanging an IP Address c++ python go Easy
1109 iCorporate Flight Bookings c++ python go Medium
1110 Delete Nodes And Return Forest c++ python go Medium
1111 Maximum Nesting Depth of Two Valid Parentheses Strings c++ python go Medium
1118 Number of Days in a Month c++ python go Easy
1119 Remove Vowels from a String c++ python go Easy
1120 Maximum Average Subtree c++ python go Medium
1121 Divide Array Into Increasing Sequences c++ python go Hard
1122 Relative Sort Array c++ python go Easy
1123 Lowest Common Ancestor of Deepest Leaves c++ python go Medium
1124 Longest Well-Performing Interval c++ python go Medium
1125 Smallest Sufficient Team c++ python go Hard
1128 Number of Equivalent Domino Pairs c++ python go js Easy
1129 Shortest Path with Alternating Colors c++ python go js Medium
1130 Minimum Cost Tree From Leaf Values c++ python go js Medium
1131 Maximum of Absolute Value Expression c++ python go js Medium
1133 Largest Unique Number c++ python go js Easy
1134 Armstrong Number c++ python go js Easy
1135 Connecting Cities With Minimum Cost c++ python go js Medium
1136 Parallel Courses c++ python go js Hard
1137 N-th Tribonacci Number c++ python go js Easy
1138 Alphabet Board Path c++ python go js Medium
1139 Largest 1-Bordered Square c++ python go js Medium
1140 Stone Game II c++ python go js Medium
1143 Longest Common Subsequence c++ python go js Medium
1144 Decrease Elements To Make Array Zigzag c++ python go js Medium
1145 Binary Tree Coloring Game c++ python go js Medium
1146 Snapshot Array c++ python go js Medium
1147 Longest Chunked Palindrome Decomposition c++ python go js Hard
1150 Check If a Number Is Majority Element in a Sorted Array c++ python go js Easy
1151 Minimum Swaps to Group All 1's Together c++ python go js Medium
1152 Analyze User Website Visit Pattern c++ python go js Medium
1153 String Transforms Into Another String c++ python go js Hard
1154 Day of the Year c++ python go js Easy
1155 Number of Dice Rolls With Target Sum c++ python go js Medium
1156 Swap For Longest Repeated Character Substring c++ python go js Medium
1157 Online Majority Element In Subarray c++ python go js Hard
1160 Find Words That Can Be Formed by Characters c++ python go js Easy
1161 Maximum Level Sum of a Binary Tree c++ python go js Medium
1162 As Far from Land as Possible c++ python go js Medium
1163 Last Substring in Lexicographical Order c++ python go js Hard
1165 Single-Row Keyboard c++ python go js Easy
1166 Design File System c++ python go js Medium
1167 Minimum Cost to Connect Sticks c++ python go js Medium
1168 Optimize Water Distribution in a Village c++ python go js Hard
1169 Invalid Transactions c++ python go js Medium
1170 Compare Strings by Frequency of the Smallest Character c++ python go js Easy
1171 Remove Zero Sum Consecutive Nodes from Linked List c++ python go js Medium
1172 Dinner Plate Stacks c++ python go js Hard
1175 Prime Arrangements c++ python go js Easy
1176 Diet Plan Performance c++ python go js Easy
1184 Distance Between Bus Stops c++ python go js Easy
1185 Day of the Week c++ python go js Easy
1186 Maximum Subarray Sum with One Deletion c++ python go js Medium
1187 Make Array Strictly Increasing c++ python go js Hard
1189 Maximum Number of Balloons c++ python go js Easy
1190 Reverse Substrings Between Each Pair of Parentheses c++ python go js Medium
1191 K-Concatenation Maximum Sum c++ python go js Medium
1192 Critical Connections in a Network c++ python go js Hard
1196 How Many Apples Can You Put into the Basket c++ python go js Easy
1197 Minimum Knight Moves c++ python go js Medium
1198 Find Smallest Common Element in All Rows c++ python go js Medium
1199 Minimum Time to Build Blocks c++ python go js Hard
1200 Minimum Absolute Difference c++ python go js Easy
1201 Ugly Number III c++ python go js Medium
1202 Smallest String With Swaps c++ python go js Medium
1207 Unique Number of Occurrences c++ python go js Easy
1208 Get Equal Substrings Within Budget c++ python go js Medium
1209 Remove All Adjacent Duplicates in String II c++ python go js Medium
1210 Minimum Moves to Reach Target with Rotations c++ python go js Hard
1213 Intersection of Three Sorted Arrays c++ python go js Easy
1214 Two Sum BSTs c++ python go js Medium
1215 Stepping Numbers c++ python go js Medium
1216 Valid Palindrome III c++ python go js Hard
1217 Play with Chips c++ python go js Easy
1218 Longest Arithmetic Subsequence of Given Difference c++ python go js Medium
1219 Path with Maximum Gold c++ python go js Medium
1220 Count Vowels Permutation c++ python go js Hard
1221 Split a String in Balanced Strings c++ python go js Easy
1222 Queens That Can Attack the King c++ python go js Medium
1223 Dice Roll Simulation c++ python go js Medium
1224 Maximum Equal Frequency c++ python go js Hard
1228 Missing Number In Arithmetic Progression c++ python go js Easy
1229 Meeting Scheduler c++ python go js Medium
1230 Toss Strange Coins c++ python go js Medium
1231 Divide Chocolate c++ python go js Hard
1232 Check If It Is a Straight Line c++ python go js Easy
1233 Remove Sub-Folders from the Filesystem c++ python go js Medium
1234 Replace the Substring for Balanced String c++ python go js Medium
1235 Maximum Profit in Job Scheduling c++ python go js Hard
1237 Find Positive Integer Solution for a Given Equation c++ python go js Easy
1238 Circular Permutation in Binary Representation c++ python go js Medium
1239 Maximum Length of a Concatenated String with Unique Characters c++ python go js Medium
1240 Tiling a Rectangle with the Fewest Squares c++ python go js Hard
1243 Array Transformation c++ python go js java Easy
1244 Design A Leaderboard c++ python go js java Medium
1245 Tree Diameter c++ python go js java Medium
1246 Palindrome Removal c++ python go js java Hard
1247 Minimum Swaps to Make Strings Equal c++ python go js java Easy
1248 Count Number of Nice Subarrays c++ python go js java Medium
1249 Minimum Remove to Make Valid Parentheses c++ python go js java Medium
1250 Check If It Is a Good Array c++ python go js java Hard
1252 Cells with Odd Values in a Matrix c++ python go js java Easy
1253 Reconstruct a 2-Row Binary Matrix c++ python go js java Medium
1254 Number of Closed Islands c++ python go js java Medium
1255 Maximum Score Words Formed by Letters c++ python go js java Hard
1256 Encode Number c++ python go js java Medium
1257 Smallest Common Region c++ python go js java Medium
1258 Synonymous Sentences c++ python go js java Medium
1259 Handshakes That Don't Cross c++ python go java Hard
1260 Shift 2D Grid c++ python go js java Easy
1261 Find Elements in a Contaminated Binary Tree c++ python go js java Medium
1262 Greatest Sum Divisible by Three c++ python go js java Medium
1263 Minimum Moves to Move a Box to Their Target Location c++ python go js java Hard
1266 Minimum Time Visiting All Points c++ python go js java Easy
1267 Count Servers that Communicate c++ python go js java Medium
1268 Search Suggestions System c++ python go js java Medium
1269 Number of Ways to Stay in the Same Place After Some Steps c++ python go js java Hard
1271 Hexspeak c++ python go js java Easy
1272 Remove Interval c++ python go js java Medium
1273 Delete Tree Nodes c++ python go js java Medium
1274 Number of Ships in a Rectangle c++ python js java Hard
1275 Find Winner on a Tic Tac Toe Game c++ python go js java Easy
1276 Number of Burgers with No Waste of Ingredients c++ python go js java Medium
1277 Count Square Submatrices with All Ones c++ python go js java Medium
1278 Palindrome Partitioning III c++ python go js java Hard
1281 Subtract the Product and Sum of Digits of an Integer c++ python go js java Easy
1282 Group the People Given the Group Size They Belong To c++ python go js java Medium
1283 Find the Smallest Divisor Given a Threshold c++ python go js java Medium
1284 Minimum Number of Flips to Convert Binary Matrix to Zero Matrix c++ python go js java Hard
1286 Iterator for Combination c++ python go js java Medium
1287 Element Appearing More Than 25% In Sorted Array c++ python go js java Easy
1288 Remove Covered Intervals c++ python go js java Medium
1289 Minimum Falling Path Sum II c++ python go js java Hard
1290 Convert Binary Number in a Linked List to Integer c++ python go js java Easy
1291 Sequential Digits c++ python go js java Medium
1292 Maximum Side Length of a Square with Sum Less than or Equal to Threshold c++ python go js java Medium
1293 Shortest Path in a Grid with Obstacles Elimination c++ python go js java Hard
1295 Find Numbers with Even Number of Digits c++ python go js java Easy
1296 Divide Array in Sets of K Consecutive Numbers c++ python go js java Medium
1297 Maximum Number of Occurrences of a Substring c++ python go js java Medium
1298 Maximum Candies You Can Get from Boxes c++ python go js java Hard
1299 Replace Elements with Greatest Element on Right Side c++ python go js java Easy
1300 Sum of Mutated Array Closest to Target c++ python go js java Medium
1301 Number of Paths with Max Score c++ python go js java Hard
1302 Deepest Leaves Sum c++ python go js java Medium
1304 Find N Unique Integers Sum up to Zero c++ python go js java Easy
1305 All Elements in Two Binary Search Trees c++ python go js java Medium
1306 Jump Game III c++ python go js java Medium
1307 Verbal Arithmetic Puzzle c++ python go js java Hard
1309 Decrypt String from Alphabet to Integer Mapping c++ python go js java Easy
1310 XOR Queries of a Subarray c++ python go js java Medium
1311 Get Watched Videos by Your Friends c++ python go js java Medium
1313 Decompress Run-Length Encoded List c++ python go js java Easy
1314 Matrix Block Sum c++ python go js java Medium
1315 Sum of Nodes with Even-Valued Grandparent c++ python go js java Medium
1316 Distinct Echo Substrings c++ python go js java Hard
1317 Convert Integer to the Sum of Two No-Zero Integers c++ python go js java Easy
1318 Minimum Flips to Make a OR b Equal to c c++ python go js java Medium
1319 Number of Operations to Make Network Connected c++ python go js java Medium
1320 Minimum Distance to Type a Word Using Two Fingers c++ python go js java Hard
1323 Maximum 69 Number c++ python go js java Easy
1324 Print Words Vertically c++ python go js java Medium
1325 Delete Leaves With a Given Value c++ python go js java Medium
1326 Minimum Number of Taps to Open to Water a Garden c++ python go js java Hard
1328 Break a Palindrome c++ python go js java Medium
1329 Sort the Matrix Diagonally c++ python go js java Medium
1330 Reverse Subarray To Maximize Array Value c++ python go js java Hard
1331 Rank Transform of an Array c++ python go js java Easy
1332 Remove Palindromic Subsequences c++ python go js java Easy
1333 Filter Restaurants by Vegan-Friendly, Price and Distance c++ python go js java Medium
1334 Find the City With the Smallest Number of Neighbors at a Threshold Distance c++ python go js java Medium
1335 Minimum Difficulty of a Job Schedule c++ python go js java Hard
1337 The K Weakest Rows in a Matrix c++ python go js java Easy
1338 Reduce Array Size to The Half c++ python go js java Medium
1339 Maximum Product of Splitted Binary Tree c++ python go js java Medium
1340 Jump Game V c++ python go js java Hard
1342 Number of Steps to Reduce a Number to Zero c++ python go js java Easy
1343 Number of Sub-arrays of Size K and Average Greater than or Equal to Threshold c++ python go js java Medium
1344 Angle Between Hands of a Clock c++ python go js java Medium
1345 Jump Game IV c++ python go js java Hard
1346 Check If N and Its Double Exist c++ python go js java Easy
1347 Minimum Number of Steps to Make Two Strings Anagram c++ python go js java Medium
1348 Tweet Counts Per Frequency c++ python go js java Medium
1349 Maximum Students Taking Exam c++ python go js java Hard
1351 Count Negative Numbers in a Sorted Matrix c++ python go js java Easy
1352 Product of the Last K Numbers c++ python go js java Medium
1353 Maximum Number of Events That Can Be Attended c++ python go js java Medium
1354 Construct Target Array With Multiple Sums c++ python go js java Hard
1356 Sort Integers by The Number of 1 Bits c++ python go js java Easy
1357 Apply Discount Every n Orders c++ python go js java Medium
1358 Number of Substrings Containing All Three Characters c++ python go js java Medium
1359 Count All Valid Pickup and Delivery Options c++ python go js java Hard
1360 Number of Days Between Two Dates c++ python go js java Easy
1361 Validate Binary Tree Nodes c++ python go js java Medium
1362 Closest Divisors c++ python go js java Medium
1363 Largest Multiple of Three c++ python go js java Hard
1365 How Many Numbers Are Smaller Than the Current Number c++ python go js java Easy
1366 Rank Teams by Votes c++ python go js java Medium
1367 Linked List in Binary Tree c++ python go js java Medium
1368 Minimum Cost to Make at Least One Valid Path in a Grid c++ python go js java Hard
1370 Increasing Decreasing String c++ python go js java Easy
1371 Find the Longest Substring Containing Vowels in Even Counts c++ python go js java Medium
1372 Longest ZigZag Path in a Binary Tree c++ python go js java Medium
1373 Maximum Sum BST in Binary Tree c++ python go js java Hard
1374 Generate a String With Characters That Have Odd Counts c++ python go js java Easy
1375 Bulb Switcher III c++ python go js java Medium
1376 Time Needed to Inform All Employees c++ python go js java Medium
1377 Frog Position After T Seconds c++ python go js java Hard
1380 Lucky Numbers in a Matrix c++ python go js java Easy
1381 Design a Stack With Increment Operation c++ python go js java Medium
1382 Balance a Binary Search Tree c++ python go js java Medium
1383 Maximum Performance of a Team c++ python go js java Hard
1385 Find the Distance Value Between Two Arrays c++ python go js java Easy
1386 Cinema Seat Allocation c++ python go js java Medium
1387 Sort Integers by The Power Value c++ python go js java Medium
1388 Pizza With 3n Slices c++ python go js java Hard
1389 Create Target Array in the Given Order c++ python go js java Easy
1390 Four Divisors c++ python go js java Medium
1391 Check if There is a Valid Path in a Grid c++ python go js java Medium
1392 Longest Happy Prefix c++ python go js java Hard
1394 Find Lucky Integer in an Array c++ python go js java Easy
1395 Count Number of Teams c++ python go js java Medium
1396 Design Underground System c++ python go js java Medium
1397 Find All Good Strings c++ python go js java Hard
1399 Count Largest Group c++ python go js java Easy
1400 Construct K Palindrome Strings c++ python go js java Medium
1401 Circle and Rectangle Overlapping c++ python go js java Medium
1402 Reducing Dishes c++ python go js java Hard
1403 Minimum Subsequence in Non-Increasing Order c++ python go js java Easy
1404 Number of Steps to Reduce a Number in Binary Representation to One c++ python go js java Medium
1405 Longest Happy String c++ python go js java Medium
1406 Stone Game III c++ python go js java Hard
1408 String Matching in an Array c++ python go js java Easy
1409 Queries on a Permutation With Key c++ python go js java Medium
1410 HTML Entity Parser c++ python go js java Medium
1411 Number of Ways to Paint NΓ—3 Grid c++ python go js java Hard
1413 Minimum Value to Get Positive Step by Step Sum c++ python go js java Easy
1414 Find the Minimum Number of Fibonacci Numbers Whose Sum Is K c++ python go js java Medium
1415 The k-th Lexicographical String of All Happy Strings of Length n c++ python go js java Medium
1416 Restore The Array c++ python go js java Hard
1417 Reformat The String c++ python go js java Easy
1418 Display Table of Food Orders in a Restaurant c++ python go js java Medium
1419 Minimum Number of Frogs Croaking c++ python go js java Medium
1420 Build Array Where You Can Find The Maximum Exactly K Comparisons c++ python go js java Hard
1422 Maximum Score After Splitting a String c++ python go js java Easy
1423 Maximum Points You Can Obtain from Cards c++ python go js java Medium
1424 Diagonal Traverse II c++ python go js java Medium
1425 Constrained Subsequence Sum c++ python go js java Hard
1431 Kids With the Greatest Number of Candies c++ python go js java Easy
1432 Max Difference You Can Get From Changing an Integer c++ python go js java Medium
1433 Check If a String Can Break Another String c++ python go js java Medium
1434 Number of Ways to Wear Different Hats to Each Other c++ python go js java Hard
1436 Destination City c++ python go js java Easy
1437 Check If All 1's Are at Least Length K Places Away c++ python go js java Medium
1438 Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit c++ python go js java Medium
1439 Find the Kth Smallest Sum of a Matrix With Sorted Rows c++ python go js java Hard
1441 Build an Array With Stack Operations c++ python go js java Easy
1442 Count Triplets That Can Form Two Arrays of Equal XOR c++ python go js java Medium
1443 Minimum Time to Collect All Apples in a Tree c++ python go js java Medium
1444 Number of Ways of Cutting a Pizza c++ python go js java Hard
1470 Shuffle the Array c++ Easy
1472 Design Browser History c++ Medium
1523 Count Odd Numbers in an Interval Range c++ Easy
1546 Maximum Number of Non-Overlapping Subarrays With Sum Equals Target c++ Medium
1574 Shortest Subarray To Be Removed To Make Array Sorted c++ Medium
1604 Alert Using Same Key-Card Three or More Times in a One Hour Period c++ Medium
1616 Split Two Strings to Make Palindrome c++ Medium
1626 Best Team With No Conflicts c++ Medium
1657 Determine if Two Strings Are Close c++ Medium
1658 Minimum Operations to Reduce X to Zero c++ Medium
1664 Ways to Make a Fair Array c++ Medium
1669 Merge In Between Linked Lists c++ Medium
1673 Find the Most Competitive Subsequence c++ Medium
1691 Maximum Height by Stacking Cuboids c++ Hard
1704 Determine if String Halves Are Alike c++ Easy
1732 Find the Highest Altitude c++ Easy
1739 Building Boxes c++ Hard
1742 Maximum Number of Balls in a Box c++ Easy
1750 Minimum Length of String After Deleting Similar Ends c++ Medium
1752 Check if Array Is Sorted and Rotated c++ Easy
1754 Largest Merge Of Two Strings c++ Medium
1758 Minimum Changes To Make Alternating Binary String c++ Easy
1759 Count Number of Homogenous Substrings c++ Medium
1779 Find Nearest Point That Has the Same X or Y Coordinate c++ Easy
1780 Check if Number is a Sum of Powers of Three c++ Medium
1781 Sum of Beauty of All Substrings c++ Medium
1796 Second Largest Digit in a String c++ Easy
1798 Maximum Number of Consecutive Values You Can Make c++ Medium
1801 Number of Orders in the Backlog c++ Medium
1802 Maximum Value at a Given Index in a Bounded Array c++ Medium
1805 Number of Different Integers in a String c++ Easy
1806 Minimum Number of Operations to Reinitialize a Permutation c++ Medium
1807 Evaluate the Bracket Pairs of a String c++ Medium
1812 Determine Color of a Chessboard Square c++ Easy
1813 Sentence Similarity III c++ Medium
1814 Count Nice Pairs in an Array c++ Medium
1819 Number of Different Subsequences GCDs c++ Hard
1827 Minimum Operations to Make the Array Increasing c++ Easy
1833 Maximum Ice Cream Bars c++ Medium
1834 Single-Threaded-CPU c++ Medium
1832 Check if the Sentence Is Pangram c++ python Easy
1926 Nearest Exit from Entrance in Maze c++ Medium
1962 Remove Stones to Minimize the Total c++ Medium
2011 Final Value of Variable After Performing Operations c++ Easy
2027 Minimum Moves to Convert String c++ Easy
2032 Two Out of Three c++ Easy
2037 Minimum Number of Moves to Seat Everyone c++ Easy
2042 Check if Numbers Are Ascending in a Sentence c++ Easy
2180 Count Integers With Even Digit Sum c++ Easy
2185 Counting Words With a Given Prefix c++ Easy
2225 Find Players With Zero or One Losses c++ Medium
2244 Minimum Rounds to Complete All Tasks c++ Medium
2256 Minimum Average Difference c++ Medium
2279 Maximum Bags With Full Capacity of Rocks c++ Medium
2287 Rearrange Characters to Make Target String c++ Easy
2293 Min Max Game c++ Easy
2315 Count Asterisks c++ Easy
2319 Check if Matrix Is X-Matrix c++ Easy
2325 Decode the Message c++ Easy
2331 Evaluate Boolean Binary Tree c++ Easy
2341 Maximum Number of Pairs in Array c++ Easy
2347 Best Poker Hand c++ Easy
2351 First Letter to Appear Twice c++ Easy
2357 Make Array Zero by Subtracting Equal Amounts c++ Easy
2389 Longest Subsequence With Limited Sum c++ Easy
2395 Find Subarrays With Equal Sum c++ Easy
2427 Number of Common Factors c++ Easy
2439 Minimize Maximum of Array c++ Medium
2469 Convert the temperature c++ Easy
2470 Number of Subarrays With LCM Equal to K c++ Medium
2471 Minimum Number of Operations to Sort a Binary Tree by Level c++ Medium
2477 Minimum Fuel Cost to Report to the Capital c++ Medium
2549 Count Distinct Numbers on Board c++ Easy
2550 Count Collisions of Monkeys on a Polygon c++ Medium
2551 Put Marbles in Bags c++ Hard