Coding interview problems
3,736 problems: 937 Easy, 1,914 Medium, 885 Hard. Each runs against hidden tests, in 13 languages; database problems in SQL. Free for members.
Solve them in the app Explore guides
Problems 2,901–3,000 of 3,736
- 2901. Longest Concatenation With All-Distinct Letters
- 2902. Sum of XORs of All Subarrays
- 2903. Total Set Bits From 1 to n
- 2904. Next Larger Value With the Same Bit Count
- 2905. Does a Bit String Contain Every k-bit Code
- 2906. Primes in a Wide Window
- 2907. Break a Number Into Prime Powers
- 2908. Distinct Prime Factors Across a List
- 2909. Power Mod With a Digit-List Exponent
- 2910. Modular Inverse Under a Prime
- 2911. n Choose r Modulo a Large Prime
- 2912. Solve ax + by = c in Integers
- 2913. Measure Exact Liters With Two Jugs
- 2914. Number Matching Several Remainders
- 2915. Sum of Divisor Counts Up to n
- 2916. Count Coprimes Up to n
- 2917. Fraction as a Repeating Decimal String
- 2918. Add a Chain of Fractions
- 2919. Multiply Two Huge Decimal Strings
- 2920. The n-th Digit of the Counting Stream
- 2921. k-th Arrangement of 1..n
- 2922. Count Values With No Repeated Digit Below 10^n
- 2923. Split n Into Parts With Maximum Product
- 2924. Shortest All-Ones Number Divisible by k
- 2925. Ways to Write n as Consecutive Positive Sums
- 2926. Bulbs Left On After n Toggle Rounds
- 2927. Last Survivor of Alternating Sweeps
- 2928. Last One Standing in a Circle
- 2929. n-th Number With Only 2, 3 and 5 as Factors
- 2930. Fewest Squares Summing to n
- 2931. Is n a Sum of Two Squares
- 2932. Numbers That Change When Turned Upside Down
- 2933. All n-Digit Numbers Symmetric Under Half-Turn
- 2934. Write a Number in Base Minus Two
- 2935. Next Bigger Number From the Same Digits
- 2936. Biggest Number After One Digit Swap
- 2937. Largest Value Up to n With Non-Decreasing Digits
- 2938. Write a Value as a Roman Numeral
- 2939. Equalize With Single-Step Moves
- 2940. Do Four Points Form a Square
- 2941. Smallest Axis-Aligned Rectangle From Points
- 2942. Grid Points Covered by Circles
- 2943. Does a Circle Touch a Rectangle
- 2944. Where Does the Laser Exit
- 2945. Is the Polygon Convex
- 2946. Lattice Points Strictly Inside a Polygon
- 2947. Ways to Roll a Target With n Dice
- 2948. Chance of Stopping at or Below n
- 2949. Two Pots Emptying Randomly
- 2950. Knight Staying on the Board
- 2951. Arrangements With Nobody in Their Own Seat
- 2952. Up-Down Walks That Never Dip Below Start
- 2953. Trailing Zeros of n! in Base b
- 2954. How Many n Have Exactly k Zeros in n!
- 2955. Closest Factor Pair of n + 1 or n + 2
- 2956. Smallest Number Whose Digits Multiply to n
- 2957. Total of Divisors for Numbers With Exactly Four
- 2958. Subarrays Whose GCD Is k
- 2959. Spread a One Using Neighbour GCDs
- 2960. Pairs Whose Sum Is a Multiple of k
- 2961. Nearest Pair of Primes in a Range
- 2962. Primes on Prime Seats
- 2963. Digit Strings With Position Rules
- 2964. Fibonacci Remainder via Its Cycle
- 2965. Values Up to n With Digit Sum Divisible by k
- 2966. Values Up to n Built From Allowed Digits
- 2967. Values in a Range With Exactly k Set Bits
- 2968. Reach a Point With Growing Steps
- 2969. Double or Decrement to Reach a Target
- 2970. Copy-All and Paste to Reach n Characters
- 2971. Best Rotation Weighted Sum
- 2972. Subarrays With an Odd Total
- 2973. Substrings Made Only of 1s
- 2974. Smallest Gap Between Clock Times
- 2975. Does the Robot Stay Within a Circle
- 2976. Fewest Tasters for Poisoned Barrels
- 2977. Who Wins Multi-Pile Take-Away
- 2978. Who Runs Out of Chalk
- 2979. Ways Ants on a Polygon Collide
- 2980. Distance Totals in a Sorted List
- 2981. Smallest Prime Palindrome at or Above n
- 2982. Symmetric About a Vertical Line
- 2983. Solve a One-Variable Linear Equation
- 2984. Fewest Fibonacci Terms Summing to k
- 2985. Values Up to m Coprime With n
- 2986. Light States After Button Presses
- 2987. First to Reach the Total Picking Unused Numbers
- 2988. Path to a Label in a Zigzag-Numbered Tree
- 2989. Chance a Gambler Reaches the Goal
- 2990. Largest XOR of Any Subset
- 2991. Pairs Whose XOR Lands in a Range
- 2992. k-th Smallest Distinct Subset XOR
- 2993. Pair Two Lists to Minimise the XOR Total
- 2994. Undo a Number With Restricted Bit Flips
- 2995. Pairs Whose AND Is Zero
- 2996. Words Solvable for Each Puzzle
- 2997. Split Powers of Two to Reach a Sum
- 2998. Spell a Number in English Words
- 2999. Closest Palindrome to a Number String
- 3000. Values Up to n With All-Distinct Digits