Skip to content
Warmly welcome to my website:https://www.zengqiang.org |目录:
Branch: master
Clone or download
strengthen refresh
refresh
Latest commit 1be364f Nov 4, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
C# refresh Apr 23, 2019
C++ refresh Oct 6, 2019
C refresh Aug 1, 2019
Go refresh Apr 23, 2019
Java refresh Oct 6, 2019
JavaScript leetcode 303 304 javascript sample Nov 1, 2019
Kotlin refresh Apr 23, 2019
MD refresh Nov 4, 2019
PHP refresh Jun 25, 2019
Python refresh Sep 8, 2019
Python3 refresh Oct 6, 2019
Ruby
Rust refresh Apr 23, 2019
Scala refresh Apr 23, 2019
Swift refresh May 30, 2019
README-CN.md refresh Nov 4, 2019
README.md refresh Nov 4, 2019

README.md

English | 简体中文

Welcome to participate in the project!→ Course

Leetcode

Note:Supports 14 programming languages. See bottom of this page!

No. Swift && Title C++ Java Python3 Difficulty
1220 Count Vowels Permutation C++ Java Python3 Hard
1219 Path with Maximum Gold C++ Java Python3 Medium
1218 Longest Arithmetic Subsequence of Given Difference C++ Java Python3 Medium
1217 Play with Chips C++ Java Python3 Easy
1216 Valid Palindrome III C++ Java Python3 Hard
1215 Stepping Numbers C++ Java Python3 Medium
1214 Two Sum BSTs C++ Java Python3 Medium
1213 Intersection of Three Sorted Arrays C++ Java Python3 Easy
1212 C++ Java Python3 Medium
1211 C++ Java Python3 Easy
1210 Minimum Moves to Reach Target with Rotations C++ Java Python3 Hard
1209 Remove All Adjacent Duplicates in String II C++ Java Python3 Medium
1208 Get Equal Substrings Within Budget C++ Java Python3 Medium
1207 Unique Number of Occurrences C++ Java Python3 Easy
1206 C++ Java Python3 Hard
1205 C++ Java Python3 Medium
1204 C++ Java Python3 Medium
1203 Sort Items by Groups Respecting Dependencies C++ Java Python3 Hard
1202 Smallest String With Swaps C++ Java Python3 Medium
1201 Ugly Number III C++ Java Python3 Medium
1200 Minimum Absolute Difference C++ Java Python3 Easy
1199 Minimum Time To Build Blocks C++ Java Python3 Hard
1198 Find Smallest Common Element in All Rows C++ Java Python3 Medium
1197 Minimum Knight Moves C++ Java Python3 Medium
1196 How Many Apples Can You Put into the Basket C++ Java Python3 Easy
1195 Fizz Buzz Multithreaded C++ Java Python3 Medium
1194 C++ Java Python3 Hard
1193 C++ Java Python3 Medium
1192 Critical Connections in a Network C++ Java Python3 Hard
1191 K-Concatenation Maximum Sum C++ Java Python3 Medium
1190 Reverse Substrings Between Each Pair of Parentheses C++ Java Python3 Medium
1189 Maximum Number of Balloons C++ Java Python3 Easy
1188 C++ Java Python3 Medium
1187 Make Array Strictly Increasing C++ Java Python3 Hard
1186 Maximum Subarray Sum with One Deletion C++ Java Python3 Medium
1185 Day of the Week C++ Java Python3 Easy
1184 Distance Between Bus Stops C++ Java Python3 Easy
1183 Maximum Number of Ones C++ Java Python3 Hard
1182 Shortest Distance to Target Color C++ Java Python3 Medium
1181 Before and After Puzzle C++ Java Python3 Medium
1180 Count Substrings with Only One Distinct Letter C++ Java Python3 Easy
1179 Reformat Department Table C++ Java Python3 Easy
1178 Number of Valid Words for Each Puzzle C++ Java Python3 Hard
1177 Can Make Palindrome from Substring C++ Java Python3 Medium
1176 Diet Plan Performance C++ Java Python3 Easy
1175 Prime Arrangements C++ Java Python3 Easy
1174 C++ Java Python3 Medium
1173 C++ Java Python3 Easy
1172 Dinner Plate Stacks C++ Java Python3 Hard
1171 Remove Zero Sum Consecutive Nodes from Linked List C++ Java Python3 Medium
1170 Compare Strings by Frequency of the Smallest Character C++ Java Python3 Easy
1169 Invalid Transactions C++ Java Python3 Easy
1168 Optimize Water Distribution in a Village C++ Java Python3 Hard
1167 Minimum Cost to Connect Sticks C++ Java Python3 Medium
1166 Design File System C++ Java Python3 Medium
1165 Single-Row Keyboard C++ Java Python3 Easy
1164 C++ Java Python3 Medium
1163 Last Substring in Lexicographical Order C++ Java Python3 Hard
1162 As Far from Land as Possible C++ Java Python3 Medium
1161 Maximum Level Sum of a Binary Tree C++ Java Python3 Medium
1160 Find Words That Can Be Formed by Characters C++ Java Python3 Easy
1159 C++ Java Python3 Hard
1158 C++ Java Python3 Medium
1157 Online Majority Element In Subarray C++ Java Python3 Hard
1156 Swap For Maximum Repeated Substring C++ Java Python3 Medium
1155 Number of Dice Rolls With Target Sum C++ Java Python3 Medium
1154 Ordinal Number Of Date C++ Java Python3 Easy
1153 String Transforms Into Another String C++ Java Python3 Hard
1152 Analyze User Website Visit Pattern C++ Java Python3 Medium
1151 Minimum Swaps to Group All 1's Together C++ Java Python3 Medium
1150 Check If a Number Is Majority Element in a Sorted Array C++ Java Python3 Easy
1149 C++ Java Python3 Medium
1148 C++ Java Python3 Easy
1147 Longest Chunked Palindrome Decomposition C++ Java Python3 Hard
1146 Snapshot Array C++ Java Python3 Medium
1145 Binary Tree Coloring Game C++ Java Python3 Hard
1144 Decrease Elements To Make Array Zigzag C++ Java Python3 Easy
1143 Longest Common Subsequence C++ Java Python3 Easy
1142 C++ Java Python3 Medium
1141 C++ Java Python3 Medium
1140 Stone Game II C++ Java Python3 Medium
1139 Largest 1-Bordered Square C++ Java Python3 Medium
1138 Alphabet Board Path C++ Java Python3 Medium
1137 N-th Tribonacci Number C++ Java Python3 Easy
1136 Parallel Courses C++ Java Python3 Hard
1135 Connecting Cities With Minimum Cost C++ Java Python3 Medium
1134 Armstrong Number C++ Java Python3 Hard
1133 Largest Unique Number C++ Java Python3 Easy
1132 C++ Java Python3 Easy
1131 Maximum of Absolute Value Expression C++ Java Python3 Medium
1130 Minimum Cost Tree From Leaf Values C++ Java Python3 Medium
1129 Shortest Path with Alternating Colors C++ Java Python3 Medium
1128 Number of Equivalent Domino Pairs C++ Java Python3 Easy
1127 C++ Java Python3 Hard
1126 C++ Java Python3 Medium
1125 Smallest Sufficient Team C++ Java Python3 Hard
1124 Longest Well-Performing Interval C++ Java Python3 Medium
1123 Lowest Common Ancestor of Deepest Leaves C++ Java Python3 Medium
1122 Relative Sort Array C++ Java Python3 Easy
1121 Divide Array Into Increasing Sequences C++ Java Python3 Hard
1120 Maximum Average Subtree C++ Java Python3 Medium
1119 Remove Vowels from a String C++ Java Python3 Easy
1118 Number of Days in a Month C++ Java Python3 Easy
1117 Building H2O C++ Java Python3 Hard
1116 Print Zero Even Odd C++ Java Python3 Medium
1115 Print FooBar Alternately C++ Java Python3 Medium
1114 Print in Order C++ Java Python3 Easy
1113 C++ Java Python3 Easy
1112 C++ Java Python3 Medium
1111 Maximum Nesting Depth of Two Valid Parentheses Strings C++ Java Python3 Medium
1110 Delete Nodes And Return Forest C++ Java Python3 Medium
1109 Corporate Flight Bookings C++ Java Python3 Medium
1108 Defanging an IP Address C++ Java Python3 Easy
1107 C++ Java Python3 Medium
1106 Parsing A Boolean Expression C++ Java Python3 Hard
1105 Filling Bookcase Shelves C++ Java Python3 Medium
1104 Path In Zigzag Labelled Binary Tree C++ Java Python3 Easy
1103 Distribute Candies to People C++ Java Python3 Easy
1102 Path With Maximum Minimum Value C++ Java Python3 Medium
1101 The Earliest Moment When Everyone Become Friends C++ Java Python3 Medium
1100 Find K-Length Substrings With No Repeated Characters C++ Java Python3 Medium
1099 Two Sum Less Than K C++ Java Python3 Easy
1098 C++ Java Python3 Medium
1097 C++ Java Python3 Hard
1096 Brace Expansion II C++ Java Python3 Hard
1095 Find in Mountain Array C++ Java Python3 Hard
1094 Car Pooling C++ Java Python3 Medium
1093 Statistics from a Large Sample C++ Java Python3 Medium
1092 Shortest Common Supersequence C++ Java Python3 Hard
1091 Shortest Path in Binary Matrix C++ Java Python3 Medium
1090 Largest Values From Labels C++ Java Python3 Medium
1089 Duplicate Zeros C++ Java Python3 Easy
1088 Confusing Number II C++ Java Python3 Hard
1087 Permutation of Letters C++ Java Python3 Medium
1086 High Five C++ Java Python3 Easy
1085 Sum of Digits in the Minimum Number C++ Java Python3 Easy
1084 C++ Java Python3 Easy
1083 C++ Java Python3 Easy
1082 C++ Java Python3 Easy
1081 Smallest Subsequence of Distinct Characters C++ Java Python3 Medium
1080 Insufficient Nodes in Root to Leaf Paths C++ Java Python3 Medium
1079 Letter Tile Possibilities C++ Java Python3 Medium
1078 Occurrences After Bigram C++ Java Python3 Easy
1077 C++ Java Python3 Medium
1076 C++ Java Python3 Easy
1075 C++ Java Python3 Easy
1074 Number of Submatrices That Sum to Target C++ Java Python3 Hard
1073 Adding Two Negabinary Numbers C++ Java Python3 Medium
1072 Flip Columns For Maximum Number of Equal Rows C++ Java Python3 Medium
1071 Greatest Common Divisor of Strings C++ Java Python3 Easy
1070 C++ Java Python3 Medium
1069 C++ Java Python3 Easy
1068 C++ Java Python3 Easy
1067 Digit Count in Range C++ Java Python3 Hard
1066 Campus Bikes II C++ Java Python3 Medium
1065 Index Pairs of a String C++ Java Python3 Easy
1064 Fixed Point C++ Java Python3 Easy
1063 C++ Java Python3 Hard
1062 C++ Java Python3 Medium
1061 C++ Java Python3 Medium
1060 C++ Java Python3 Medium
1059 C++ Java Python3 Hard
1058 C++ Java Python3 Medium
1057 C++ Java Python3 Medium
1056 C++ Java Python3 Easy
1055 C++ Java Python3 Medium
1054 Distant Barcodes C++ Java Python3 Medium
1053 Previous Permutation With One Swap C++ Java Python3 Medium
1052 Grumpy Bookstore Owner C++ Java Python3 Medium
1051 Height Checker C++ Java Python3 Easy
1050 Actors and Directors Who Cooperated At Least Three Times C++ Java Python3 Easy
1049 Last Stone Weight II C++ Java Python3 Medium
1048 Longest String Chain C++ Java Python3 Medium
1047 Remove All Adjacent Duplicates In String C++ Java Python3 Easy
1046 Last Stone Weight C++ Java Python3 Easy
1045 Customers Who Bought All Products C++ Java Python3 Medium
1043 Partition Array for Maximum Sum C++ Java Python3 Medium
1042 Flower Planting With No Adjacent C++ Java Python3 Easy
1041 Robot Bounded In Circle C++ Java Python3 Easy
1040 Moving Stones Until Consecutive II C++ Java Python3 Medium
1039 Minimum Score Triangulation of Polygon C++ Java Python3 Medium
1038 Binary Search Tree to Greater Sum Tree C++ Java Python3 Medium
1037 Valid Boomerang C++ Java Python3 Easy
1036 Escape a Large Maze C++ Java Python3 Hard
1035 Uncrossed Lines C++ Java Python3 Medium
1034 Coloring A Border C++ Java Python3 Medium
1033 Moving Stones Until Consecutive C++ Java Python3 Easy
1032 Stream of Characters C++ Java Python3 Hard
1031 Maximum Sum of Two Non-Overlapping Subarrays C++ Java Python3 Medium
1030 Matrix Cells in Distance Order C++ Java Python3 Easy
1029 Two City Scheduling C++ Java Python3 Easy
1028 Recover a Tree From Preorder Traversal C++ Java Python3 Hard
1027 Longest Arithmetic Sequence C++ Java Python3 Medium
1026 Maximum Difference Between Node and Ancestor C++ Java Python3 Medium
1025 Divisor Game C++ Java Python3 Easy
1024 Video Stitching C++ Java Python3 Medium
1023 Camelcase Matching C++ Java Python3 Medium
1022 Sum of Root To Leaf Binary Numbers C++ Java Python3 Easy
1021 Remove Outermost Parentheses C++ Java Python3 Easy
1020 Number of Enclaves C++ Java Python3 Medium
1019 Next Greater Node In Linked List C++ Java Python3 Medium
1018 Binary Prefix Divisible By 5 C++ Java Python3 Easy
1017 Convert to Base -2 C++ Java Python3 Medium
1016 Binary String With Substrings Representing 1 To N C++ Java Python3 Medium
1015 Smallest Integer Divisible by K C++ Java Python3 Medium
1014 Best Sightseeing Pair C++ Java Python3 Medium
1013 Partition Array Into Three Parts With Equal Sum C++ Java Python3 Easy
1012 Numbers With 1 Repeated Digit C++ Java Python3 Hard
1011 Capacity To Ship Packages Within D Days C++ Java Python3 Medium
1010 Pairs of Songs With Total Durations Divisible by 60 C++ Java Python3 Easy
1009 Complement of Base 10 Integer C++ Java Python3 Easy
1008 Construct Binary Search Tree from Preorder Traversal C++ Java Python3 Medium
1007 Minimum Domino Rotations For Equal Row C++ Java Python3 Medium
1006 Clumsy Factorial C++ Java Python3 Medium
1005 Maximize Sum Of Array After K Negations C++ Java Python3 Easy
1004 Max Consecutive Ones III C++ Java Python3 Medium
1003 Check If Word Is Valid After Substitutions C++ Java Python3 Medium
1002 Find Common Characters C++ Java Python3 Easy
1001 Grid Illumination C++ Java Python3 Hard
1000 Minimum Cost to Merge Stones C++ Java Python3 Hard
999 Available Captures for Rook C++ Java Python3 Easy
998 Maximum Binary Tree II C++ Java Python3 Medium
997 Find the Town Judge C++ Java Python3 Easy
996 Number of Squareful Arrays C++ Java Python3 Hard
995 Minimum Number of K Consecutive Bit Flips C++ Java Python3 Hard
994 Rotting Oranges C++ Java Python3 Easy
993 Cousins in Binary Tree C++ Java Python3 Easy
992 Subarrays with K Different Integers C++ Java Python3 Hard
991 Broken Calculator C++ Java Python3 Medium
990 Satisfiability of Equality Equations C++ Java Python3 Medium
989 Add to Array-Form of Integer C++ Java Python3 Easy
988 Smallest String Starting From Leaf C++ Java Python3 Medium
987 Vertical Order Traversal of a Binary Tree C++ Java Python3 Medium
986 Interval List Intersections C++ Java Python3 Medium
985 Sum of Even Numbers After Queries C++ Java Python3 Easy
984 String Without AAA or BBB C++ Java Python3 Medium
983 Minimum Cost For Tickets C++ Java Python3 Medium
982 Triples with Bitwise AND Equal To Zero C++ Java Python3 Hard
981 Time Based Key-Value Store C++ Java Python3 Medium
980 Unique Paths III C++ Java Python3 Hard
979 Distribute Coins in Binary Tree C++ Java Python3 Medium
978 Longest Turbulent Subarray C++ Java Python3 Medium
977 Squares of a Sorted Array C++ Java Python3 Easy
976 Largest Perimeter Triangle C++ Java Python3 Easy
975 Odd Even Jump C++ Java Python3 Hard
974 Subarray Sums Divisible by K C++ Java Python3 Medium
973 K Closest Points to Origin C++ Java Python3 Medium
972 Equal Rational Numbers C++ Java Python3 Hard
971 Flip Binary Tree To Match Preorder Traversal C++ Java Python3 Medium
970 Powerful Integers C++ Java Python3 Easy
969 Pancake Sorting C++ Java Python3 Medium
968 Binary Tree Cameras C++ Java Python3 Hard
967 Numbers With Same Consecutive Differences C++ Java Python3 Medium
966 Vowel Spellchecker C++ Java Python3 Medium
965 Univalued Binary Tree C++ Java Python3 Easy
964 Least Operators to Express Number C++ Java Python3 Hard
963 Minimum Area Rectangle II C++ Java Python3 Medium
962 Maximum Width Ramp C++ Java Python3 Medium
961 N-Repeated Element in Size 2N Array C++ Java Python3 Easy
960 Delete Columns to Make Sorted III C++ Java Python3 Hard
959 Regions Cut By Slashes C++ Java Python3 Medium
958 Check Completeness of a Binary Tree C++ Java Python3 Medium
957 Prison Cells After N Days C++ Java Python3 Medium
956 Tallest Billboard C++ Java Python3 Hard
955 Delete Columns to Make Sorted II C++ Java Python3 Medium
954 Array of Doubled Pairs C++ Java Python3 Medium
953 Verifying an Alien Dictionary C++ Java Python3 Easy
952 Largest Component Size by Common Factor C++ Java Python3 Hard
951 Flip Equivalent Binary Trees C++ Java Python3 Medium
950 Reveal Cards In Increasing Order C++ Java Python3 Medium
949 Largest Time for Given Digits C++ Java Python3 Easy
948 Bag of Tokens C++ Java Python3 Medium
947 Most Stones Removed with Same Row or Column C++ Java Python3 Medium
946 Validate Stack Sequences C++ Java Python3 Medium
945 Minimum Increment to Make Array Unique C++ Java Python3 Medium
944 Delete Columns to Make Sorted C++ Java Python3 Easy
943 Find the Shortest Superstring C++ Java Python3 Hard
942 DI String Match C++ Java Python3 Easy
941 Valid Mountain Array C++ Java Python3 Easy
940 Distinct Subsequences II C++ Java Python3 Hard
939 Minimum Area Rectangle C++ Java Python3 Medium
938 Range Sum of BST C++ Java Python3 Medium
937 Reorder Log Files C++ Java Python3 Easy
936 Stamping The Sequence C++ Java Python3 Hard
935 Knight Dialer C++ Java Python3 Medium
934 Shortest Bridge C++ Java Python3 Medium
933 Number of Recent Calls C++ Java Python3 Easy
932 Beautiful Array C++ Java Python3 Medium
931 Minimum Falling Path Sum C++ Java Python3 Medium
930 Binary Subarrays With Sum C++ Java Python3 Medium
929 Unique Email Addresses C++ Java Python3 Easy
928 Minimize Malware Spread II C++ Java Python3 Hard
927 Three Equal Parts C++ Java Python3 Hard
926 Flip String to Monotone Increasing C++ Java Python3 Medium
925 Long Pressed Name C++ Java Python3 Easy
924 Minimize Malware Spread C++ Java Python3 Hard
923 3Sum With Multiplicity C++ Java Python3 Medium
922 Sort Array By Parity II C++ Java Python3 Easy
921 Minimum Add to Make Parentheses Valid C++ Java Python3 Medium
920 Number of Music Playlists C++ Java Python3 Hard
919 Complete Binary Tree Inserter C++ Java Python3 Medium
918 Maximum Sum Circular Subarray C++ Java Python3 Medium
917 Reverse Only Letters C++ Java Python3 Easy
916 Word Subsets C++ Java Python3 Medium
915 Partition Array into Disjoint Intervals C++ Java Python3 Medium
914 X of a Kind in a Deck of Cards C++ Java Python3 Easy
913 Cat and Mouse C++ Java Python3 Hard
912 Sort an Array C++ Java Python3 Medium
911 Online Election C++ Java Python3 Medium
910 Smallest Range II C++ Java Python3 Medium
909 Snakes and Ladders C++ Java Python3 Medium
908 Smallest Range I C++ Java Python3 Easy
907 Sum of Subarray Minimums C++ Java Python3 Medium
906 Super Palindromes C++ Java Python3 Hard
905 Sort Array By Parity C++ Java Python3 Easy
904 Fruit Into Baskets C++ Java Python3 Medium
903 Valid Permutations for DI Sequence C++ Java Python3 Hard
902 Numbers At Most N Given Digit Set C++ Java Python3 Hard
901 Online Stock Span C++ Java Python3 Medium
900 RLE Iterator C++ Java Python3 Medium
899 Orderly Queue C++ Java Python3 Hard
898 Bitwise ORs of Subarrays C++ Java Python3 Medium
897 Increasing Order Search Tree C++ Java Python3 Easy
896 Monotonic Array C++ Java Python3 Easy
895 Maximum Frequency Stack C++ Java Python3 Hard
894 All Possible Full Binary Trees C++ Java Python3 Medium
893 Groups of Special-Equivalent Strings C++ Java Python3 Easy
892 Surface Area of 3D Shapes C++ Java Python3 Easy
891 Sum of Subsequence Widths C++ Java Python3 Hard
890 Find and Replace Pattern C++ Java Python3 Medium
889 Construct Binary Tree from Preorder and Postorder Traversal C++ Java Python3 Medium
888 Fair Candy Swap C++ Java Python3 Easy
887 Super Egg Drop C++ Java Python3 Hard
886 Possible Bipartition C++ Java Python3 Medium
885 Spiral Matrix III C++ Java Python3 Medium
884 Uncommon Words from Two Sentences C++ Java Python3 Easy
883 Projection Area of 3D Shapes C++ Java Python3 Easy
882 Reachable Nodes In Subdivided Graph C++ Java Python3 Hard
881 Boats to Save People C++ Java Python3 Medium
880 Decoded String at Index C++ Java Python3 Medium
879 Profitable Schemes C++ Java Python3 Hard
878 Nth Magical Number C++ Java Python3 Hard
877 Stone Game C++ Java Python3 Medium
876 Middle of the Linked List C++ Java Python3 Easy
875 Koko Eating Bananas C++ Java Python3 Medium
874 Walking Robot Simulation C++ Java Python3 Easy
873 Length of Longest Fibonacci Subsequence C++ Java Python3 Medium
872 Leaf-Similar Trees C++ Java Python3 Easy
871 Minimum Number of Refueling Stops C++ Java Python3 Hard
870 Advantage Shuffle C++ Java Python3 Medium
869 Reordered Power of 2 C++ Java Python3 Medium
868 Binary Gap C++ Java Python3 Easy
867 Transpose Matrix C++ Java Python3 Easy
866 Prime Palindrome C++ Java Python3 Medium
865 Smallest Subtree with all the Deepest Nodes C++ Java Python3 Medium
864 Shortest Path to Get All Keys C++ Java Python3 Hard
863 All Nodes Distance K in Binary Tree C++ Java Python3 Medium
862 Shortest Subarray with Sum at Least K C++ Java Python3 Hard
861 Score After Flipping Matrix C++ Java Python3 Medium
860 Lemonade Change C++ Java Python3 Easy
859 Buddy Strings C++ Java Python3 Easy
858 Mirror Reflection C++ Java Python3 Medium
857 Minimum Cost to Hire K Workers C++ Java Python3 Hard
856 Score of Parentheses C++ Java Python3 Medium
855 Exam Room C++ Java Python3 Medium
854 K-Similar Strings C++ Java Python3 Hard
853 Car Fleet C++ Java Python3 Medium
852 Peak Index in a Mountain Array C++ Java Python3 Easy
851 Loud and Rich C++ Java Python3 Medium
850 Rectangle Area II C++ Java Python3 Hard
849 Maximize Distance to Closest Person C++ Java Python3 Easy
848 Shifting Letters C++ Java Python3 Medium
847 Shortest Path Visiting All Nodes C++ Java Python3 Hard
846 Hand of Straights C++ Java Python3 Medium
845 Longest Mountain in Array C++ Java Python3 Medium
844 Backspace String Compare C++ Java Python3 Easy
843 Guess the Word C++ Java Python3 Hard
842 Split Array into Fibonacci Sequence C++ Java Python3 Medium
841 Keys and Rooms C++ Java Python3 Medium
840 Magic Squares In Grid C++ Java Python3 Easy
839 Similar String Groups C++ Java Python3 Hard
838 Push Dominoes C++ Java Python3 Medium
837 New 21 Game C++ Java Python3 Medium
836 Rectangle Overlap C++ Java Python3 Easy
835 Image Overlap C++ Java Python3 Medium
834 Sum of Distances in Tree C++ Java Python3 Hard
833 Find And Replace in String C++ Java Python3 Medium
832 Flipping an Image C++ Java Python3 Easy
831 Masking Personal Information C++ Java Python3 Medium
830 Positions of Large Groups C++ Java Python3 Easy
829 Consecutive Numbers Sum C++ Java Python3 Hard
828 Unique Letter String C++ Java Python3 Hard
827 Making A Large Island C++ Java Python3 Hard
826 Most Profit Assigning Work C++ Java Python3 Medium
825 Friends Of Appropriate Ages C++ Java Python3 Medium
824 Goat Latin C++ Java Python3 Easy
823 Binary Trees With Factors C++ Java Python3 Medium
822 Card Flipping Game C++ Java Python3 Medium
821 Shortest Distance to a Character C++ Java Python3 Easy
820 Short Encoding of Words C++ Java Python3 Medium
819 Most Common Word C++ Java Python3 Easy
818 Race Car C++ Java Python3 Hard
817 Linked List Components C++ Java Python3 Medium
816 Ambiguous Coordinates C++ Java Python3 Medium
815 Bus Routes C++ Java Python3 Hard
814 Binary Tree Pruning C++ Java Python3 Medium
813 Largest Sum of Averages C++ Java Python3 Medium
812 Largest Triangle Area C++ Java Python3 Easy
811 Subdomain Visit Count C++ Java Python3 Easy
810 Chalkboard XOR Game C++ Java Python3 Hard
809 Expressive Words C++ Java Python3 Medium
808 Soup Servings C++ Java Python3 Medium
807 Max Increase to Keep City Skyline C++ Java Python3 Medium
806 Number of Lines To Write String C++ Java Python3 Easy
805 Split Array With Same Average C++ Java Python3 Hard
804 Unique Morse Code Words C++ Java Python3 Easy
803 Bricks Falling When Hit C++ Java Python3 Hard
802 Find Eventual Safe States C++ Java Python3 Medium
801 Minimum Swaps To Make Sequences Increasing C++ Java Python3 Medium
800 C++ Java Python3 Easy
799 Champagne Tower C++ Java Python3 Medium
798 Smallest Rotation with Highest Score C++ Java Python3 Hard
797 All Paths From Source to Target C++ Java Python3 Medium
796 Rotate String C++ Java Python3 Easy
795 Number of Subarrays with Bounded Maximum C++ Java Python3 Medium
794 Valid Tic-Tac-Toe State C++ Java Python3 Medium
793 Preimage Size of Factorial Zeroes Function C++ Java Python3 Hard
792 Number of Matching Subsequences C++ Java Python3 Medium
791 Custom Sort String C++ Java Python3 Medium
790 Domino and Tromino Tiling C++ Java Python3 Medium
789 Escape The Ghosts C++ Java Python3 Medium
788 Rotated Digits C++ Java Python3 Easy
787 Cheapest Flights Within K Stops C++ Java Python3 Medium
786 K-th Smallest Prime Fraction C++ Java Python3 Hard
785 Is Graph Bipartite? C++ Java Python3 Medium
784 Letter Case Permutation C++ Java Python3 Easy
783 Minimum Distance Between BST Nodes C++ Java Python3 Easy
782 Transform to Chessboard C++ Java Python3 Hard
781 Rabbits in Forest C++ Java Python3 Medium
780 Reaching Points C++ Java Python3 Hard
779 K-th Symbol in Grammar C++ Java Python3 Medium
778 Swim in Rising Water C++ Java Python3 Hard
777 Swap Adjacent in LR String C++ Java Python3 Medium
776 C++ Java Python3 Medium
775 Global and Local Inversions C++ Java Python3 Medium
774 C++ Java Python3 Hard
773 Sliding Puzzle C++ Java Python3 Hard
772 C++ Java Python3 Hard
771 Jewels and Stones C++ Java Python3 Easy
770 Basic Calculator IV C++ Java Python3 Hard
769 Max Chunks To Make Sorted C++ Java Python3 Medium
768 Max Chunks To Make Sorted II C++ Java Python3 Hard
767 Reorganize String C++ Java Python3 Medium
766 Toeplitz Matrix C++ Java Python3 Easy
765 Couples Holding Hands C++ Java Python3 Hard
764 Largest Plus Sign C++ Java Python3 Medium
763 Partition Labels C++ Java Python3 Medium
762 Prime Number of Set Bits in Binary Representation C++ Java Python3 Easy
761 Special Binary String C++ Java Python3 Hard
760 C++ Java Python3 Easy
759 C++ Java Python3 Hard
758 C++ Java Python3 Easy
757 Set Intersection Size At Least Two C++ Java Python3 Hard
756 Pyramid Transition Matrix C++ Java Python3 Medium
755 C++ Java Python3 Medium
754 Reach a Number C++ Java Python3 Easy
753 Cracking the Safe C++ Java Python3 Hard
752 Open the Lock C++ Java Python3 Medium
751 C++ Java Python3 Easy
750 C++ Java Python3 Medium
749 Contain Virus C++ Java Python3 Hard
748 Shortest Completing Word C++ Java Python3 Easy
747 Largest Number At Least Twice of Others C++ Java Python3 Easy
746 Min Cost Climbing Stairs C++ Java Python3 Easy
745 Prefix and Suffix Search C++ Java Python3 Hard
744 Find Smallest Letter Greater Than Target C++ Java Python3 Easy
743 Network Delay Time C++ Java Python3 Medium
742 C++ Java Python3 Medium
741 Cherry Pickup C++ Java Python3 Hard
740 Delete and Earn C++ Java Python3 Medium
739 Daily Temperatures C++ Java Python3 Medium
738 Monotone Increasing Digits C++ Java Python3 Medium
737 C++ Java Python3 Medium
736 Parse Lisp Expression C++ Java Python3 Medium
735 Asteroid Collision C++ Java Python3 Medium
734 C++ Java Python3 Easy
733 Flood Fill C++ Java Python3 Easy
732 My Calendar III C++ Java Python3 Hard
731 My Calendar II C++ Java Python3 Medium
730 Count Different Palindromic Subsequences C++ Java Python3 Hard
729 My Calendar I C++ Java Python3 Medium
728 Self Dividing Numbers C++ Java Python3 Easy
727 C++ Java Python3 Hard
726 Number of Atoms C++ Java Python3 Hard
725 Split Linked List in Parts C++ Java Python3 Medium
724 Find Pivot Index C++ Java Python3 Easy
723 C++ Java Python3 Medium
722 Remove Comments C++ Java Python3 Medium
721 Accounts Merge C++ Java Python3 Medium
720 Longest Word in Dictionary C++ Java Python3 Easy
719 Find K-th Smallest Pair Distance C++ Java Python3 Hard
718 Maximum Length of Repeated Subarray C++ Java Python3 Medium
717 C++ Java Python3 Easy
716 C++ Java Python3 Easy
715 Range Module C++ Java Python3 Hard
714 Best Time to Buy and Sell Stock with Transaction Fee C++ Java Python3 Medium
713 Subarray Product Less Than K C++ Java Python3 Medium
712 Minimum ASCII Delete Sum for Two Strings C++ Java Python3 Medium
711 C++ Java Python3 Hard
710 Random Pick with Blacklist C++ Java Python3 Hard
709 To Lower Case C++ Java Python3 Easy
708 C++ Java Python3 Medium
707 Design Linked List C++ Java Python3 Easy
706 Design HashMap C++ Java Python3 Easy
705 Design HashSet C++ Java Python3 Easy
704 Binary Search C++ Java Python3 Easy
703 Kth Largest Element in a Stream C++ Java Python3 Easy
702 C++ Java Python3 Medium
701 Insert into a Binary Search Tree C++ Java Python3 Medium
700 Search in a Binary Search Tree C++ Java Python3 Easy
699 Falling Squares C++ Java Python3 Hard
698 Partition to K Equal Sum Subsets C++ Java Python3 Medium
697 Degree of an Array C++ Java Python3 Easy
696 Count Binary Substrings C++ Java Python3 Easy
695 Max Area of Island C++ Java Python3 Medium
694 C++ Java Python3 Medium
693 Binary Number with Alternating Bits C++ Java Python3 Easy
692 Top K Frequent Words C++ Java Python3 Medium
691 Stickers to Spell Word C++ Java Python3 Hard
690 Employee Importance C++ Java Python3 Easy
689 Maximum Sum of 3 Non-Overlapping Subarrays C++ Java Python3 Hard
688 Knight Probability in Chessboard C++ Java Python3 Medium
687 Longest Univalue Path C++ Java Python3 Easy
686 Repeated String Match C++ Java Python3 Easy
685 Redundant Connection II C++ Java Python3 Hard
684 Redundant Connection C++ Java Python3 Medium
683 C++ Java Python3 Hard
682 Baseball Game C++ Java Python3 Easy
681 C++ Java Python3 Medium
680 Valid Palindrome II C++ Java Python3 Easy
679 24 Game C++ Java Python3 Medium
678 Valid Parenthesis String C++ Java Python3 Medium
677 Map Sum Pairs C++ Java Python3 Medium
676 Implement Magic Dictionary C++ Java Python3 Medium
675 Cut Off Trees for Golf Event C++ Java Python3 Hard
674 Longest Continuous Increasing Subsequence C++ Java Python3 Easy
673 Number of Longest Increasing Subsequence C++ Java Python3 Medium
672 Bulb Switcher II C++ Java Python3 Medium
671 Second Minimum Node In a Binary Tree C++ Java Python3 Easy
670 Maximum Swap C++ Java Python3 Medium
669 Trim a Binary Search Tree C++ Java Python3 Easy
668 Kth Smallest Number in Multiplication Table C++ Java Python3 Hard
667 Beautiful Arrangement II C++ Java Python3 Medium
666 C++ Java Python3 Medium
665 Non-decreasing Array C++ Java Python3 Medium
664 Strange Printer C++ Java Python3 Medium
663 C++ Java Python3 Medium
662 Maximum Width of Binary Tree C++ Java Python3 Medium
661 Image Smoother C++ Java Python3 Easy
660 C++ Java Python3 Hard
659 Split Array into Consecutive Subsequences C++ Java Python3 Medium
658 Find K Closest Elements C++ Java Python3 Medium
657 Robot Return to Origin C++ Java Python3 Easy
656 C++ Java Python3 Hard
655 Print Binary Tree C++ Java Python3 Medium
654 Maximum Binary Tree C++ Java Python3 Medium
653 Two Sum IV - Input is a BST C++ Java Python3 Easy
652 Find Duplicate Subtrees C++ Java Python3 Medium
651 C++ Java Python3 Medium
650 2 Keys Keyboard C++ Java Python3 Medium
649 Dota2 Senate C++ Java Python3 Medium
648 Replace Words C++ Java Python3 Medium
647 Palindromic Substrings C++ Java Python3 Medium
646 Maximum Length of Pair Chain C++ Java Python3 Medium
645 Set Mismatch C++ Java Python3 Easy
644 C++ Java Python3 Hard
643 Maximum Average Subarray I C++ Java Python3 Easy
642 C++ Java Python3 Hard
641 Design Circular Deque C++ Java Python3 Medium
640 Solve the Equation C++ Java Python3 Medium
639 Decode Ways II C++ Java Python3 Hard
638 Shopping Offers C++ Java Python3 Medium
637 Average of Levels in Binary Tree C++ Java Python3 Easy
636 Exclusive Time of Functions C++ Java Python3 Medium
635 C++ Java Python3 Medium
634 C++ Java Python3 Medium
633 Sum of Square Numbers C++ Java Python3 Easy
632 Smallest Range C++ Java Python3 Hard
631 C++ Java Python3 Hard
630 Course Schedule III C++ Java Python3 Hard
629 K Inverse Pairs Array C++ Java Python3 Hard
628 Maximum Product of Three Numbers C++ Java Python3 Easy
627 Swap Salary C++ Java Python3 Easy
626 Exchange Seats C++ Java Python3 Medium
625 C++ Java Python3 Medium
624 C++ Java Python3 Easy
623 Add One Row to Tree C++ Java Python3 Medium
622 Design Circular Queue C++ Java Python3 Medium
621 Task Scheduler C++ Java Python3 Medium
620 Not Boring Movies C++ Java Python3 Easy
619 C++ Java Python3 Easy
618 C++ Java Python3 Hard
617 Merge Two Binary Trees C++ Java Python3 Easy
616 C++ Java Python3 Medium
615 C++ Java Python3 Hard
614 C++ Java Python3 Medium
613 C++ Java Python3 Easy
612 C++ Java Python3 Medium
611 Valid Triangle Number C++ Java Python3 Medium
610 C++ Java Python3 Easy
609 Find Duplicate File in System C++ Java Python3 Medium
608 C++ Java Python3 Medium
607 C++ Java Python3 Easy
606 Construct String from Binary Tree C++ Java Python3 Easy
605 Can Place Flowers C++ Java Python3 Easy
604 C++ Java Python3 Easy
603 C++ Java Python3 Easy
602 C++ Java Python3 Medium
601 Human Traffic of Stadium C++ Java Python3 Hard
600 Non-negative Integers without Consecutive Ones C++ Java Python3 Hard
599 Minimum Index Sum of Two Lists C++ Java Python3 Easy
598 Range Addition II C++ Java Python3 Easy
597 C++ Java Python3 Easy
596 Classes More Than 5 Students C++ Java Python3 Easy
595 Big Countries C++ Java Python3 Easy
594 Longest Harmonious Subsequence C++ Java Python3 Easy
593 Valid Square C++ Java Python3 Medium
592 Fraction Addition and Subtraction C++ Java Python3 Medium
591 Tag Validator C++ Java Python3 Hard
590 C++ Java Python3 Easy
589 C++ Java Python3 Easy
588 C++ Java Python3 Hard
587 Erect the Fence C++ Java Python3 Hard
586 C++ Java Python3 Easy
585 C++ Java Python3 Medium
584 C++ Java Python3 Easy
583 Delete Operation for Two Strings C++ Java Python3 Medium
582 C++ Java Python3 Medium
581 Shortest Unsorted Continuous Subarray  C++ Java Python3 Easy
580 C++ Java Python3 Medium
579 C++ Java Python3 Hard
578 C++ Java Python3 Medium
577 Employee Bonus C++ Java Python3 Easy
576 Out of Boundary Paths C++ Java Python3 Medium
575 Distribute Candies C++ Java Python3 Easy
574 C++ Java Python3 Medium
573 C++ Java Python3 Medium
572 Subtree of Another Tree C++ Java Python3 Easy
571 C++ Java Python3 Hard
570 C++ Java Python3 Medium
569 C++ Java Python3 Hard
568 C++ Java Python3 Hard
567 Permutation in String C++ Java Python3 Medium
566 Reshape the Matrix C++ Java Python3 Easy
565 Array Nesting C++ Java Python3 Medium
564 Find the Closest Palindrome C++ Java Python3 Hard
563 Binary Tree Tilt C++ Java Python3 Easy
562 C++ Java Python3 Medium
561 Array Partition I C++ Java Python3 Easy
560 Subarray Sum Equals K C++ Java Python3 Medium
559 C++ Java Python3 Easy
558 C++ Java Python3 Easy
557 Reverse Words in a String III C++ Java Python3 Easy
556 Next Greater Element III C++ Java Python3 Medium
555 C++ Java Python3 Medium
554 Brick Wall C++ Java Python3 Medium
553 Optimal Division C++ Java Python3 Medium
552 Student Attendance Record II C++ Java Python3 Hard
551 Student Attendance Record I C++ Java Python3 Easy
550 C++ Java Python3 Medium
549 C++ Java Python3 Medium
548 C++ Java Python3 Medium
547 Friend Circles C++ Java Python3 Medium
546 Remove Boxes C++ Java Python3 Hard
545 C++ Java Python3 Medium
544 C++ Java Python3 Medium
543 Diameter of Binary Tree C++ Java Python3 Easy
542 01 Matrix C++ Java Python3 Medium
541 Reverse String II C++ Java Python3 Easy
540 Single Element in a Sorted Array C++ Java Python3 Medium
539 Minimum Time Difference C++ Java Python3 Medium
538 Convert BST to Greater Tree C++ Java Python3 Easy
537 Complex Number Multiplication C++ Java Python3 Medium
536 C++ Java Python3 Medium
535 C++ Java Python3 Medium
534 C++ Java Python3 Medium
533 C++ Java Python3 Medium
532 K-diff Pairs in an Array C++ Java Python3 Easy
531 C++ Java Python3 Medium
530 Minimum Absolute Difference in BST C++ Java Python3 Easy
529 Minesweeper C++ Java Python3 Medium
528 Random Pick with Weight C++ Java Python3 Medium
527 C++ Java Python3 Hard
526 Beautiful Arrangement C++ Java Python3 Medium
525 Contiguous Array C++ Java Python3 Medium
524 Longest Word in Dictionary through Deleting C++ Java Python3 Medium
523 Continuous Subarray Sum C++ Java Python3 Medium
522 Longest Uncommon Subsequence II C++ Java Python3 Medium
521 Longest Uncommon Subsequence I C++ Java Python3 Easy
520 Detect Capital C++ Java Python3 Easy
519 Random Flip Matrix C++ Java Python3 Medium
518 Coin Change 2 C++ Java Python3 Medium
517 Super Washing Machines C++ Java Python3 Hard
516 Longest Palindromic  C++ Java Python3 Medium
515 Find Largest Value in Each Tree Row C++ Java Python3 Medium
514 Freedom Trail C++ Java Python3 Hard
513 Find Bottom Left Tree Value C++ Java Python3 Medium
512 C++ Java Python3 Medium
511 C++ Java Python3 Medium
510 C++ Java Python3 Medium
509 Fibonacci Number C++ Java Python3 Easy
508 Most Frequent Subtree Sum C++ Java Python3 Medium
507 Perfect Number C++ Java Python3 Easy
506 Relative Ranks C++ Java Python3 Easy
505 C++ Java Python3 Medium
504 Base 7 C++ Java Python3 Easy
503 Next Greater Element II C++ Java Python3 Medium
502 Initial Public Offerings C++ Java Python3 Hard
501 Find Mode in Binary Search Tree C++ Java Python3 Easy
500 Keyboard Row C++ Java Python3 Easy
499 C++ Java Python3 Hard
498 Diagonal Traverse C++ Java Python3 Medium
497 [Random Point in Non C++ Java Python3 Medium
496 Next Greater Element I C++ Java Python3 Easy
495 Teemo Attacking C++ Java Python3 Medium
494 Target Sum C++ Java Python3 Medium
493 Reverse Pairs C++ Java Python3 Hard
492 Construct the Rectangle C++ Java Python3 Easy
491 Increasing Subsequences C++ Java Python3 Medium
490 C++ Java Python3 Medium
489 C++ Java Python3 Hard
488 Zuma Game C++ Java Python3 Hard
487 C++ Java Python3 Medium
486 Predict the Winner C++ Java Python3 Medium
485 Max Consecutive Ones C++ Java Python3 Easy
484 C++ Java Python3 Medium
483 Smallest Good Base C++ Java Python3 Hard
482 License Key Formatting C++ Java Python3 Easy
481 Magical String C++ Java Python3 Medium
480 Sliding Window Median C++ Java Python3 Hard
479 Largest Palindrome Product C++ Java Python3 Hard
478 Generate Random Point in a Circle C++ Java Python3 Medium
477 Total Hamming Distance C++ Java Python3 Medium
476 Number Complement C++ Java Python3 Easy
475 Heaters C++ Java Python3 Easy
474 Ones and Zeroes C++ Java Python3 Medium
473 Matchsticks to Square C++ Java Python3 Medium
472 Concatenated Words C++ Java Python3 Hard
471 C++ Java Python3 Hard
470 Implement Rand10() Using Rand7() C++ Java Python3 Medium
469 C++ Java Python3 Medium
468 Validate IP Address C++ Java Python3 Medium
467 Unique Substrings in Wraparound String C++ Java Python3 Medium
466 Count The Repetitions C++ Java Python3 Hard
465 C++ Java Python3 Hard
464 Can I Win C++ Java Python3 Medium
463 Island Perimeter C++ Java Python3 Easy
462 Minimum Moves to Equal Array Elements II C++ Java Python3 Medium
461 Hamming Distance C++ Java Python3 Easy
460 LFU Cache C++ Java Python3 Hard
459 Repeated Substring Pattern C++ Java Python3 Easy
458 Poor Pigs C++ Java Python3 Hard
457 Circular Array Loop C++ Java Python3 Medium
456 132 Pattern C++ Java Python3 Medium
455 Assign Cookies C++ Java Python3 Easy
454 4Sum II C++ Java Python3 Medium
453 Minimum Moves to Equal Array Elements C++ Java Python3 Easy
452 Minimum Number of Arrows to Burst Balloons C++ Java Python3 Medium
451 Sort Characters By Frequency C++ Java Python3 Medium
450 Delete Node in a BST C++ Java Python3 Medium
449 C++ Java Python3 Medium
448 Find All Numbers Disappeared in an Array C++ Java Python3 Easy
447 Number of Boomerangs C++ Java Python3 Easy
446 Arithmetic Slices II - Subsequence C++ Java Python3 Hard
445 Add Two Numbers II C++ Java Python3 Medium
444 C++ Java Python3 Medium
443 String Compression C++ Java Python3 Easy
442 Find All Duplicates in an Array C++ Java Python3 Medium
441 Arranging Coins C++ Java Python3 Easy
440 K-th Smallest in Lexicographical Order C++ Java Python3 Hard
439 C++ Java Python3 Medium
438 Find All Anagrams in a String C++ Java Python3 Easy
437 Path Sum III C++ Java Python3 Easy
436 Find Right Interval C++ Java Python3 Medium
435 Non-overlapping Intervals C++ Java Python3 Medium
434 Number of Segments in a String C++ Java Python3 Easy
433 Minimum Genetic Mutation C++ Java Python3 Medium
432 All O`one Data Structure C++ Java Python3 Hard
431 C++ Java Python3 Hard
430 C++ Java Python3 Medium
429 C++ Java Python3 Easy
428 C++ Java Python3 Hard
427 C++ Java Python3 Easy
426 C++ Java Python3 Medium
425 C++ Java Python3 Hard
424 Longest Repeating Character Replacement C++ Java Python3 Medium
423 Reconstruct Original Digits from English C++ Java Python3 Medium
422 C++ Java Python3 Easy
421 Maximum XOR of Two Numbers in an Array C++ Java Python3 Medium
420 Strong Password Checker C++ Java Python3 Hard
419 Battleships in a Board C++ Java Python3 Medium
418 C++ Java Python3 Medium
417 Pacific Atlantic Water Flow C++ Java Python3 Medium
416 Partition Equal Subset Sum C++ Java Python3 Medium
415 Add Strings C++ Java Python3 Easy
414 Third Maximum Number C++ Java Python3 Easy
413 Arithmetic Slices C++ Java Python3 Medium
412 Fizz Buzz C++ Java Python3 Easy
411 C++ Java Python3 Hard
410 Split Array Largest Sum C++ Java Python3 Hard
409 Longest Palindrome C++ Java Python3 Easy
408 C++ Java Python3 Easy
407 Trapping Rain Water II C++ Java Python3 Hard
406 Queue Reconstruction by Height C++ Java Python3 Medium
405 Convert a Number to Hexadecimal C++ Java Python3 Easy
404 Sum of Left Leaves C++ Java Python3 Easy
403 Frog Jump C++ Java Python3 Hard
402 Remove K Digits C++ Java Python3 Medium
401 Binary Watch C++ Java Python3 Easy
400 Nth Digit  C++ Java Python3 Easy
399 Evaluate Division C++ Java Python3 Medium
398 Random Pick Index C++ Java Python3 Medium
397 Integer Replacement C++ Java Python3 Medium
396 Rotate Function C++ Java Python3 Medium
395 Longest Substring with At Least K Repeating Characters C++ Java Python3 Medium
394 Decode String C++ Java Python3 Medium
393 UTF-8 Validation C++ Java Python3 Medium
392 Is Subsequence C++ Java Python3 Medium
391 Perfect Rectangle C++ Java Python3 Hard
390 Elimination Game C++ Java Python3 Medium
389 Find the Difference  C++ Java Python3 Easy
388 Longest Absolute File Path C++ Java Python3 Medium
387 First Unique Character in a String C++ Java Python3 Easy
386 Lexicographical Numbers C++ Java Python3 Medium
385 Mini Parser C++ Java Python3 Medium
384 Shuffle an Array C++ Java Python3 Medium
383 Ransom Note C++ Java Python3 Easy
382 Linked List Random Node C++ Java Python3 Medium
381 Insert Delete GetRandom O(1) - Duplicates allowed C++ Java Python3 Hard
380 Insert Delete GetRandom O(1) C++ Java Python3 Medium
379 C++ Java Python3 Medium
378 Kth Smallest Element in a Sorted Matrix C++ Java Python3 Medium
377 Combination Sum IV C++ Java Python3 Medium
376 Wiggle Subsequence C++ Java Python3 Medium
375 Guess Number Higher or Lower II C++ Java Python3 Medium
374 Guess Number Higher or Lower C++ Java Python3 Easy
373 Find K Pairs with Smallest Sums C++ Java Python3 Medium
372 Super Pow C++ Java Python3 Medium
371 Sum of Two Integers  C++ Java Python3 Easy
370 C++ Java Python3 Medium
369 C++ Java Python3 Medium
368 Largest Divisible Subset C++ Java Python3 Medium
367 Valid Perfect Square C++ Java Python3 Easy
366 C++ Java Python3 Medium
365 Water and Jug Problem C++ Java Python3 Medium
364 C++ Java Python3 Medium
363 Max Sum of Rectangle No Larger Than K C++ Java Python3 Hard
362 C++ Java Python3 Medium
361 C++ Java Python3 Medium
360 C++ Java Python3 Medium
359 C++ Java Python3 Easy
358 C++ Java Python3 Hard
357 Count Numbers with Unique Digits C++ Java Python3 Medium
356 C++ Java Python3 Medium
355 C++ Java Python3 Medium
354 Russian Doll Envelopes C++ Java Python3 Hard
353 C++ Java Python3 Medium
352 Data Stream as Disjoint Intervals C++ Java Python3 Hard
351 Android Unlock Patterns $ C++ Java Python3 Medium
350 Intersection of Two Arrays II C++ Java Python3 Easy
349 Intersection of Two Arrays C++ Java Python3 Easy
348 Design Tic-Tac-Toe $ C++ Java Python3 Medium
347 Top K Frequent Elements C++ Java Python3 Medium
346 Moving Average from Data Stream $ C++ Java Python3 Easy
345 Reverse Vowels of a String C++ Java Python3 Easy
344 Reverse String C++ Java Python3 Easy
343 Integer Break C++ Java Python3 Medium
342 Power of Four C++ Java Python3 Easy
341 Flatten Nested List Iterator C++ Java Python3 Medium
340 Longest Substring with At Most K Distinct Characters $ C++ Java Python3 Hard
339 Nested List Weight Sum $ C++ Java Python3 Easy
338 Counting Bits C++ Java Python3 Medium
337 House Robber III C++ Java Python3 Medium
336 Palindrome Pairs C++ Java Python3 Hard
335 Self Crossing C++ Java Python3 Hard
334 Increasing Triplet Subsequence C++ Java Python3 Medium
333 Largest BST Subtree $ C++ Java Python3 Medium
332 Reconstruct Itinerary C++ Java Python3 Medium
331 Verify Preorder Serialization of a Binary Tree C++ Java Python3 Medium
330 Patching Array C++ Java Python3 Hard
329 Longest Increasing Path in a Matrix C++ Java Python3 Hard
328 Odd Even Linked List C++ Java Python3 Medium
327 Count of Range Sum C++ Java Python3 Hard
326 Power of Three C++ Java Python3 Easy
325 Maximum Size Subarray Sum Equals k $ C++ Java Python3 Medium
324 Wiggle Sort II C++ Java Python3 Medium
323 Number of Connected Components in an Undirected Graph $ C++ Java Python3 Medium
322 Coin Change C++ Java Python3 Medium
321 Create Maximum Number C++ Java Python3 Hard
320 Generalized Abbreviation $ C++ Java Python3 Medium
319 Bulb Switcher C++ Java Python3 Medium
318 Maximum Product of Word Lengths C++ Java Python3 Medium
317 Shortest Distance from All Buildings $ C++ Java Python3 Hard
316 Remove Duplicate Letters C++ Java Python3 Hard
315 Count of Smaller Numbers After Self C++ Java Python3 Hard
314 Binary Tree Vertical Order Traversal $ C++ Java Python3 Medium
313 Super Ugly Number C++ Java Python3 Medium
312 Burst Balloons C++ Java Python3 Hard
311 Sparse Matrix Multiplication $ C++ Java Python3 Medium
310 Minimum Height Trees C++ Java Python3 Medium
309 Best Time to Buy and Sell Stock with Cooldown C++ Java Python3 Medium
308 Range Sum Query 2D - Mutable C++ Java Python3 Hard
307 Range Sum Query - Mutable C++ Java Python3 Medium
306 Additive Number C++ Java Python3 Medium
305 Number of Islands II $ C++ Java Python3 Hard
304 Range Sum Query 2D - Immutable C++ Java Python3 Medium
303 Range Sum Query - Immutable C++ Java Python3 Easy
302 Smallest Rectangle Enclosing Black Pixels $ C++ Java Python3 Hard
301 Remove Invalid Parentheses C++ Java Python3 Hard
300 Longest Increasing Subsequence C++ Java Python3 Medium
299 Bulls and Cows C++ Java Python3 Medium
298 Binary Tree Longest Consecutive Sequence $ C++ Java Python3 Medium
297 Serialize and Deserialize Binary Tree C++ Java Python3 Hard
296 Best Meeting Point $ C++ Java Python3 Hard
295 Find Median from Data Stream C++ Java Python3 Hard
294 Flip Game II $ C++ Java Python3 Medium
293 Flip Game $ C++ Java Python3 Easy
292 Nim Game C++ Java Python3 Easy
291 Word Pattern II $ C++ Java Python3 Hard
290 Word Pattern  C++ Java Python3 Easy
289 Game of Life C++ Java Python3 Medium
288 Unique Word Abbreviation $ C++ Java Python3 Medium
287 Find the Duplicate Number C++ Java Python3 Medium
286 Walls and Gates $ C++ Java Python3 Medium
285 Inorder Successor in BST $ C++ Java Python3 Medium
284 Peeking Iterator C++ Java Python3 Medium
283 Move Zeroes C++ Java Python3 Easy
282 Expression Add Operators C++ Java Python3 Hard
281 Zigzag Iterator $ C++ Java Python3 Medium
280 Wiggle Sort C++ Java Python3 Medium
279 Perfect Squares C++ Java Python3 Medium
278 First Bad Version C++ Java Python3 Easy
277 Find the Celebrity $ C++ Java Python3 Medium
276 Paint Fence $ C++ Java Python3 Easy
275 H-Index II C++ Java Python3 Medium
274 H-Index C++ Java Python3 Medium
273 Integer to English Words C++ Java Python3 Hard
272 Closest Binary Search Tree Value II $ C++ Java Python3 Hard
271 Encode and Decode Strings $ C++ Java Python3 Medium
270 Closest Binary Search Tree Value $ C++ Java Python3 Easy
269 Alien Dictionary $ C++ Java Python3 Hard
268 Missing Number C++ Java Python3 Easy
267 Palindrome Permutation II $ C++ Java Python3 Medium
266 Palindrome Permutation $ C++ Java Python3 Easy
265 Paint House II $ C++ Java Python3 Hard
264 Ugly Number II C++ Java Python3 Medium
263 Ugly Number C++ Java Python3 Easy
262 Trips and Users C++ Java Python3 Hard
261 Graph Valid Tree $ C++ Java Python3 Medium
260 Single Number III C++ Java Python3 Medium
259 3Sum Smaller $ C++ Java Python3 Medium
258 Add Digits C++ Java Python3 Easy
257 Binary Tree Paths C++ Java Python3 Easy
256 Paint House $ C++ Java Python3 Easy
255 Verify Preorder Sequence in Binary Search Tree $ C++ Java Python3 Medium
254 Factor Combinations $ C++ Java Python3 Medium
253 Meeting Rooms II $ C++ Java Python3 Medium
252 Meeting Rooms $ C++ Java Python3 Easy
251 Flatten 2D Vector $ C++ Java Python3 Medium
250 Count Univalue Subtrees $ C++ Java Python3 Medium
249 Group Shifted Strings $ C++ Java Python3 Medium
248 Strobogrammatic Number III $ C++ Java Python3 Hard
247 Strobogrammatic Number II $ C++ Java Python3 Medium
246 Strobogrammatic Number $ C++ Java Python3 Easy
245 Shortest Word Distance III $ C++ Java Python3 Medium
244 Shortest Word Distance II $ C++ Java Python3 Medium
243 Shortest Word Distance $ C++ Java Python3 Easy
242 Valid Anagram C++ Java Python3 Easy
241 Different Ways to Add Parentheses C++ Java Python3 Medium
240 Search a 2D Matrix II C++ Java Python3 Medium
239 Sliding Window Maximum C++ Java Python3 Hard
238 Product of Array Except Self C++ Java Python3 Medium
237 Delete Node in a Linked List C++ Java Python3 Easy
236 Lowest Common Ancestor of a Binary Tree C++ Java Python3 Medium
235 Lowest Common Ancestor of a Binary Search Tree C++ Java Python3 Easy
234 Palindrome Linked List C++ Java Python3 Easy
233 Number of Digit One C++ Java Python3 Hard
232 Implement Queue using Stacks C++ Java Python3 Easy
231 Power of Two C++ Java Python3 Easy
230 Kth Smallest Element in a BST C++ Java Python3 Medium
229 Majority Element II C++ Java Python3 Medium
228 Summary Ranges C++ Java Python3 Medium
227 Basic Calculator II C++ Java Python3 Medium
226 Invert Binary Tree C++ Java Python3 Easy
225 Implement Stack using Queues C++ Java Python3 Easy
224 Basic Calculator C++ Java Python3 Hard
223 Rectangle Area C++ Java Python3 Medium
222 Count Complete Tree Nodes C++ Java Python3 Medium
221 Maximal Square C++ Java Python3 Medium
220 Contains Duplicate III C++ Java Python3 Medium
219 Contains Duplicate II C++ Java Python3 Easy
218 The Skyline Problem C++ Java Python3 Hard
217 Contains Duplicate C++ Java Python3 Easy
216 Combination Sum III C++ Java Python3 Medium
215 Kth Largest Element in an Array C++ Java Python3 Medium
214 Shortest Palindrome C++ Java Python3 Hard
213 House Robber II C++ Java Python3 Medium
212 Word Search II C++ Java Python3 Hard
211 Add and Search Word - Data structure design C++ Java Python3 Medium
210 Course Schedule II C++ Java Python3 Medium
209 Minimum Size Subarray Sum C++ Java Python3 Medium
208 Implement Trie (Prefix Tree) C++ Java Python3 Medium
207 Course Schedule C++ Java Python3 Medium
206 Reverse Linked List C++ Java Python3 Easy
205 Isomorphic Strings C++ Java Python3 Easy
204 Count Primes C++ Java Python3 Easy
203 Remove Linked List Elements C++ Java Python3 Easy
202 Happy Number C++ Java Python3 Easy
201 Bitwise AND of Numbers Range C++ Java Python3 Medium
200 Number of Islands C++ Java Python3 Medium
199 Binary Tree Right Side View C++ Java Python3 Medium
198 House Robber C++ Java Python3 Easy
197 Rising Temperature C++ Java Python3 Easy
196 Delete Duplicate Emails C++ Java Python3 Easy
195 Tenth Line C++ Java Python3 Easy
194 Transpose File C++ Java Python3 Medium
193 Valid Phone Numbers C++ Java Python3 Easy
192 Word Frequency  C++ Java Python3 Medium
191 Number of 1 Bits C++ Java Python3 Easy
190 Reverse Bits C++ Java Python3 Easy
189 Rotate Array C++ Java Python3 Easy
188 Best Time to Buy and Sell Stock IV C++ Java Python3 Hard
187 Repeated DNA Sequences C++ Java Python3 Medium
186 Reverse Words in a String II $ C++ Java Python3 Medium
185 Department Top Three Salaries C++ Java Python3 Hard
184 Department Highest Salary C++ Java Python3 Medium
183 Customers Who Never Order C++ Java Python3 Easy
182 Duplicate Emails C++ Java Python3 Easy
181 Employees Earning More Than Their Managers C++ Java Python3 Easy
180 Consecutive Numbers C++ Java Python3 Medium
179 Largest Number C++ Java Python3 Medium
178 Rank Scores C++ Java Python3 Medium
177 Nth Highest Salary  C++ Java Python3 Medium
176 Second Highest Salary C++ Java Python3 Easy
175 Combine Two Tables C++ Java Python3 Easy
174 Dungeon Game C++ Java Python3 Hard
173 Binary Search Tree Iterator C++ Java Python3 Medium
172 Factorial Trailing Zeroes C++ Java Python3 Easy
171 Excel Sheet Column Number C++ Java Python3 Easy
170 Two Sum III - Data structure design $ C++ Java Python3 Easy
169 Majority Element C++ Java Python3 Easy
168 Excel Sheet Column Title C++ Java Python3 Easy
167 Two Sum II - Input array is sorted C++ Java Python3 Easy
166 Fraction to Recurring Decimal C++ Java Python3 Medium
165 Compare Version Numbers C++ Java Python3 Medium
164 Maximum Gap C++ Java Python3 Hard
163 Missing Ranges $ C++ Java Python3 Medium
162 Find Peak Element C++ Java Python3 Medium
161 One Edit Distance $ C++ Java Python3 Medium
160 Intersection of Two Linked Lists C++ Java Python3 Easy
159 Longest Substring with At Most Two Distinct Characters $ C++ Java Python3 Hard
158 Read N Characters Given Read4 II $ C++ Java Python3 Hard
157 Read N Characters Given Read4 $ C++ Java Python3 Easy
156 Binary Tree Upside Down $ C++ Java Python3 Medium
155 Min Stack C++ Java Python3  Easy
154 Find Minimum in Rotated Sorted Array II C++ Java Python3 Hard
153 Find Minimum in Rotated Sorted Array C++ Java Python3 Medium
152 Maximum Product Subarray C++ Java Python3 Medium
151 Reverse Words in a String C++ Java Python3 Medium
150 Evaluate Reverse Polish Notation C++ Java Python3 Medium
149 Max Points on a Line C++ Java Python3 Hard
148 Sort List C++ Java Python3 Medium
147 Insertion Sort List C++ Java Python3 Medium
146 LRU Cache C++ Java Python3 Hard
145 Binary Tree Postorder Traversal C++ Java Python3 Hard
144 Binary Tree Preorder Traversal C++ Java Python3 Medium
143 Reorder List C++ Java Python3 Medium
142 Linked List Cycle II C++ Java Python3 Medium
141 Linked List Cycle C++ Java Python3 Easy
140 Word Break II C++ Java Python3 Hard
139 Word Break C++ Java Python3 Medium
138 Copy List with Random Pointer C++ Java Python3 Medium
137 Single Number II C++ Java Python3 Medium
136 Single Number C++ Java Python3 Easy
135 Candy C++ Java Python3 Hard
134 Gas Station C++ Java Python3 Medium
133 Clone Graph C++ Java Python3 Medium
132 Palindrome Partitioning II C++ Java Python3 Hard
131 Palindrome Partitioning C++ Java Python3 Medium
130 Surrounded Regions C++ Java Python3 Medium
129 Sum Root to Leaf Numbers C++ Java Python3 Medium
128 Longest Consecutive Sequence C++ Java Python3 Hard
127 Word Ladder C++ Java Python3 Medium
126 Word Ladder II C++ Java Python3 Hard
125 Valid Palindrome C++ Java Python3 Easy
124 Binary Tree Maximum Path Sum C++ Java Python3 Hard
123 Best Time to Buy and Sell Stock III C++ Java Python3 Hard
122 Best Time to Buy and Sell Stock II C++ Java Python3 Easy
121 Best Time to Buy and Sell Stock C++ Java Python3 Easy
120 Triangle C++ Java Python3 Medium
119 Pascal's Triangle II C++ Java Python3 Easy
118 Pascal's Triangle C++ Java Python3 Easy
117 Populating Next Right Pointers in Each Node II  C++ Java Python3 Medium
116 Populating Next Right Pointers in Each Node C++ Java Python3 Medium
115 Distinct Subsequences C++ Java Python3 Hard
114 Flatten Binary Tree to Linked List C++ Java Python3 Medium
113 Path Sum II C++ Java Python3 Medium
112 Path Sum C++ Java Python3 Easy
111 Minimum Depth of Binary Tree C++ Java Python3 Easy
110 Balanced Binary Tree C++ Java Python3 Easy
109 Convert Sorted List to Binary Search Tree C++ Java Python3 Medium
108 Convert Sorted Array to Binary Search Tree C++ Java Python3 Easy
107 Binary Tree Level Order Traversal II C++ Java Python3 Easy
106 Construct Binary Tree from Inorder and Postorder Traversal C++ Java Python3 Medium
105 Construct Binary Tree from Preorder and Inorder Traversal C++ Java Python3 Medium
104 Maximum Depth of Binary Tree C++ Java Python3 Easy
103 Binary Tree Zigzag Level Order Traversal C++ Java Python3 Medium
102 Binary Tree Level Order Traversal C++ Java Python3 Medium
101 Symmetric Tree C++ Java Python3 Easy
100 Same Tree C++ Java Python3 Hard
99 Recover Binary Search Tree C++ Java Python3 Medium
98 Validate Binary Search Tree C++ Java Python3 Medium
97 Interleaving String C++ Java Python3 Medium
96 Unique Binary Search Trees C++ Java Python3 Medium
95 Unique Binary Search Trees II C++ Java Python3 Medium
94 Binary Tree Inorder Traversal C++ Java Python3 Medium
93 Restore IP Addresses C++ Java Python3 Medium
92 Reverse Linked List II C++ Java Python3 Medium
91 Decode Ways C++ Java Python3 Medium
90 Subsets II C++ Java Python3 Medium
89 Gray Code C++ Java Python3 Medium
88 Merge Sorted Array C++ Java Python3 Easy
87 Scramble String C++ Java Python3 Hard
86 Partition List C++ Java Python3 Medium
85 Maximal Rectangle C++ Java Python3 Hard
84 Largest Rectangle in Histogram C++ Java Python3 Hard
83 Remove Duplicates from Sorted List C++ Java Python3 Easy
82 Remove Duplicates from Sorted List II C++ Java Python3 Medium
81 Search in Rotated Sorted Array II C++ Java Python3 Medium
80 Remove Duplicates from Sorted Array II C++ Java Python3 Medium
79 Word Search C++ Java Python3 Medium
78 Subsets C++ Java Python3 Medium
77 Combinations  C++ Java Python3 Medium
76 Minimum Window Substring C++ Java Python3 Hard
75 Sort Colors C++ Java Python3 Medium
74 Search a 2D Matrix C++ Java Python3 Medium
73 Set Matrix Zeroes C++ Java Python3 Medium
72 Edit Distance C++ Java Python3 Hard
71 Simplify Path C++ Java Python3 Medium
70 Climbing Stairs C++ Java Python3 Easy
69 Sqrt(x) C++ Java Python3 Easy
68 Text Justification C++ Java Python3 Hard
67 Add Binary C++ Java Python3 Easy
66 Plus One C++ Java Python3 Easy
65 Valid Number C++ Java Python3 Hard
64 Minimum Path Sum C++ Java Python3 Medium
63 Unique Paths II C++ Java Python3 Medium
62 Unique Paths C++ Java Python3 Medium
61 Rotate List C++ Java Python3 Medium
60 Permutation Sequence C++ Java Python3 Medium
59 Spiral Matrix II C++ Java Python3 Medium
58 Length of Last Word C++ Java Python3 Easy
57 Insert Interval C++ Java Python3 Hard
56 Merge Intervals C++ Java Python3 Medium
55 Jump Game C++ Java Python3 Medium
54 Spiral Matrix C++ Java Python3 Medium
53 Maximum Subarray C++ Java Python3 Easy
52 N-Queens II C++ Java Python3 Hard
51 N-Queens C++ Java Python3 Hard
50 Pow(x, n) C++ Java Python3 Medium
49 Group Anagrams C++ Java Python3 Medium
48 Rotate Image C++ Java Python3 Medium
47 Permutations II C++ Java Python3 Medium
46 Permutations C++ Java Python3 Medium
45 Jump Game II C++ Java Python3 Hard
44 Wildcard Matching C++ Java Python3 Hard
43 Multiply Strings C++ Java Python3 Medium
42 Trapping Rain Water C++ Java Python3 Hard
41 First Missing Positive C++ Java Python3 Hard
40 Combination Sum II C++ Java Python3 Medium
39 Combination Sum C++ Java Python3 Medium
38 Count and Say C++ Java Python3 Easy
37 Sudoku Solver C++ Java Python3 Hard
36 Valid Sudoku C++ Java Python3 Medium
35 Search Insert Position C++ Java Python3 Easy
34 Find First and Last Position of Element in Sorted Array C++ Java Python3 Medium
33 Search in Rotated Sorted Array C++ Java Python3 Medium
32 Longest Valid Parentheses C++ Java Python3 Hard
31 Next Permutation C++ Java Python3 Medium
30 Substring with Concatenation of All Words C++ Java Python3 Hard
29 Divide Two Integers C++ Java Python3 Medium
28 Implement strStr() C++ Java Python3  Easy
27 Remove Element C++ Java Python3  Easy
26 Remove Duplicates from Sorted Array C++ Java Python3 Easy
25 Reverse Nodes in k-Group C++ Java Python3 Hard
24 Swap Nodes in Pairs C++ Java Python3 Medium
23 Merge k Sorted Lists C++ Java Python3 Hard
22 Generate Parentheses C++ Java Python3 Medium 
21 Merge Two Sorted Lists C++ Java Python3 Easy
20 Valid Parentheses C++ Java Python3 Easy
19 Remove Nth Node From End of List C++ Java Python3 Medium
18 4Sum C++ Java Python3 Medium
17 Letter Combinations of a Phone Number C++ Java Python3 Medium
16 3Sum Closest C++ Java Python3 Medium
15 3Sum C++ Java Python3 Medium
14 Longest Common Prefix C++ Java Python3 Easy
13 Roman to Integer C++ Java Python3 Easy
12 Integer to Roman C++ Java Python3 Medium
11 Container With Most Water C++ Java Python3 Medium
10 Regular Expression Matching C++ Java Python3 Hard
9 Palindrome Number C++ Java Python3 Easy
8 String to Integer (atoi) C++ Java Python3 Medium
7 Reverse Integer C++ Java Python3 Easy
6 ZigZag Conversion C++ Java Python3 Medium
5 Longest Palindromic Substring C++ Java Python3 Medium
4 Median of Two Sorted Arrays C++ Java Python3 Hard
3 Longest Substring Without Repeating Characters C++ Java Python3 Medium
2 Add Two Numbers C++ Java Python3 Medium
1 Two Sum C++ Java Python3 Easy

Sort alphabetically, regardless of order

| C | C++ | C# | Go | Java | JavaScript | Kotlin |

| PHP | Python | Python3 | Ruby | Rust | Scala | Swift |

↓WeChat reward↓ & ↓Alipay reward↓ → 打赏榜 | 山青咏芝

Leetcode

You can’t perform that action at this time.