Code Challenges

Get better at coding with practice problems.

Coding Challenges

Select a problem, write code, run test cases, and submit your solution.

Showing 19 of 21 problems

Implement the restoreIpAddressesCount method that counts valid IP addresses that can be restored from the digits. Solved

Implement the wordSearchGridExists method that checks whether a word can be formed in the grid by adjacent cells. Solved

Implement the countWaysToReachSumWithDice method that counts dice roll combinations that produce the target sum. Solved

Implement the integerBreakMaximumProduct method that finds the maximum product after splitting an integer into at least two parts. Solved

Implement the countTrailingZerosFactorial method that counts trailing zeroes in the factorial of n. Solved

Implement the isUglyNumber method that checks whether the number has only 2, 3, and 5 as prime factors. Solved

Implement the lcmArrayValues method that returns the least common multiple of all array values. Solved

Implement the sievePrimeCount method that counts prime numbers up to n using sieve-style marking. Solved

Implement the powIntegerFast method that calculates an integer power efficiently using fast exponentiation. Solved