Problem Archive

Solutions.

Complete history of solved problems — with approach, code, complexity and runtime stats.

23 problems
EasyMaximum Length Substring With Two Occurrences1 ms beats 100%2026-08-14
MediumNext Permutation0 ms beats 100%2026-08-14
HardLongest Substring of One Repeating Character104 ms beats 63.77%2026-08-13
EasyPascal's Triangle II0 ms beats 100%2026-08-13
MediumLength of Longest Subarray With at Most K Frequency66 ms beats 67.76%2026-08-12
MediumDivide Two Integers1 ms beats 94.21%2026-08-12
EasySmallest Missing Integer Greater Than Sequential Prefix Sum2 ms beats 52.27%2026-08-11
EasyPascal's Triangle1 ms beats 95.33%2026-08-11
HardStone Game IV14 ms beats 73.25%2026-08-10
MediumSwap Nodes in Pairs0 ms beats 100%2026-08-10
MediumStone Game II8 ms beats 38.96%2026-08-09
EasyPath Sum0 ms beats 100%2026-08-09
MediumMinimum Total Price After Applying Discounts46 ms beats 34.48%2026-08-09
MediumWeighted Sum of a Tree53 ms beats 48.85%2026-08-09
MediumFind the Lexicographically Smallest Valid Sequence30 ms beats 78.49%2026-08-08
MediumGenerate Parentheses0 ms beats 100%2026-08-08
HardSmallest Divisible Digit Product II66 ms beats 30.23%2026-08-07
EasyMinimum Depth of Binary Tree2 ms beats 95.61%2026-08-07
EasySmallest Divisible Digit Product I1 ms beats 99.78%2026-08-06
MediumRemove Nth Node From End of List0 ms beats 100%2026-08-06
CC 203Cricket World Cup Qualifier2026-04-01
CC 213Lucky Seven2026-04-01
CC 233Clear Day2026-04-01