General
Introductory Problems
- Weird Algorithm109429 / 114615
- Missing Number93515 / 98512
- Repetitions81626 / 85385
- Increasing Array76537 / 79657
- Permutations67263 / 69504
- Number Spiral47798 / 52104
- Two Knights35920 / 37166
- Two Sets38844 / 42155
- Bit Strings45054 / 47570
- Trailing Zeros42129 / 45015
- Coin Piles37293 / 41092
- Palindrome Reorder34234 / 36373
- Gray Code21668 / 24665
- Tower of Hanoi20139 / 20979
- Creating Strings29439 / 30301
- Apple Division28733 / 32815
- Chessboard and Queens17075 / 17426
- Digit Queries11831 / 14150
- Grid Paths7044 / 9043
Sorting and Searching
- Distinct Numbers52328 / 57119
- Apartments38398 / 43351
- Ferris Wheel36650 / 39900
- Concert Tickets29525 / 34957
- Restaurant Customers30291 / 32952
- Movie Festival28526 / 30416
- Sum of Two Values33552 / 38059
- Maximum Subarray Sum32894 / 34513
- Stick Lengths29204 / 30801
- Missing Coin Sum20953 / 21781
- Collecting Numbers21629 / 23342
- Collecting Numbers II8654 / 11313
- Playlist22268 / 25782
- Towers22679 / 24485
- Traffic Lights17721 / 19919
- Josephus Problem I12559 / 14123
- Josephus Problem II7073 / 9451
- Nested Ranges Check7108 / 8316
- Nested Ranges Count4940 / 5780
- Room Allocation13002 / 15076
- Factory Machines17362 / 19323
- Tasks and Deadlines15051 / 15395
- Reading Books12027 / 12914
- Sum of Three Values17703 / 19954
- Sum of Four Values11134 / 12535
- Nearest Smaller Values14869 / 15440
- Subarray Sums I19387 / 20747
- Subarray Sums II16533 / 20444
- Subarray Divisibility15829 / 17365
- Subarray Distinct Values9271 / 10004
- Array Division14709 / 15578
- Sliding Window Median9684 / 11073
- Sliding Window Cost6572 / 7583
- Movie Festival II7940 / 9798
- Maximum Subarray Sum II7353 / 8890
Dynamic Programming
- Dice Combinations52997 / 56378
- Minimizing Coins45843 / 49528
- Coin Combinations I41993 / 45762
- Coin Combinations II35354 / 40502
- Removing Digits39211 / 40157
- Grid Paths37230 / 38427
- Book Shop32886 / 36649
- Array Description23901 / 26902
- Counting Towers13959 / 14825
- Edit Distance24589 / 26097
- Rectangle Cutting20532 / 22483
- Money Sums24547 / 25623
- Removal Game17755 / 19678
- Two Sets II19321 / 21093
- Increasing Subsequence19880 / 22525
- Projects13396 / 15201
- Elevator Rides8189 / 10541
- Counting Tilings4693 / 5172
- Counting Numbers6271 / 7236
Graph Algorithms
- Counting Rooms36119 / 38278
- Labyrinth24033 / 29758
- Building Roads31476 / 32768
- Message Route26768 / 28039
- Building Teams25210 / 26966
- Round Trip20047 / 22080
- Monsters12929 / 15799
- Shortest Routes I21595 / 24447
- Shortest Routes II17379 / 20005
- High Score9652 / 15143
- Flight Discount13163 / 15941
- Cycle Finding9510 / 11985
- Flight Routes9038 / 10182
- Round Trip II10684 / 12226
- Course Schedule14216 / 15367
- Longest Flight Route9380 / 12372
- Game Routes10898 / 11906
- Investigation8017 / 8699
- Planets Queries I6835 / 8223
- Planets Queries II2571 / 3221
- Planets Cycles4384 / 4936
- Road Reparation10641 / 11161
- Road Construction11329 / 11761
- Flight Routes Check9601 / 10565
- Planets and Kingdoms7729 / 8037
- Giant Pizza3141 / 3524
- Coin Collector4784 / 5430
- Mail Delivery4118 / 4562
- De Bruijn Sequence2168 / 2281
- Teleporters Path3146 / 3635
- Hamiltonian Flights4640 / 5293
- Knight's Tour1799 / 2211
- Download Speed3203 / 4358
- Police Chase2484 / 2840
- School Dance2735 / 2920
- Distinct Routes1781 / 2440
Range Queries
- Static Range Sum Queries24604 / 25707
- Static Range Minimum Queries18226 / 19481
- Dynamic Range Sum Queries18815 / 19674
- Dynamic Range Minimum Queries17239 / 17685
- Range Xor Queries17588 / 17844
- Range Update Queries13873 / 15012
- Forest Queries13613 / 14157
- Hotel Queries9862 / 10605
- List Removals8315 / 8765
- Salary Queries6211 / 7563
- Prefix Sum Queries5013 / 5489
- Pizzeria Queries4074 / 4234
- Subarray Sum Queries5139 / 5680
- Distinct Values Queries4798 / 5830
- Increasing Array Queries1753 / 2017
- Forest Queries II3232 / 3512
- Range Updates and Sums3960 / 4844
- Polynomial Queries3000 / 3538
- Range Queries and Copies2091 / 2266
Tree Algorithms
- Subordinates20823 / 22437
- Tree Matching11655 / 13709
- Tree Diameter17170 / 18345
- Tree Distances I12822 / 13883
- Tree Distances II10564 / 11023
- Company Queries I11624 / 12306
- Company Queries II10866 / 11453
- Distance Queries10007 / 10758
- Counting Paths6041 / 6472
- Subtree Queries7428 / 7951
- Path Queries5894 / 6236
- Path Queries II2153 / 3456
- Distinct Colors5600 / 6277
- Finding a Centroid4620 / 4823
- Fixed-Length Paths I1977 / 2749
- Fixed-Length Paths II847 / 1832
Mathematics
- Josephus Queries2989 / 3765
- Exponentiation16704 / 18021
- Exponentiation II12014 / 14722
- Counting Divisors14962 / 17069
- Common Divisors9964 / 11838
- Sum of Divisors5582 / 8510
- Divisor Analysis3668 / 4905
- Prime Multiples4000 / 4793
- Counting Coprime Pairs2546 / 3018
- Binomial Coefficients6817 / 7713
- Creating Strings II5787 / 6179
- Distributing Apples5649 / 6126
- Christmas Party4305 / 4670
- Bracket Sequences I3002 / 3324
- Bracket Sequences II1547 / 1798
- Counting Necklaces1473 / 1608
- Counting Grids1182 / 1266
- Fibonacci Numbers4916 / 6306
- Throwing Dice2660 / 2893
- Graph Paths I2437 / 2636
- Graph Paths II2053 / 2150
- Dice Probability2296 / 2466
- Moving Robots1165 / 1242
- Candy Lottery1823 / 1873
- Inversion Probability595 / 1623
- Stick Game2465 / 2526
- Nim Game I3186 / 3321
- Nim Game II2577 / 2692
- Stair Game1761 / 1926
- Grundy's Game1151 / 1478
- Another Game1322 / 1438
String Algorithms
- Word Combinations3765 / 5713
- String Matching7477 / 10544
- Finding Borders5530 / 6133
- Finding Periods3847 / 4383
- Minimal Rotation1880 / 3023
- Longest Palindrome2833 / 3943
- Required Substring1065 / 1723
- Palindrome Queries1351 / 1613
- Finding Patterns1204 / 1756
- Counting Patterns1102 / 1419
- Pattern Positions941 / 1186
- Distinct Substrings1141 / 1376
- Repeating Substring1208 / 1365
- String Functions1094 / 1157
- Substring Order I835 / 898
- Substring Order II523 / 670
- Substring Distribution719 / 783
Geometry
- Point Location Test4831 / 5523
- Line Segment Intersection2904 / 3782
- Polygon Area3451 / 3699
- Point in Polygon1833 / 2421
- Polygon Lattice Points1613 / 1677
- Minimum Euclidean Distance1385 / 2029
- Convex Hull2358 / 2850
Advanced Techniques
- Meet in the Middle4314 / 6478
- Hamming Distance2267 / 2467
- Beautiful Subgrids1611 / 1809
- Reachable Nodes1609 / 1740
- Reachability Queries1087 / 1302
- Cut and Paste1049 / 1175
- Substring Reversals923 / 1011
- Reversals and Sums924 / 1009
- Necessary Roads1379 / 1418
- Necessary Cities1285 / 1352
- Eulerian Subgraphs567 / 598
- Monster Game I826 / 913
- Monster Game II740 / 799
- Subarray Squares850 / 1004
- Houses and Schools536 / 621
- Knuth Division625 / 712
- Apples and Bananas602 / 662
- One Bit Positions563 / 627
- Signal Processing520 / 566
- New Roads Queries1411 / 1726
- Dynamic Connectivity634 / 726
- Parcel Delivery481 / 547
- Task Assignment503 / 546
- Distinct Routes II390 / 452
Additional Problems
- Shortest Subsequence2170 / 2892
- Counting Bits2558 / 3278
- Swap Game1443 / 1833
- Prüfer Code1001 / 1097
- Acyclic Graph Edges1565 / 1666
- Strongly Connected Edges997 / 1097
- Even Outdegree Edges910 / 1061
- Multiplication Table3797 / 4299
- Advertisement2936 / 3122
- Special Substrings657 / 714
- Permutation Inversions708 / 779
- Maximum Xor Subarray1635 / 1796
- Movie Festival Queries719 / 810
- Chess Tournament809 / 925
- Tree Traversals793 / 890
- Network Renovation698 / 920
- Graph Girth2188 / 2543
- Intersection Points1308 / 1415
- Inverse Inversions721 / 755
- Monotone Subsequences487 / 545
- String Reorder561 / 619
- Stack Weights430 / 502
- Pyramid Array539 / 648
- Increasing Subsequence II1678 / 1817
- String Removals711 / 768
- Bit Inversions1693 / 1949
- Xor Pyramid1033 / 1316
- Writing Numbers556 / 603
- String Transform354 / 443
- Letter Pair Move Game128 / 188
- Maximum Building I1503 / 1570
- Sorting Methods613 / 655
- Cyclic Array777 / 887
- List of Sums334 / 443
- Increasing Array II574 / 658
- Food Division397 / 470
- Bit Problem1173 / 1263
- Swap Round Sorting315 / 388
- Binary Subsequences180 / 277
- Tree Isomorphism I756 / 875
- Counting Sequences424 / 463
- Critical Cities287 / 438
- School Excursion965 / 1028
- Coin Grid534 / 637
- Robot Path212 / 366
- Programmers and Artists366 / 473
- Course Schedule II1166 / 1660
- Removing Digits II140 / 300
- Coin Arrangement230 / 307
- Counting Bishops252 / 286
- Grid Puzzle I368 / 403
- Grid Puzzle II282 / 318
- Empty String1077 / 1292
- Grid Paths544 / 683
- Bit Substrings258 / 319
- Reversal Sorting240 / 294
- Counting Reorders138 / 211
- Book Shop II732 / 849
- Network Breakdown678 / 721
- Visiting Cities490 / 645
- Missing Coin Sum Queries284 / 380
- Number Grid633 / 762
- Maximum Building II314 / 387
- Filling Trominos154 / 255
- Stick Divisions2706 / 3212
- Coding Company1008 / 1292
- Flight Route Requests330 / 401
- Two Stacks Sorting102 / 349
- Tree Isomorphism II617 / 714
- Forbidden Cities524 / 684
- Area of Rectangles749 / 844
- Grid Completion141 / 187
- Creating Offices286 / 366
- Permutations II631 / 722
- Functional Graph Distribution158 / 199
- New Flight Routes233 / 555
- Grid Path Construction72 / 282