Coding Problems

Practice algorithmic problems and improve your coding skills

Guest Access: You can view 1 problem. Register to solve problems and track your progress.

Given a year and day difference, compute the resulting date without using built-in date libraries. Handle leap years, mo...

calendar date-calculation leap-year math
160 points Solve Problem

Given tasks with dependencies and durations, find minimum time to complete all tasks using k parallel workers. Tasks can...

scheduling topological-sort parallel-processing graph

A function f(n) recursively calls itself until the sum of digits of n becomes a single digit. Count the total number of...

recursion digit-sum simulation counting

Encrypt a message by writing it into an N×N grid row by row, then reading it diagonally from top-left to bottom-right. H...

cryptography grid diagonal-traversal encryption

Given a directed graph of routers and packet counts flowing through them, find which router will fail first when it exce...

graph directed-graph packet-flow threshold-checking

Find the Nth digit in the infinite sequence formed by concatenating positive integers: 123456789101112131415... The sequ...

math digit-sequence number-theory optimization

Calculate the Nth term of a modified Fibonacci sequence where F(0)=1, F(1)=2, and F(n)=F(n-1)*F(n-2) % 1000 for n≥2. Fin...

fibonacci modular-arithmetic recursion dynamic-programming

Given an array of integers, find the sum of all prime numbers that appear exactly once in the array. A number must be bo...

array prime-numbers frequency-counting math

Count how many numbers between 1 and N (inclusive) have equal number of 0s and 1s in their binary representation (withou...

binary bit-manipulation counting number-theory

Rotate the digits of a number by one position to the left each time until the number repeats (forms a cycle). Count how...

math digit-manipulation cycle-detection rotation
Showing 11 to 20 of 100 results
Feedback