Infinite Calendar
HardGiven a year and day difference, compute the resulting date without using built-in date libraries. Handle leap years, mo...
Given tasks with dependencies and durations, find minimum time to complete all tasks using k parallel workers. Tasks can...
The Time Loop Puzzle
MediumA function f(n) recursively calls itself until the sum of digits of n becomes a single digit. Count the total number of...
Crypto Grid Cipher
HardEncrypt a message by writing it into an N×N grid row by row, then reading it diagonally from top-left to bottom-right. H...
Given a directed graph of routers and packet counts flowing through them, find which router will fail first when it exce...
Nth Digit Finder
HardFind the Nth digit in the infinite sequence formed by concatenating positive integers: 123456789101112131415... The sequ...
Weird Fibonacci
MediumCalculate 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...
Sum of Unique Primes
MediumGiven an array of integers, find the sum of all prime numbers that appear exactly once in the array. A number must be bo...
Special Binary Count
HardCount how many numbers between 1 and N (inclusive) have equal number of 0s and 1s in their binary representation (withou...
Digit Rotation Number
MediumRotate the digits of a number by one position to the left each time until the number repeats (forms a cycle). Count how...